Skip to content
orchbee.com/cli

Command line

Every operation available to a person is equally available to an agent through the orchbee command line.

npm install -g orchbee@next
DemoA terminal outside Orchbee, asking the running Session about its agents.

collaboration

Agent-to-agent collaboration

Stop managing agents one terminal at a time. Agents can prompt and spawn other agents, read each other's output, send commands across terminals, delegate tasks, and coordinate work—while you stay in control from one place.

Each step is one orchbee command.On the left, Claude Code runs them through its shell tool. Codex starts in the Panel on the right.Each step is one orchbee command.In the upper Panel, Claude Code runs them through its shell tool. Codex starts in the Panel below it.

grammar

One shape for every command

A family, an action, a target, then options. The same handle names the same Panel in every command.

orchbeeagentprompt@panel:0x36"Review the current changes"--wait
  1. Familyagent, terminal, panel, tab, workspace, and the rest of the table below.
  2. ActionWhat to do: list, start, prompt, wait, read.
  3. TargetA handle printed by orchbee agent list, or the name you gave an agent.
  4. ArgumentHere, the prompt to submit.
  5. Option--wait keeps the command open until the agent is idle, done, or blocked.

output

What the commands print

Text for people by default. Choose a command.

  • orchbee agent list
  • orchbee agent start codex --split right
  • orchbee agent prompt @panel:0x36 "Review the current changes"
  • orchbee agent wait @panel:0x36 --until idle --timeout 120000
  • orchbee agent read @panel:0x36 --source recent --lines 40
  • orchbee agent list --format json
  • orchbee --help
orchbee agent list
#     HANDLE       AGENT         NAME  STATE      CWD
1     @panel:0x2a  claude-code   -     Working    C:\demo\shop-api
2     @panel:0x36  codex         -     Idle       C:\demo\shop-api
3     @panel:0x41  opencode      -     Done       C:\demo\shop-web

The JSON document is abridged here.

in detail

Made for scripts and for agents

Handles

Every Panel, Tab, Workspace, and Project has a handle such as @panel:0x36. Commands print handles and take them, so the output of one command is the input of the next.

Text or JSON

Text for people by default. Add --format json where a command supports it and get a document with a schema name and a version, for scripts.

Waiting is a command

orchbee agent wait blocks until an agent is idle, done, or blocked. orchbee terminal wait-output blocks until text appears. No polling loops.

A guide for agents, built in

orchbee --skill prints an offline guide written for agents: what the commands are and how to use them. An agent that has read it can drive Orchbee.

Completion for five shells

orchbee completion generates scripts for bash, elvish, fish, PowerShell, and zsh.

Exit codes that mean something

0 for success, 2 for invalid usage, 3 when the target is not found, 7 on a timeout, 130 when cancelled. Scripts can branch on them.

reference

Command families

orchbee <command> -h prints the help of any of them.

Terminals and layout

tuiOpen the terminal interface.
workspaceCreate and organize workspaces.
tabCreate, arrange and close tabs.
panelSplit, arrange and control terminal panels.
terminalRead terminal output and send input.
layoutSave, restore and adjust terminal layouts.
clientInspect connected terminal clients.

Agents and workflows

agentFind, run and interact with AI Agents.
projectGroup related workspaces into projects.
worktreeCreate and manage Git worktrees.
launch-profileManage reusable terminal launch settings.
commandFind and run your configured commands.
eventsObserve events from a running session.
notificationShow notifications in the terminal interface.

Sessions and connections

statusShow the current terminal session status.
doctorCheck whether Orchbee works here.
operationInspect or continue an earlier operation by its request ID.
serverManage the session's background service.
sessionFind and reconnect to named local sessions.
machineManage saved remote machines.

Setup and integration

configCheck, print and reload settings.
diagnosticsCollect diagnostics to send when you ask for help.
updateInstall the newest version of the channel.
uninstallRemove the installed Orchbee; data stays unless --delete-data.
apiRead snapshots and offline API schemas.
completionGenerate shell completion scripts.

other clients