# claw-orchestrator [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Enderfga/claw-orchestrator  
**GitHub Stars:** 642  
**npm Downloads (last month):** 8698  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/claw-orchestrator

## Description
Run Claude Code, Codex, Antigravity, Grok Build and OpenCode behind one runtime, and a run only counts as done when checks it didn't write pass. Cross-engine fan-out, councils, session handoff, spend caps, MCP server, ACP agent.

## Tools
Capabilities this server exposes over MCP:

- **session_start** — Start a persistent coding session on any engine; without `engine`, the configured default (Claude Code out of the box). Engines: claude for the Claude Code CLI, codex for the OpenAI Codex CLI, agy for the Google Antigravity CLI, grok for the xAI Grok Build CLI, opencode for the sst/opencode CLI, acp for any Agent Client Protocol agent (Kimi Code, dsh, OpenCode, Claude Code via an ACP adapter), or custom for any user-configured coding agent CLI.
- **session_send** — Send a message to a persistent coding session and get the response
- **session_handoff** — Continue a session's conversation on another engine (or another model). Starts a new session on the target engine in the same working directory and carries the conversation into it as text, so the new agent picks up where the old one left off. The source session keeps running untouched — stop it yourself if you are done with it. Pass `message` to send the next instruction immediately; otherwise the history travels with whatever you send next via session_send.
- **session_stop** — Stop a persistent coding session and remove it from the resume registry, so a later session_start under the same name begins a new conversation
- **session_list** — List the active coding sessions, and the persisted ones that a session_start under the same name resumes
- **sessions_overview** — Get an aggregate overview of all active coding sessions — readiness, busy/paused state, cost, context usage, and last activity for each. Use this for a dashboard view across all sessions. For single-session detail, use coding_session_status instead.
- **coding_session_status** — Get detailed status of a coding session: context %, tokens, cost and spend cap, turns, tool calls, retries, start time and last activity; the context breakdown when the engine gives one, and the last turns the engine started itself (engineTurns)
- **session_grep** — Search the session's in-memory event history (its 100 most recent events) for a regex pattern, case-insensitive
- **session_compact** — Compact a session to reclaim context window space, after any message in flight. Returns when the compaction is done, with the token counts before and after where the engine reports them. On an engine that cannot compact, a turn summarizes the conversation and the next send starts a fresh conversation seeded with the summary (trigger 'fallback').
- **coding_agents_list** — List agent definitions from .claude/agents/
- **team_list** — List the other active sessions as this session's teammates, with engine, idle/busy/paused state and turn count. Works on every engine; enableAgentTeams is not required. Sessions that a council, autoloop or workflow run started belong to that run and are not listed.
- **team_send** — Send a message to another active session, as session_send_to does, with the summary "team message from <name>": an idle session gets it as a new turn, a busy Claude Code or codex-app session in the turn in flight, any other waits in its inbox.
- **session_update_tools** — Update allowedTools or disallowedTools for a running session. Restarts the session process with --resume to apply the new tool constraints while preserving conversation history. Rejects if the session is currently busy. Without merge:true both lists are replaced, so a list you omit is cleared.
- **session_switch_model** — Switch the model for a running session immediately, keeping the conversation. In place where the engine can (live: true); otherwise the session process restarts with --resume so the new model takes effect on the next message (live: false).
- **session_command** — List or run a session's engine commands — slash commands, skills, custom commands and engine RPCs (review, init, boost, …). `list` returns each command with whether it starts an agent turn; `run` runs one and returns its reply. A command that starts a turn waits for the message in flight; one that needs a person is refused. Fails on an engine whose sessions take no commands.
- **engine_quota** — Read how much of an engine account's usage quota is left — each usage window with its used or remaining percentage and reset time. For one engine, for the engine of a session, or for every engine clawo can read a quota for. Read it before batch work on a subscription engine.
- **engine_capabilities** — What each engine can do and how: engine commands (text/rpc), quota, side questions, rewinds, compaction, structured output and plan per send (native, or clawo's fallback built from what every engine has), per-send model, live model and effort switches, images, native goal, mid-turn steering, resume and fork, read-only enforcement. For one engine, every engine, or a live session. Read from the engine wrappers themselves.
- **session_aside** — Ask a session a side question: answered from its conversation's context without adding to the conversation. On an engine with no side questions of its own, a throwaway read-only session of the same engine and model answers it from the conversation record, and is stopped after.
- **session_rewind** — Rewind a session's conversation: drop its last N turns, or go back to a message, after any message in flight. `files: true` also restores the files those turns changed, where the engine can. On codex-app it is thread/revert (as codex_rollback): the conversation only. Fails on an engine that cannot rewind.
- **project_purge** — Delete Claude Code project state (transcripts, tasks, file history, config entry) via `claude project purge`. Defaults to dry-run for safety — pass dry_run=false to actually delete. Use all=true to purge every project.
- **plugin_details** — Show a plugin's component inventory (commands, hooks, MCP servers, agents, skills) plus the per-session token cost of loading it. Wraps `claude plugin details <name>` (CLI 2.1.139+).
- **claude_goal_set** — Set a goal condition on a claude session. Claude Code keeps working across turns until the condition is met, evaluating after each turn via Haiku. Sends `/goal <objective>`. Requires engine: "claude".
- **claude_goal_clear** — Clear the active goal on a claude session. Sends `/goal clear`. Requires engine: "claude".
- **claude_goal_status** — Query the active goal on a claude session (objective, elapsed, turns, tokens). Sends bare `/goal` and returns the assistant reply. Requires engine: "claude".
- **codex_resume** — Resume a previously recorded Codex thread by UUID/name, or pick the most recent with last=true. Spawns `codex exec resume` with --json so the output is parsed into structured fields. Independent of session manager state — useful for cross-process continuity.
- **codex_review** — Run a non-interactive Codex code review (`codex exec review --json`). Pick at most one diff scope — uncommitted (working-tree changes), base (vs branch), or commit (vs SHA); passing two is an error. Returns the review text (the final message), the thread id and the review's token usage, which also reaches the run ledger.
- **codex_goal_set** — Set a long-horizon objective on a codex-app session (thread/goal/set). Codex then works turn after turn on its own until the goal leaves "active". Requires engine: "codex-app". Returns { ok, goal } where goal is { objective, status: "active"|"paused"|"blocked"|"usageLimited"|"budgetLimited"|"complete", tokenBudget, tokensUsed, timeUsedSeconds, ... } or null.
- **codex_goal_get** — Read the goal of a codex-app session from the app-server (thread/goal/get). Sends no turn. Returns { ok, goal } where goal is { objective, status: "active"|"paused"|"blocked"|"usageLimited"|"budgetLimited"|"complete", tokenBudget, tokensUsed, timeUsedSeconds, ... } or null.
- **codex_goal_pause** — Pause goal pursuit on a codex-app session (thread/goal/set status "paused"). Returns { ok, goal } where goal is { objective, status: "active"|"paused"|"blocked"|"usageLimited"|"budgetLimited"|"complete", tokenBudget, tokensUsed, timeUsedSeconds, ... } or null.
- **codex_goal_resume** — Resume a paused or stopped goal on a codex-app session (thread/goal/set status "active"). Returns { ok, goal } where goal is { objective, status: "active"|"paused"|"blocked"|"usageLimited"|"budgetLimited"|"complete", tokenBudget, tokensUsed, timeUsedSeconds, ... } or null.
- **codex_goal_clear** — Remove the goal from a codex-app session (thread/goal/clear). Returns { ok, goal } where goal is { objective, status: "active"|"paused"|"blocked"|"usageLimited"|"budgetLimited"|"complete", tokenBudget, tokensUsed, timeUsedSeconds, ... } or null.
- **codex_interrupt** — Cancel the in-flight turn on a codex-app session (`turn/interrupt`).
- **codex_steer** — Add input to the in-flight turn on a codex-app session without restarting it (`turn/steer`). Falls back to a normal turn when idle.
- **codex_fork** — Branch a codex-app thread into a new one (`thread/fork`); returns the forked thread id.
- **codex_rollback** — Drop the last N turns from a codex-app thread (`thread/turns/list` + `thread/revert`). Changes the conversation history only, not files.
- **codex_models** — List models available to a codex-app session (`model/list`), incl. supported reasoning efforts.
- **codex_thread_list** — List Codex threads visible to a codex-app session (`thread/list`), with optional filters.
- **claude_agents_list** — List Claude Code background agent sessions via `claude agents --json` (state/model/title/progress). One-shot, not tied to a managed session.
- **fanout_start** — Run one task across N engine/model agents IN PARALLEL and collect their answers (optional synthesis): the way to have Claude Code, Codex, Antigravity and others review, analyse or compare the same thing at once. Each agent can have its own engine, model (the engine's own id, e.g. gpt-6.2-astra, gemini-4-neon-high), effort, cwd and sandboxMode. No rounds, votes, or worktrees — use council for isolated parallel edits; agents that can write and share a directory take turns (workspaceLock), read-only ones run at once. Runs in background; poll with fanout_status, whose results name each answer's file (outputFile) for reading long reports whole.
- **fanout_status** — Poll a running or finished fan-out by id; returns per-agent results and any synthesis. Each result names outputFile, the answer written to the run directory (outputs/<agent>.md; synthesisFile for the synthesis), so a long report can be read whole.
- **fanout_abort** — Abort a running fan-out by id (already-started agents finish; synthesis is skipped).
- **workflow_start** — Start a durable workflow run. Nodes: agent | fanout | council | goal | verifier | human_gate | router | subflow. Every state transition is checkpointed to disk, so a run survives a process restart and can be resumed. When a contract is supplied the run cannot reach `completed` unless the runtime's own checks pass — without one it completes as `unverified`, which means nothing checked it. Runs in background; poll with workflow_status.
- **workflow_status** — Poll a workflow run. Returns state, per-node status, and the outcome: `verified` (a contract passed), `refuted` (it failed), or `unverified` (nothing checked the work: none was declared, or a pass no longer stands, in which case `outcomeReason` says why).
- **workflow_list** — List workflow runs on this machine, newest first. Survives restarts.
- **workflow_resume** — Re-attach to a workflow whose process died. Nodes already marked succeeded are not re-run; the node that was in flight is retried, because a half-finished node left no result to trust.
- **workflow_cancel** — Cancel a running workflow. The current node is asked to stop; the run ends in `cancelled`.
- **workflow_steer** — Queue a correction for a running workflow. The text goes in front of the next agent or goal node's prompt — corrections belong before the task, not after it — and a goal that is running gets it in its turn. It is also posted on the run's forum as the user's (`FIX: …`), so agents running on a run with a forum get it at once. Returns steered: false when the run is not live in this process.
- **workflow_forum** — Read or post to a workflow run's forum, the board of titled posts its agents share when the spec sets `forum`. Every run also keeps its runtime's posts there — steers, each agent's output (`DONE: <agent> output`), a gate's question and answer, the verifier's verdict — so `list`, `read` and `metrics` work on any run, and on a session forum (`fm-…`). `list` returns every post's title, author, authority (who it speaks for, as the forum's ledger has it), tags and score; `read` one post in full; `post` adds one to a run whose agents are on a forum, as the orchestrator by default or as the user (`author`), which agents get by the forum's push rules, and returns it with notes for its poster; `metrics` returns posts by agent and tag, the runtime's posts apart, ASKs with the time to their first answer, open ASKs, and how long each post that names an agent took to reach it.
- **workflow_approve** — Answer a workflow parked at a human_gate node. A run parked before a server restart is resumed with the answer attached. The answer is posted on the run's forum as the user's (DONE: approved / FAIL: rejected, answering the gate's ASK @user); `comment` is its body, and is also handed to the next agent as a steer.
- **verify_run** — Run an acceptance contract against a directory and return the evidence bundle. Use it to check work that did not come through a workflow — a plain session that edited a repo, say. The contract is yours; nothing is taken from agent output.
- **council_start** — Start a multi-agent council that collaborates on a task using git worktree isolation, round-based execution, and consensus voting. Each agent can use its own engine and model. The seats share the run's forum: each round report is posted there, and seats ask each other and post reviews on it. Runs in background; poll with council_status.
- **council_status** — Get the status of a running council session
- **council_abort** — Abort a council running in this process, stopping all agent sessions and removing the worktrees it created. A council that is not running here is left alone and the call returns ok: false.
- **council_inject** — Send the user's message to a council that has not finished. It is posted on the run's forum as the user, and every agent's next round prompt carries it under '## User Injection'; agents on the forum that are running now are also handed it mid-turn where their engine allows. Messages add up: a second inject does not replace the first. Works from any process; the result names the post.
- **council_review** — Review a completed council session. Returns a structured report of all changed files, branches, worktrees, plan.md status, review files, the reviews the agents posted on the run's forum (forumReviews), and agent summaries. Does not modify any state — purely informational. Use this before deciding to accept or reject.
- **council_accept** — Accept and finalize council work. Cleans up all council scaffolding: removes worktrees, deletes council/* branches, removes plan.md and reviews/ directory. Only call after reviewing with council_review.
- **council_reject** — Reject council work and provide feedback. Rewrites plan.md with rejection feedback and commits it. Does NOT delete any worktrees or branches — the council can be restarted to retry. Use this when the council output is incomplete or broken.
- **session_send_to** — Send a cross-session message from one session to another, recorded on the session forum. An idle target gets it as a new turn; a busy Claude Code or codex-app target gets it in the turn in flight; any other target keeps it in its inbox until session_deliver_inbox. The target can answer with a <new-forum-post> block in its reply, which comes back to the sender the same way (a busy sender gets it mid-turn, an idle one in its inbox). Use "*" to send to every other session. Sessions that a council, autoloop or workflow run started are refused: reach them with workflow_forum post on their run.
- **session_inbox** — Read the messages sent to a session (the newest 200), unread only by default. Reading does not mark them read; a message counts as read once it was handed to the session.
- **session_deliver_inbox** — Deliver all unread inbox messages to a session in one turn, each in its own envelope; they count as read once the turn has started. Call this when a session finishes a task to process waiting messages. Fails, leaving them unread, when the turn cannot start (spend cap reached).
- **ultraplan_start** — Start an Ultraplan session: a dedicated Opus planning session that explores your project for up to 30 minutes and produces a detailed implementation plan. Runs in background. The planner is `planner` on the run's forum: it asks the user there (`ASK @user: …`) when something must be decided; ultraplan_status lists those as openAsks, and workflow_forum post answers one.
- **ultraplan_status** — Get the status of an Ultraplan session. Returns the plan text when completed, and on a run with a forum openAsks: the questions the planner has asked there that nobody has answered.
- **ultrareview_start** — Start an Ultrareview: 1-20 read-only reviewer agents (default 5) that review your codebase in parallel, each from a different angle (security, performance, logic, types, etc.), merged into one report by a read-only synthesis pass. Runs in background.
- **ultrareview_status** — Get the status of an Ultrareview. Returns all findings when completed, and on a run with a forum, while it runs too, forum: { posts, failTitles, openAsks } — the reviewers' FAIL titles so far and the unanswered ASKs.
- **autoloop_start** — Start a v2 autoloop run in chat mode. Planner, Coder, and Reviewer default to Claude (opus/sonnet/sonnet) but each role can use a different engine/model. Coder and Reviewer are spawned later by the Planner after plan approval. Returns a run_id and the Planner session name.
- **autoloop_chat** — Send a chat message to the Planner of a v2 autoloop run. Returns the Planner's natural-language reply. Blocking: resolves after the Planner finishes its turn.
- **autoloop_status** — Get current state of a v2 autoloop run (status, iter, push count, subagents_spawned).
- **autoloop_list** — List the v2 autoloop runs recorded on this machine, running and finished, newest first.
- **autoloop_reset_agent** — Reset a single subagent (Coder or Reviewer) on a v2 run. Stops its persistent session; the next directive/review_request will re-prime from the system prompt + ledger artifacts. Use when an agent has drifted (repeated rejects, hallucinated context, token bloat). Planner reset requires force=true because it discards chat history with the user.
- **autoloop_rebind_role** — Change the engine, model or effort of one role (planner, coder or reviewer) of a running v2 autoloop run, without restarting the run. Applied before the role's next message, never during a turn. On the same engine the role keeps its conversation; on a new engine it starts a new one, which for the Planner needs force=true. Coder and Reviewer can be rebound once spawn_subagents has started them. Kept across a resume.
- **autoloop_stop** — Terminate a v2 autoloop run. Stops Planner (and Coder/Reviewer once spawned).
- **autoloop_resume** — Resume a v2 autoloop run. Ordinary and activity-lease pauses resume with no timeout fields. Live send-timeout pending: omitting timeout fields is a no-op (pending is not cleared); advancing it needs an explicit send_timeout_ms increase and the matching pending_dispatch_id. Cold resume: omission still follows manager reconstruction even when a pending dispatch was stored; pending_dispatch_id is required only when an increase and pending coexist; a cold timeout-only increase without pending remains supported. Optional *CustomEngineRef names resolve against CLAWO_CUSTOM_ENGINE_<REF> on the orchestrator host for cold custom-engine runs. run_id and optional pending/ref strings must be finite ASCII identifiers (see parameter schemas); invalid shapes fail before resume. Returns { ok, state }; a paused or terminated state is not completed project work.
- **ultraapp_list** — List all ultraapp runs with title, mode (interview, queued, building, build-complete, deploying, done, failed, cancelled), and timestamps. Read-only — to start a new run, call ultraapp_new or open the Forge dashboard tab.
- **ultraapp_get** — Get the AppSpec, chat history, and state for one ultraapp run. Pass `runId` from ultraapp_list.
- **ultraapp_status** — Get the run state (mode, failure reason if any) for one ultraapp run. Cheap; no chat or spec data.
- **ultraapp_new** — Start a new ultraapp run. Spawns the interview Claude Opus session; the first question lands on the SSE stream / next ultraapp_get call. Returns the runId.
- **ultraapp_answer** — Submit an answer to the current interview question. Either pick `value` (one of the option values from the latest question) or pass `freeform` text — both can be used together for "selected X with caveat".
- **ultraapp_add_file** — Reference a local example file by absolute path (under $HOME or /tmp; symlinks and dotfiles rejected). Use this to attach reference inputs the interview can extract metadata from. For binary uploads from a browser, use the dashboard.
- **ultraapp_spec_edit** — Manually edit the AppSpec via a JSON Patch (RFC 6902). Use sparingly — the interview engine produces and updates the spec automatically. Useful to correct a slot before clicking build.
- **ultraapp_build_start** — Enqueue a build for the run. Builds run serially. Watch ultraapp_status for transitions: queued → building → build-complete (or → deploying → done if a router is wired).
- **ultraapp_build_cancel** — Cancel a queued or in-flight build. A queued build leaves the queue; an in-flight build's workflow run is cancelled, and the build stops at its next cancellation check.
- **ultraapp_feedback** — Submit a done-mode feedback message (after the run reaches `done`). The text is classified by Haiku into cosmetic / spec-delta / structural and routed: cosmetic runs the patcher (Opus diff + validate + auto-revert + version snapshot); spec-delta flips the run back to `interview` with a focused bootstrap; structural posts a "start fresh" suggestion. Before the run reaches `done`, the text is sent to the interview as a free-form answer instead.
- **ultraapp_promote_version** — Make a version the one serving the app. A version deployed before is swapped in (the live one is stopped, the target restarted, the router map updated); one never deployed, such as a patched version, is built and deployed first. Requires a router to be wired (see clawo serve).
- **ultraapp_start_container** — Start the deployed container for a run (e.g., after `ultraapp_stop_container` or after orchestrator restart with a stopped container). Re-registers the slug on the router.
- **ultraapp_stop_container** — Stop the deployed container and deregister the slug from the router. URL returns 404 until ultraapp_start_container.
- **ultraapp_delete** — Delete a run completely: stops the container, removes the image, deregisters the slug, and removes the on-disk run dir at ~/.claw-orchestrator/ultraapps/<runId>/. Irreversible.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "claw-orchestrator": {
    "command": "npx",
    "args": ["-y","-p","@enderfga/claw-orchestrator","clawo-mcp"]
  }
}
```

## Documentation

## What claw-orchestrator does

claw-orchestrator provides an MCP interface over several coding-agent runtimes. A client can create named sessions, send instructions to them, inspect their activity, and stop or resume them later. Supported engines include Claude Code, OpenAI Codex, Google Antigravity, xAI Grok Build, sst/opencode, ACP-compatible agents, and user-configured coding-agent CLIs.

The runtime is designed for workflows in which more than one agent contributes to the same task. Sessions can hand work to another engine, use an executor on a different engine, communicate with other active sessions, or continue on a fallback engine after a usage limit. The broader runtime also supports agent swarms, durable workflows, acceptance checks, and per-turn cost and provenance records.

## How it works

A session starts with a selected engine and a working directory. `session_send` delivers subsequent instructions and returns the agent response. `session_handoff` starts a new session on another engine in the same directory and transfers the previous conversation as text; the original session remains active until stopped separately.

Session state is tracked by name and can be listed or inspected. The runtime reports readiness, busy or paused state, context use, tokens, turns, tool calls, retries, cost, spend caps, and activity timestamps. Recent session events can be searched with a regular expression, and a session can be compacted when more context space is needed.

Cross-session coordination uses team tools. An active session can list its teammates and send them messages, which are delivered immediately when the recipient is idle or queued while it is busy. Running sessions can also have their model or allowed-tool restrictions changed; these operations restart the process with resume while retaining conversation history.

## Setup and configuration

Install the package globally with Node.js 22 or newer:

```bash
npm install -g @enderfga/claw-orchestrator
clawo serve
```

The server and dashboard bind to `127.0.0.1:18796` by default. At least one supported engine CLI must be installed and authenticated, such as `claude`, `codex`, `agy`, `grok`, or `opencode`. ACP agents can be used through the ACP engine, including Kimi Code, dsh, OpenCode, and Claude Code through an ACP adapter.

The server creates an access token at `~/.openclaw/server-token`. Keep this token private: it grants full control, including the ability to run commands as the server user. The browser dashboard can be opened with the token-based login URL described by the project.

## Tools and capabilities

- Start, send messages to, list, inspect, hand off, stop, and compact persistent sessions.
- Search the 100 most recent in-memory session events with a case-insensitive regex.
- View aggregate session readiness, activity, context use, token usage, cost, and spend limits.
- List agent definitions from `.claude/agents/` and coordinate active sessions as teammates.
- Change a running session's model or allowed and disallowed tools while preserving its history.
- Set, inspect, and clear Claude Code goals that continue across turns.
- Resume Codex threads, run Codex reviews, and manage Codex goals, interruption, steering, forks, and rollback.
- Purge Claude Code project state, with a dry-run default for the purge operation.
- Inspect a Claude plugin's components and per-session token loading cost.

## Limitations and notes

The MCP interface controls local coding-agent processes and depends on the corresponding engine CLI or ACP agent being installed and authenticated. Engine-specific tools have engine-specific requirements; for example, Claude goal operations require the Claude engine, while Codex goal operations target Codex app sessions.

A handoff copies conversation text into a new session rather than moving the original process. The source session continues running and must be stopped separately when it is no longer needed. Updating tool permissions or switching models also restarts the session process, although its conversation is preserved.

The server's access token grants broad control over the host account, so exposing the service beyond localhost requires careful handling of authentication and network access.

_Full upstream README: https://allmcps.com/mcp/claw-orchestrator/readme_

