The orca CLI talks to a running Orca runtime. Use it when a shell script or agent needs to inspect worktrees, launch terminals, open files, automate the built-in browser, or report progress back into Orca.
Use --json when another tool will parse the result. Human-readable output is for quick terminal checks.
Selectors
Most commands accept selectors instead of requiring long IDs:
orca repo show --repo id:<repoId> --jsonorca worktree show --worktree active --jsonorca worktree show --worktree path:/abs/path/to/worktree --jsonorca worktree show --worktree branch:feature-name --jsonorca worktree show --worktree issue:123 --json
active and current resolve to the enclosing Orca-managed worktree from the shell's current directory or terminal context. Use explicit selectors in scripts that may run outside the target worktree. For remote runtimes, prefer full server-side selectors such as id:<repoId>::<absolute-worktree-path> or path:<absolute-server-path> because the local shell's current directory may not exist on the runtime host.
Choose a host
List every machine the current Orca host can target and the selector for each one:
orca host list --json
The result includes this machine, its registered SSH targets, and paired Remote Orca Servers. Use --host local for this machine, --host ssh:<target-id> for an SSH target, and --environment <server-name> for a paired server. SSH labels and paired-server names also resolve when they are unique; use the IDs from host list when names collide. If you put a machine name on the wrong selector, Orca reports the matching machine and the flag to use instead of returning an empty result.
Runtime commands
orca open --jsonorca status --jsonorca serve --port 6768 --pairing-address 100.64.1.20 --jsonorca serve --supervise --jsonorca serve service install --port 6768 --dry-runorca serve service status --jsonorca serve service uninstall --jsonorca serve restore resume --json
orca serve starts a runtime server in the foreground without opening the desktop window. Use it for Remote Orca Servers or headless environments, and stop it with Ctrl-C.
orca serve --supervise is for service managers: the server restarts itself with growing delays instead of exiting when it stops, waits while an update replaces the app, and gives up after repeated failures. orca serve service install writes a per-user LaunchAgent (macOS) or systemd user unit (Linux) that runs orca serve --supervise --no-pairing for this profile; orca serve service status reports whether it is running, and orca serve service uninstall stops and removes it. orca serve restore resume clears a pause on automatic terminal restores and lists restores an older client asked for. None of these are available on Windows yet, and the service and supervisor commands need the Orca app installed on the machine. See Remote Orca Servers → orca serve as a service.
Repos
orca repo list --jsonorca repo add --path /abs/path/to/repo --jsonorca repo show --repo id:<repoId> --jsonorca repo set-base-ref --repo id:<repoId> --ref origin/main --jsonorca repo search-refs --repo id:<repoId> --query main --limit 10 --json
Set the repo base ref before creating lots of worktrees so new tasks branch from the right place by default.
Use --scope conversation|all to choose conversation matches or all indexed text. --fresh refreshes the index before searching; --limit, --cursor, --agent, --path, --since, and --sort narrow or page the results. --index-status reports indexing state without running a query. Results can include sessions from connected computers and paired servers when those hosts have granted access.
Worktrees
orca worktree list --repo id:<repoId> --jsonorca worktree ps --jsonorca worktree current --jsonorca worktree show --worktree active --jsonorca worktree create --repo id:<repoId> --name fix-login --jsonorca worktree create --name child-task --agent codex --prompt "Investigate the flaky login test" --jsonorca worktree set --worktree active --comment "reproduced failure; testing token refresh fix" --jsonorca worktree set --worktree active --workspace-status in-review --unread --jsonorca worktree rm --worktree id:<worktreeId> --force --json
Use --branch <branch> with orca worktree create to specify the Git branch for the new worktree without the configured prefix. Orca may add a numeric suffix if the name conflicts; --name still names the workspace.
When worktree create runs from inside an Orca-managed worktree, Orca records the new worktree as a child when it can infer the relationship. Pass --parent-worktree active to be explicit, or --no-parent when the new work is independent.
worktree set --unread puts the unread dot on the workspace in the sidebar, the same one Orca shows when an agent finishes; --read clears it.
Agent startup flags:
orca worktree create --name review-api --agent claude --setup run --jsonorca worktree create --name quick-check --agent codex --prompt "Summarize the diff" --setup skip --jsonorca worktree create --name hidden-setup --setup inherit --json
--agent launches the selected agent in the first terminal. --prompt sends initial work directly to that agent, including agents running in a terminal. --setup run|skip|inherit controls repo setup hooks; inherit follows the repo policy.
Link issues and reviews using the workspace metadata already stored on the worktree:
orca worktree create --repo id:<repoId> --name review-task --pr 123 --jsonorca worktree create --repo id:<repoId> --name gitlab-task --gitlab-issue 42 --gitlab-mr 77 --jsonorca worktree set --worktree active --gitlab-issue '#42' --gitlab-mr '!77' --jsonorca worktree set --worktree active --pr null --gitlab-mr null --json
--pr is a GitHub pull request number. --gitlab-issue accepts an issue number or #42; --gitlab-mr accepts a merge request number or !77. The GitLab flags also accept HTTP(S) issue or merge request URLs — including self-hosted instances and nested groups — as long as the URL's host and project match the workspace's stored GitLab source context or the repository's remote. Omitting a flag leaves its link unchanged; on set, literal null clears only the named link (create refuses null). Each provider keeps separate fields, so setting a GitLab link preserves GitHub and Linear links.
Launch an agent in an existing workspace
orca agent launch --agent codex --jsonorca agent launch --agent codex --model gpt-6-astra --effort high --prompt "Write the design doc" --jsonorca agent launch --agent claude --worktree path:/projects/myapp --focus --json
agent launch starts an agent the same way a new agent tab does: as a structured chat when your Chat UI setting is on and the agent and host support it, otherwise as a terminal. The result says which surface opened (outcome.kind) and why. --worktree defaults to the worktree or folder workspace containing the current directory; for a brand-new checkout use orca worktree create --agent. --model and --effort (which requires --model) apply to either surface, and the tab opens without stealing focus unless you pass --focus. If the launch reply is lost, re-issue the same command from the same directory on the same host with --retry-launch <operationId> rather than starting a second agent.
References
A workspace can link several reviews and issues, including sources outside its repository:
Writes take full URLs; remove --key also handles older links from list that have no URL. Duplicate adds and absent removals are no-ops, and unrelated links are preserved. The linked-issue flags (--pr, --gitlab-issue, --linear-issue) and --reference cannot be combined on one command.
Find takes a full URL or a native issue key such as STA-1234 — bare numbers are rejected. It reads stored metadata only (no provider requests or transcript search) and returns matching workspaces plus the agents associated with them, with each agent's linked state and any terminal or mailbox address. Use orca search to search conversation text.
Then message the agent you found by its explicit address:
Omit --terminal to target the active terminal in the current worktree. Read before sending when you are not sure what the terminal is waiting for.
terminal list reports each terminal's executionHostId when Orca can verify it, plus a result-level hostScope with covered and omitted host IDs. Treat a missing host identity or scope as unverifiable, not local. A missing terminal is evidence that it exited only when its execution host is listed in hostScope.hostIds.
By default, terminal read returns the accumulated output stream with terminal escapes stripped. Programs that redraw lines can therefore appear as stacked fragments. Use --screen when you need the currently rendered frame; the response's source identifies stream, screen, or screen-unavailable. Screen reads have no history to page, so --screen and --cursor are mutually exclusive.
For long output, use cursor reads. Save nextCursor from one stream read, then pass it back with --cursor to fetch only new output.
Files
orca file open src/App.tsx --worktree active --jsonorca file diff src/App.tsx --staged --worktree active --jsonorca file open-changed --mode both --worktree active --json
Paths are relative to the selected worktree. open-changed reads git status and opens changed files in edit, diff, or both modes.
These commands open files as tabs without changing your view, even in the worktree on screen. Pass --focus to bring the opened tab into view — agents should pass it only when the user asked to see the file.
Built-in browser
Browser commands control Orca's embedded browser tab for the selected worktree. They do not control Chrome, Safari, or the Orca desktop UI. A chat agent's untargeted commands use its chat workspace when Orca can resolve it, even if the agent runs outside that folder. If the workspace cannot be resolved, pass --worktree or run from the intended workspace folder; commands acting on an existing page can instead use --page with an ID from orca tab list --json.
Use a snapshot -> act -> snapshot loop:
orca goto --url http://localhost:3000 --worktree active --jsonorca snapshot --worktree active --jsonorca click --element @e3 --worktree active --jsonorca fill --element @e1 --value "[email protected]" --worktree active --jsonorca wait --text "Welcome" --worktree active --jsonorca screenshot --worktree active --json
Refs such as @e3 come from snapshot. Re-snapshot after navigation, tab switches, clicks that change the page, and any stale-ref error. For supported page actions, add --expect-url <absolute-url> to refuse the action if the page has moved to another URL. The comparison includes the path, query, fragment, and trailing slash. This is a URL precondition, not a lock or proof of page identity; it does not check iframe content. Older hosts that cannot enforce it refuse the flag.
Tab and capture commands:
orca tab list --worktree active --jsonorca tab create --url http://localhost:3000 --worktree active --jsonorca tab switch --index 1 --worktree active --jsonorca capture start --worktree active --jsonorca console --limit 50 --worktree active --jsonorca network --limit 50 --worktree active --jsonorca full-screenshot --worktree active --jsonorca pdf --worktree active --json
Use orca exec --command "<agent-browser command>" --json only for browser actions that do not have a typed Orca command yet.
Browser device emulation:
orca set device --name "iPhone 12" --worktree active --jsonorca screenshot --worktree active --json
Desktop computer use
Use orca computer for native desktop apps outside the built-in browser:
See Computer use for the full workflow and permission setup.
Mobile emulator
The mobile emulator commands control iOS Simulator devices through Orca's worktree-scoped bridge. Use them instead of raw serve-sim or simctl when an agent is operating from inside Orca, so lifecycle and active-device state stay attached to the current worktree.
orca emulator list --worktree active --jsonorca emulator attach "<device-name-or-udid>" --worktree active --jsonorca emulator tap 0.5 0.7 --worktree active --jsonorca emulator type "hello" --worktree active --jsonorca emulator gesture '[{"type":"begin","x":0.5,"y":0.8},{"type":"move","x":0.5,"y":0.4},{"type":"end","x":0.5,"y":0.2}]' --worktree active --jsonorca emulator button home --worktree active --jsonorca emulator rotate landscape_left --worktree active --jsonorca emulator exec --command "tap 0.5 0.7" --worktree active --jsonorca emulator kill --worktree active --jsonorca emulator shutdown --worktree active --json
Coordinates are normalized from 0 to 1. Prefer tap for single taps, and use gesture for drags or multi-step touch input. Pass --device <udid-or-name> or --emulator <id> when a script must target a specific simulator instead of the worktree's active emulator.
Linear
The orca linear surface is what agents use via the orca-linear skill (legacy install name linear-tickets still works). Prefer --json. Linked worktrees resolve with --current.
Read
orca linear issue --current --full --jsonorca linear issue ENG-123 --comments --children --relations --activity --jsonorca linear search "auth bug" --workspace all --jsonorca linear list --filter assigned --limit 10 --jsonorca linear list-issues --team ENG --state started --assignee me --jsonorca linear list-issues --query auth --updated-at -P7D --cursor <cursor> --workspace <id> --jsonorca linear team list --jsonorca linear team states --team ENG --jsonorca linear team labels --team ENG --jsonorca linear project list --query launch --json
--full expands comments, children, attachments, relations, and activity. Section flags (--comments, --children, --attachments, --relations, --activity) work individually.
MCP-style write
# Create or update (omit id/--current to create; requires --team and --title on create)orca linear save-issue --team ENG --title "Fix auth" --priority high --jsonorca linear save-issue ENG-123 --state "In Progress" --assignee me --jsonorca linear save-issue --current --project null --due-date null --jsonorca linear relation add ENG-1 --related ENG-2 --type blocks --jsonorca linear relation remove ENG-1 --related ENG-2 --type related --json
save-issue labels replace the full label set (Linear MCP save_issue semantics). Literal null clears assignee, estimate, due date, project, or parent.
Field helpers (still valid)
orca linear status set --current --to "In Progress" --jsonorca linear assignee set --current --me --jsonorca linear priority set ENG-123 --to high --jsonorca linear estimate set --current --to 3 --jsonorca linear due-date set --current --to 2026-08-01 --jsonorca linear label add --current --label backend --jsonorca linear comment add --current --body "Investigating regression" --jsonorca linear comment edit <commentId> --body "Investigating the regression" --jsonorca linear comment delete <commentId> --jsonorca linear attach --current --url https://example.com/repro --title "Repro" --jsonorca linear create --title "Flaky login test" --team ENG --priority high --json
comment edit and comment delete target the exact Linear comment ID; comment rm is an alias for delete. Use --body-file <path|-> with edit when the replacement text comes from a file or standard input.
Run orca linear --help or orca skills get orca-linear for the version-matched list. Pass an explicit issue id (e.g. ENG-123) when a script may run outside an Orca-linked worktree.
Skills (local, no runtime required)
List bundled guides, print a version-matched guide, or install/update hybrid skill packages without the desktop Settings UI:
install / update shell out to the same npx skills commands Settings uses. They do not contact the Orca runtime. See Orca skills.
Account (host-local runtime)
On a headless host running Orca (orca serve or the desktop app), add managed Claude/Codex accounts when the remote client cannot use Add account (remote runtime scope disables that button):
orca account listorca account add # Claude by defaultorca account add --agent codex
account add runs claude login / codex login in this terminal on the host, then registers the captured credentials with the local runtime. Codex uses device authorization so the browser can finish on another machine. Run these on the machine that owns the accounts — not through a client-only remote session.
Artifacts
Publish HTML or Markdown through the signed-in Orca account. Viewing a public link does not require sign-in; create/list/update/delete do. Publishing is off by default — a human must enable Settings → Artifacts → Allow publishing public artifact links on the device. There is no CLI flag that grants the gate. list, unshare, and delete stay available so you can audit or revoke links after turning publishing off.
Shared artifact content is limited to 10 MiB per file.
share stores the edit token in the active Orca profile and does not print it. update / unshare resolve by the same local path and profile that originally shared the file.
list is paged (nextCursor → --cursor). delete takes the artifact id from list and does not need the original file.
Relative HTML assets are not uploaded — share self-contained HTML or absolute asset URLs.
Denied publish/update fails with artifact_sharing_disabled; fix Settings instead of retrying.
Desktop: open a local HTML or Markdown file and use Share as artifact, or manage links from the sidebar Artifacts page.
Automations, environments, and hooks
Scheduled prompts:
orca automations list --jsonorca automations create --name "Daily review" --trigger daily --time 09:00 --prompt "Review open changes" --provider claude --repo id:<repoId> --extra-agent-args="--model opus" --disabled --jsonorca automations run <automationId> --json
--extra-agent-args sets a model or effort for one automation's fresh runs without changing the host's defaults; see Scheduled automations.
--environment names a managed Orca server this machine deployed over SSH (the same actions as Settings → Managed servers); stop decommissions a server and forget unlinks one whose host is gone. See SSH worktrees → Managed Orca server.
Use Orchestration for tracked multi-agent dispatches instead of ad hoc terminal prompts.
Workspace cleanup
Use orca workspace cleanup preview to inspect the current rules and their reasons, orca workspace cleanup run to apply them, and orca workspace cleanup report to see past activity and the next run. Add --json for structured output. Cleanup rules are opt-in; see Automatic workspace cleanup before enabling them.
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.