Use the Orchestrator `ao` CLI to manage workers, sessions, projects, messages, browser previews, and daemon control. Also covers first-time setup and importing existing agent sessions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Using Ao?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/orchestratorinc-using-ao)
---
name: using-ao
description: "Use the Orchestrator `ao` CLI to manage workers, sessions, projects, messages, browser previews, and daemon control. Also covers first-time setup and importing existing agent sessions."
trigger: "Using the `ao` CLI, setting up Orchestrator for a user, importing existing agent sessions, or managing Orchestrator sessions, projects, messages, and browser previews."
---
# Orchestrator CLI Catalog
`ao` is a thin CLI over the local Orchestrator daemon. Every command is `ao <command> --help` for the authoritative flag list.
**Start here** when asked to set Orchestrator up or to hand it work: `ao setup --json` (one command to ready: daemon, agent, GitHub, project; exit `10` lists what a person must do in `next_actions`), then `ao task start "<brief>" --wait --json` (hands the task to the project's orchestrator and confirms it started), then `ao task status <task-id> --json` or `ao task wait <task-id>` to follow it. Use `ao spawn` and `ao send` only for what these don't cover.
| Command | What it does | When to use | Details |
|---|---|---|---|
| `spawn` | Spawn a project worker, orchestrator, or projectless standalone worker | Starting a new task or issue | [commands/spawn.md](commands/spawn.md) |
| `task` | Hand a task to the project's orchestrator (or one worker) and report from the exit code whether it started | Sending a task from a script or an outside agent and confirming it really started | [commands/task.md](commands/task.md) |
| `session` | Manage agent sessions (list, interrupt, kill, rename, restore, history, etc.) | Inspecting or controlling running/terminated sessions, or reading the full conversation after taking over from another agent | [commands/session.md](commands/session.md) |
| `account` | List Claude Code and Codex subscription accounts, set the default, show or move a session's account | Starting work on a specific account, or moving a session off an account that hit its limit | [commands/account.md](commands/account.md) |
| `agent` | Inspect installed harnesses and launch readiness | Choosing or diagnosing an agent harness | `ao agent ls --refresh` |
| `pr` | Merge a PR or resolve its review threads | Completing a reviewed change | `ao pr merge` / `ao pr resolve-comments` |
| `project` | Register, inspect, configure, or remove projects | Setting up or managing repos Orchestrator knows about | [commands/project.md](commands/project.md) |
| `automation` | Manage durable recurring session automations | Creating, editing, disabling, deleting, and inspecting scheduled runs | [commands/automation.md](commands/automation.md) |
| `connector` | Add an MCP server once for every agent session, sign in, test, import | The user asks to add, check or remove a connector, or a connector tool answers that it needs sign-in | [commands/connector.md](commands/connector.md) |
| `whoami`, `actions`, `call` | Show who the daemon takes you to be and your grant, list the action catalog, and run one catalog action | Checking what you may do, or running an action that has no command of its own | [commands/access.md](commands/access.md) |
| `token` | Make and revoke tokens that hold an agent outside the app to a grant | Only when the user asks for a token for another agent or bot | [commands/access.md](commands/access.md) |
| `orchestrator` | List orchestrator sessions | Viewing which sessions are orchestrators | [commands/orchestrator.md](commands/orchestrator.md) |
| `review` | Start, list, cancel, or submit Orchestrator's native reviewer for a worker's PR (default: this session) | Reviewing implementation PRs owned by workers. For someone else's PR, use a worker that claims it with automatic fixing off | [commands/review.md](commands/review.md) |
| `send` | Send a message to a running agent session | Messaging a live agent; use `--steer` to correct it mid-turn | [commands/send.md](commands/send.md) |
| `report` | Persist a meaningful worker report | Checkpoints, blockers, decisions, outputs, and completion | [commands/report.md](commands/report.md) |
| `artifact` | Register files in the artifact directory as deliverables | Making a finished file appear as one of the session's artifacts | [commands/artifact.md](commands/artifact.md) |
| `preview` | Start a session-owned app or open an exact URL/file | Running and showing the worker's relevant app, Markdown, HTML, PDF, or image | [commands/preview.md](commands/preview.md) |
| `cloud` | Check whether this computer is strained and ask the desktop app to suggest Orchestrator Cloud | Before starting several workers or one long task (orchestrators) | [commands/cloud.md](commands/cloud.md) |
| `pane` | Split this session's tabs in the desktop window and run commands in its terminal tabs (Developer Mode preview) | Putting a terminal, file or reviewer beside the chat, or running a command in a terminal the user can see | [commands/pane.md](commands/pane.md) |
| `render` | Show a self-contained HTML page inline in a chat thread | Answering with a chart, table, diagram, or mockup | [commands/render.md](commands/render.md) |
| `browser` | Inspect and control the session's shared live browser | Verifying a web app through snapshots, interactions, waits, screenshots, console, and errors; `batch` runs a known multi-step flow in one call | [commands/browser.md](commands/browser.md) |
| `browser` (remote host) | Drive the host's shared remote Chromium, used when `AO_AGENT_BROWSER_URL` is set | Same browser verification on a self-hosted remote host; one browser is shared across sessions | [commands/browser-remote.md](commands/browser-remote.md) |
| `login`, `hosts`, `remote` | Sign in to the user's Orchestrator account, list its machines and run commands on one with `--host`, or turn this machine's remote access on or off | Setting up a VM or other headless machine so the user's desktops and phones can use it, or working on another of the user's machines | [commands/hosts.md](commands/hosts.md) |
| `device` | Open, install onto and release an iOS Simulator or Android Emulator for this session | Verifying a mobile app on a device the user watches in the Device tab | [commands/device.md](commands/device.md) |
| `start` | Fetch (if needed) and open the Orchestrator desktop app | Launching the app | [commands/start.md](commands/start.md) |
| `stop` | Stop the Orchestrator daemon | Shutting down Orchestrator | [commands/stop.md](commands/stop.md) |
| `serve` | Run the Orchestrator daemon without the desktop app, or reuse the running one | Starting Orchestrator headless (servers, scripts, setting up for a user) | [commands/serve.md](commands/serve.md) |
| `service` | Install, check, or remove a user service that keeps `ao serve` running across reboots | Keeping Orchestrator running without the app | [commands/service.md](commands/service.md) |
| `setup` | Start the daemon, check the agent and GitHub, and register the project in one command; optionally start a first task | Setting up Orchestrator for a user | [commands/setup.md](commands/setup.md) |
| `status` | Show daemon status | Verifying the daemon is up and healthy | [commands/status.md](commands/status.md) |
| `triage` | Collect diagnostics and draft a problem report, even offline | Reporting a bug | [commands/triage.md](commands/triage.md) |
| `doctor` | Run local health checks | Diagnosing Orchestrator setup problems | [commands/doctor.md](commands/doctor.md) |
| `import` | Import projects from a legacy Orchestrator install | Migrating from the old flat-file store | [commands/import.md](commands/import.md) |
| `version` | Print version information | Checking installed version | - |
| `completion` | Generate shell completion scripts | Setting up tab completion | - |
## Conventions
- When the user asks you to set up Orchestrator, add their first project, or get them started, read [commands/setup.md](commands/setup.md) first and follow it: run `ao setup` when it is available.
- For importing existing agent conversations from outside Orchestrator, read [commands/import.md](commands/import.md). This includes Claude Code and Codex terminal sessions.
- Most read commands accept `--json` for machine-readable output.
- While Developer mode is on in Orchestrator's Settings > General, the `ao` tool server gives a Chat session commands as tools: `session_spawn`, `session_wait`, `session_read`, `session_send`, `session_list`, `pending_list`, `pending_respond`, `pr_status`, `report`, and others. Each does what the matching `ao` command does, and works when the shell cannot reach the daemon. The `actions` and `call` tools reach the catalog actions that have no named tool, as `ao actions` and `ao call` do. After `session_spawn`, call `session_wait` rather than polling `ao session ls`. A tool that starts or changes another session runs only when this session has full access and is not in plan mode. When one refuses, run the matching `ao` command if the shell can reach the daemon; it asks the user for approval as any command does. Otherwise ask the user to do that step in Orchestrator, or to set this session to full access.
- To wait for another session, run `ao session wait <id>` once after `ao spawn`, not a loop of `ao session get`. To message a session and wait for its reply, run `ao send --wait --json` on a session that is idle (the result holds the reply): if the session is in the middle of a turn, the command refuses with exit 1 and sends nothing, so run `ao session wait <id>` first or add `--steer`. Exit 3 means the session waits for an answer, 4 that it is still working when the wait ended, and 1 that it failed or was terminated.
- Exit 5 with `GRANT_REFUSED` means your grant does not allow the call. Do not retry it and do not look for another route: tell the user what was refused. `ao whoami` shows the grant.
- `-p / --project` scopes session subcommand lookups to one project.
- Session and project ids are shown by `ao session ls` and `ao project ls`.
- To refer to a session in Orchestrator Chat or the Orchestrator terminal, use the canonical in-app
link `ao://sessions/{project-id}/{session-id}`. Read
[commands/session.md](commands/session.md) for identity, encoding, and safety
rules before constructing one.
- When the user asks to bring a repository's Conductor settings (scripts, environment variables, prompt) into Orchestrator, read [commands/conductor.md](commands/conductor.md) first.
- `--agent` is an alias for `--harness` on `ao spawn`.
- Every command accepts `-h / --help` for the full flag list.
- For frontend launch or preview selection, read
[commands/preview.md](commands/preview.md) before acting. Its static-file,
project-runtime, and artifact rules are load-bearing: artifacts render in the
Artifacts tab after `ao artifact add`, never through `ao preview` unless the
user explicitly asks to see one in the Browser panel.
- For page inspection, interaction, or request diagnosis, read
[commands/browser.md](commands/browser.md). It defines shared-tab behavior
and the opt-in network policy.
Use [references.md](references.md) only when a natural-language request does
not map clearly to a command above.