CLI reference

Start and manage agents, projects, workspaces, terminals, scripts, plugins, schedules, and daemons from your terminal.

The command line talks to the same daemon API as the app, so anything you do in the app you can do from a terminal. The binary is zekoder; the daemon it controls is your Zekoder host.

Without options the CLI targets the local daemon on localhost:6777. Run zekoder --help or zekoder <command> --help for every option.

Quick reference

zekoder run "fix the tests"            # Start an agent
zekoder ls                             # List running agents
zekoder attach <id>                    # Stream agent output
zekoder send <id> "also fix linting"   # Send a follow-up
zekoder logs <id>                      # View the agent timeline
zekoder stop <id>                      # Stop an agent
zekoder usage                          # Show account quotas and balances

Run agents

zekoder run starts an agent with a task and waits for it to finish. A bare run from your shell creates a new local workspace for the current directory.

zekoder run "implement user authentication"
zekoder run --provider codex "refactor the API layer"
zekoder run --no-wait "run the focused test suite"
zekoder run --workspace <workspace-id> "review the current diff"
zekoder run --new-workspace worktree --worktree-mode branch-off \
  --new-branch feature/x --base origin/main "implement feature X"
OptionWhat it does
--workspace <id>Add the agent to an existing workspace.
--new-workspace local|worktreeCreate a separate workspace for the run. Worktrees take --worktree-mode branch-off|checkout-branch|checkout-pr.
--no-waitReturn immediately while the agent keeps running. zekoder send takes the same flag.
--output-schema <file|json>Return only JSON that matches the schema. Cannot be combined with --no-wait.

When an agent runs zekoder run, the new agent becomes its subagent in the same workspace. Use --workspace to place it elsewhere.

Inspect and steer agents

zekoder ls                    # Non-archived agents in active workspaces
zekoder ls -a -g --json       # Everything, including archived, across all workspaces
zekoder attach <id>           # Ctrl+C detaches
zekoder send <id> "now run the tests"
zekoder send <id> --image screenshot.png "what's wrong here?"
zekoder send <id> --behavior interrupt "stop and do this instead"
zekoder logs <id> -f --tail 10 --filter tools
zekoder wait <id> --timeout 60
zekoder agent mode <id> --list
zekoder agent mode <id> plan
zekoder agent detach <id>     # Make a subagent top-level

Approve or deny tool requests from the terminal:

zekoder permit ls
zekoder permit allow <id>
zekoder permit deny <id> --all

Projects and workspaces

cd ~/dev/my-app
zekoder project create
zekoder project ls
zekoder project rename <project-id> "My app"
zekoder project delete <project-id>

Deleting a project archives its workspaces and removes it from Zekoder. The folder stays on disk. With --host, the path you give is read on the remote machine.

zekoder workspace create --isolation local --path ~/dev/my-app --title main
zekoder workspace create --isolation worktree --path ~/dev/my-app \
  --mode branch-off --new-branch feature/auth --worktree-slug feature-auth --base origin/main
zekoder workspace ls
zekoder workspace rename <workspace-id> "Auth rework"
zekoder workspace archive <workspace-id>

--mode is branch-off, checkout-branch (with --branch), or checkout-pr (with --pr-number). Add --background to hide a workspace from default listings. See Projects and workspaces and Worktree setup and teardown.

Terminals and scripts

zekoder terminal create --workspace <workspace-id> --name Development
zekoder terminal send-keys <terminal-id> -l "echo ready"
zekoder terminal send-keys <terminal-id> Enter
zekoder terminal capture <terminal-id>
zekoder terminal kill <terminal-id>

zekoder script ls
zekoder script start web
zekoder script stop web

Plugins

zekoder plugin init ./plugin
zekoder plugin install ./plugin
zekoder plugin add owner/slug
zekoder plugin add git:owner/repository --ref main
zekoder plugin ls
zekoder plugin update --all
zekoder plugin reload my-plugin
zekoder plugin logs my-plugin
zekoder plugin disable my-plugin
zekoder plugin remove my-plugin

Schedules

zekoder schedule create --every 30m --cwd ~/dev/my-app "Continue the refactor and leave a note."
zekoder schedule ls
zekoder schedule pause <id>

See Schedules.

Account usage

zekoder usage
zekoder usage ls --refresh
zekoder usage inspect <report-id>

zekoder usage lists quotas and balances by account. Results use the host's five-minute cache; --refresh bypasses it. --agent <id> shows the account quota tied to an agent, not that agent's token use.

Provider diagnostics

Inspect the provider environment the daemon actually uses:

zekoder provider diagnostic claude
zekoder --host devbox:6777 provider diagnostic codex --json

The report matches Settings → your host → Providers → provider → Diagnostic report.

Daemons and hosts

zekoder daemon status
zekoder daemon start
zekoder daemon restart
zekoder daemon stop
zekoder daemon pair          # QR code and link for the mobile app

Isolate a daemon with --home (default ~/.zekoder):

zekoder daemon config set daemon.listen 127.0.0.1:6799 --home ~/zekoder-test
zekoder daemon start --home ~/zekoder-test
zekoder project ls --home ~/zekoder-test

--host selects another daemon, for example --host devbox:6777. Set PASEO_HOST to avoid repeating it. If the daemon requires a password, set PASEO_PASSWORD or put ?password=... in a tcp:// host URI. See Configuration.

Manage the daemon's saved connections to other hosts:

zekoder host add 'ssh://deploy@build-box' --label build-box
zekoder host ls
zekoder host inspect <registration-id>
zekoder host disable <registration-id>
zekoder host rm <registration-id>

Removing a registration keeps agents and workspaces on that host running. See Register a remote host.

Output formats

zekoder ls --json
zekoder ls --format yaml
zekoder ls -q                 # IDs only

Every command also accepts --no-headers and --no-color.

Zekoder

The flight recorder for AI-built software.

Zekoder is a product of Cybernetic Labs Ltd, London.