Skip to content
FunCoding

claw-orchestrator

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.

Star
626
Category
MCP tooling
License
MIT
Last commit
Nov 30, 2026

Claw Orchestrator: one runtime over Claude Code, Codex, Antigravity, Grok Build, Cursor, OpenCode, ACP and A2A agents, where agents on different engines work together inside one task

Claw Orchestrator

A Unified Runtime for Coding Agent CLIs

📦 npm • 📖 Documentation • 📰 Blog • 📝 Changelog • 📚 Citation

npm version npm downloads CI License: MIT

Claw Orchestrator runs Claude Code, Codex, Antigravity, Grok Build, Cursor, OpenCode, any Agent Client Protocol agent and any remote A2A agent as persistent sessions behind one API. Agents on different engines work together inside one task: an agent hands work to other engines itself, one model plans while another engine does the work, and a session goes on on another engine when one hits its usage limit. Everything runs headless, from one command to the end. A run counts as done only when checks the agent did not write pass, and every turn on every engine is recorded with its model, tokens, cost and the CLI version it ran on.

News

  • [2026-12] Agent2Figure, built on Claw Orchestrator, was accepted at AAAI 2027.
  • [2026-11] v8.0.0: agents hand work to other engines themselves (delegation), one model plans while another engine works (executor), and a session goes on on another engine at a usage limit (blog).
  • [2026-11] v7.22.0: Claude sessions rotate across several Claude accounts when one reaches its usage limit.
  • [2026-10] v7.14.0: any Agent Client Protocol agent runs as a session (engine: 'acp').
  • [2026-10] v7.13.0: clawo goal keeps a Codex /goal running for hours, and checks the result.
  • [2026-10] ResearchBoost-Agent runs its goal mode on Claw Orchestrator.
  • [2026-09] Declare, Compile, Look, built on Claw Orchestrator, was a talk at the ECCV 2026 Workshop on Multimodal Digital Agents.

Highlights

  • 🤝 Agents that work across engines: an agent starts agents on other engines in the middle of a turn, gives them tasks, waits for them and stops them, within the session's permissions and budget (delegation); one model talks with you and plans while an executor on another engine does the work, such as Gemini planning for Codex (executor); a session or goal refused at a usage limit goes on on the next engine with its conversation (fallbackEngines), and session_handoff moves one on request (guide).
  • 🔀 Every engine, the same way: one set of CLI flags (--codex, --agy, …, and a default engine set once with clawo config); structured output, compaction, side questions and plan mode on every engine, done by clawo where an engine has none (clawo capabilities says which); MCP servers given for one session, never written into the user's MCP config; and each engine's own commands, skills and goal loop (guide).
  • 🧱 Writing sessions take turns: sessions that write to one repository take turns, across every clawo process on the machine; read-only sessions and separate worktrees run alongside (guide).
  • ✅ Verdicts the agent cannot write: acceptance contracts (commands, HTTP probes, screenshots, diff policy, file assertions, and metrics measured against the base commit) run by the runtime. A run ends verified, refuted or unverified, and editing the tests or benchmark its contract runs refutes it (guide; one bug on five engines).
  • 💾 Runs for hours, survives a crash: workflows are checkpointed, with resume, retry, timeout, cancel and steer; clawo goal keeps one agent working toward an objective unattended, on any engine (guide).
  • 🧾 Known cost and provenance: one per-turn ledger across engines (clawo runs), each row with the clawo version and the engine CLI's version; a maxBudgetUsd cap the runtime enforces on every engine, over a whole delegation tree (guide).
  • 🔌 Fits your tools: a CLI, an MCP server, an ACP agent for editors, an A2A agent, an OpenAI-compatible endpoint, a TypeScript SDK and an OpenClaw plugin (ways to run).

claude-squad, Conductor and Vibe Kanban are interfaces for running agents side by side in worktrees; Claude Code subagents and Codex's parallel attempts stay within one vendor. Claw Orchestrator is a headless runtime underneath: several vendors behind one API, agents of different vendors in one task, durable workflows, and a verification step the agents cannot edit. They can be used together.

Quick Start

Requires Node 22+ and at least one engine CLI installed and logged in (claude, codex, agy, grok or opencode).

npm install -g @enderfga/claw-orchestrator
clawo serve &    # local runtime + dashboard on 127.0.0.1:18796
clawo solve "The test fails. Fix price.js." --codex \
  --check "npm test" --check "node ../holdout/price.spec.mjs" --wait
clawo verify <runId>    # each check, why it failed, the files that changed
clawo runs --since 1h   # every turn on every engine: model, tokens, cost, verdict
clawo session-start web --agy -m gemini-4-neon-high --executor codex   # Gemini plans and talks, Codex works
clawo session-start lead --claude --delegation --fallback-engines codex
clawo session-send lead "Split the migration across Codex and Antigravity, then review their changes" --stream
clawo fanout "How would you speed up this test suite?" --engines claude,codex,grok --synthesize --wait
clawo goal --objective-file GOAL.md --check "npm run bench:check" --check-timeout 120 --wait

The server writes an access token to ~/.openclaw/server-token and the CLI reads it from there. To sign in the browser once, open http://127.0.0.1:18796/login?token=<token>&redirect=/dash. The token grants full control, including running commands as the server's user, so keep it private; see Security model before exposing the server beyond localhost.

  • 🧪 Acceptance contracts and evidence bundles (guide)
  • 🔁 Workflows, resume and the goal node (guide)
  • 🖥️ Every CLI command (guide)
  • 🧰 All 86 tools (guide)

Ways to run

ForStart here
CLI and dashboardTerminals and scriptsclawo serve, then cli.md
MCP serverClaude Code, Claude Desktop, Cursor, Cline, Continue, Zed, Windsurf, Goose, Hermes Agentclaude mcp add clawo -- clawo-mcp, then mcp.md
ACP agentZed, JetBrains, Neovim, Emacs, the VS Code ACP extension, dshclawo acp, then acp.md
OpenAI-compatible endpointAny OpenAI SDK client or webchat, without changing call sitesPOST /v1/chat/completions (openai-compat.md)
A2A agentAny A2A 1.0 client or agentclawo serve, Agent Card at /.well-known/agent-card.json (a2a.md)
TypeScript SDKEmbedding the runtime in your own serviceimport { SessionManager } from '@enderfga/claw-orchestrator' (below)
OpenClaw pluginEvery OpenClaw agent gets all 86 toolscurl -fsSL https://raw.githubusercontent.com/Enderfga/claw-orchestrator/main/install.sh | bash
import { SessionManager } from '@enderfga/claw-orchestrator';

const manager = new SessionManager();
await manager.startSession({ name: 'fix-tests', engine: 'claude', cwd: '/project' });
const result = await manager.sendMessage('fix-tests', 'Fix the failing tests');

From an MCP host, ask for workflow_start with template solve, a task, and a contract such as {"checks":[{"type":"command","cmd":"npm","args":["test"]}]}. In an ACP editor, the model selector is grouped by engine, so one dropdown switches between Claude, Codex, Antigravity and Grok models mid-session.

Engine compatibility

EngineCLITested version
Claude Codeclaude2.1.332
Codexcodex0.172.0
Antigravityagy1.5.20
Grok Buildgrok1.0.97
Cursorcursor-agent2026.12.01
OpenCodeopencode1.19.6, 2.4.2
ACP agentanyKimi Code 2.3.1, dsh 0.2.1-rc.2, Grok Build 1.0.97, Cursor 2026.12.01, Antigravity 1.5.20
Custom CLIany—
A2A agentanyA2A 1.0, JSON-RPC binding (@a2a-js/sdk 1.3.0 and its samples)

An agent that serves the Agent Client Protocol on stdio runs as engine: 'acp'; any other coding CLI that runs as a subprocess can be wired up as a custom engine.

How the table stays current

The versions above are what the weekly sweep last ran. scripts/sweep.ts measures each core engine's installed, pinned and upstream version, diffs the flags the wrapper passes against the binary's --help and, for Claude Code and Cursor, against the options their own JavaScript declares, hidden ones included, lists each engine's built-in slash commands (Codex: its app-server methods) and holds every listed name to a recorded decision, runs one live turn through the real wrapper class, checks on a scratch copy that a session option does not rewrite the user's engine config, smokes the ACP and MCP entry points, and checks src/models.ts against the OpenAI, Anthropic and xAI published price tables. No model judges any of it, so the check that reports a wrapper as broken does not share the wrapper's failure modes.

scripts/sweep-workflow.json wraps the same script as a durable run on this project's own kernel: verifier → router → an agent that drafts the alignment on a sweep/<date> branch → a human gate. A person reviews and merges; the orchestrator does not edit its own code unattended.

All features

CapabilityWhat it doesReference
Persistent sessionsLong-lived agents kept alive across requests, with context, tool, model and worktree control.sessions.md
Multi-engine runtimeOne interface and one set of CLI flags over the engines above, any ACP agent, and custom CLIs; a configurable default engine.multi-engine.md
Session handoffMoves a live conversation to another engine or model in the same workspace; the old session keeps running.sessions.md
Engine featuresEach engine's own commands and skills, quota, side questions, rewinds, a model per send, live model switches and its own goal loop (session_command, engine_quota, session_aside, session_rewind, nativeGoal).sessions.md
Orchestrated sessionsOne model plans and talks with you, another engine does the work: Gemini on agy planning for Codex, Claude Code for Codex, any pair (executor).sessions.md
DelegationAn agent hands work to other engines itself, mid-turn: it starts agents, gives them tasks, waits and stops them, within the session's permissions and budget (delegation).sessions.md
Engine failoverA session or goal that hits a usage limit goes on on the next engine of fallbackEngines, with the conversation carried over.sessions.md
MCP servers per sessionmcpServers on Claude Code, Codex, Cursor, OpenCode and ACP agents, given for one session and never written into the user's MCP config.sessions.md
Workspace turnsWriting sessions in one repository take turns, across processes; read-only sessions and separate worktrees run alongside.sessions.md
Same features everywhereStructured output, compaction, side questions and plan mode on every engine, done by clawo where an engine has none; clawo capabilities says which.tools.md
Live streamingA turn's text and tool calls as they happen: SSE on HTTP, clawo session-send --stream, MCP progress, ACP tool updates.sessions.md
A2A, both waysclawo serve is an A2A 1.0 agent (/.well-known/agent-card.json, JSON-RPC at /a2a), and any A2A agent runs as an engine (--a2a <url>).a2a.md
Claude accountsSeveral Claude accounts, keys or gateways; a session moves to the next one at its usage limit and keeps its conversation.multi-engine.md
Verification planeAcceptance contracts the runtime runs itself, metrics against the base commit included, with an evidence bundle on disk.verification.md
Durable run kernelDeclarative workflows over agent, goal, fanout, council, verifier, human_gate, router and more, checkpointed.workflow.md
Fan-outOne task across N engine/model agents in parallel, with an optional synthesis pass.tools.md
Team forumEvery mode's agents — fan-out, council, autoloop, ultraplan/ultrareview, workflow nodes, sessions — talk over their run's forum; the user's steers and the runtime's messages go there too, each framed by who wrote it.workflow.md
CouncilParallel agents in isolated git worktrees, voting until they reach consensus.council.md
AutoloopA Planner, Coder and Reviewer iterating on a workspace, each with its own engine and model; you chat with the Planner.autoloop.md
UltraappA short structured interview turned into a deployed web app at localhost:19000/forge/<slug>/.ultraapp.md
ultracodesession_start({ ultracode: true }) lets Claude orchestrate a dynamic workflow of subagents.tools.md
Run ledger, spend capsEvery turn and every workflow run in a JSONL ledger (clawo runs, --by model); maxBudgetUsd per session or per run.observability.md
OpenAI-compatible proxyPOST /v1/chat/completions routed to persistent sessions on the engine the model name selects, streamed back in OpenAI shape.openai-compat.md
DashboardAutoloop, Council and Forge tabs with lifecycle controls and live event streams, and a Runs tab of durable workflow runs.dashboard.md

Built on Claw Orchestrator

  • ResearchBoost-Agent: an autonomous agent that profiles, optimizes and validates AI training code; its long goal-mode runs use clawo goal (blog).
  • Agent2Figure: evidence-grounded scientific figure generation via geometry compilation to editable vector, AAAI 2027.
  • Declare, Compile, Look: coordinate-free layout generation with vision-in-the-loop repair, ECCV 2026 Workshop on Multimodal Digital Agents (talk).

Using Claw Orchestrator in a project or paper? Open a pull request to add it here.

Citation

If Claw Orchestrator helps your research, please cite its technical report:

@techreport{fang2026claworchestrator,
  title     = {Claw Orchestrator: A Unified Runtime for Coding Agent CLIs},
  author    = {Fang, Guian},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23874036},
  url       = {https://doi.org/10.5281/zenodo.23874036}
}

Research built on Claw Orchestrator:

@misc{researchboost2026infra,
  author = {{ResearchBoost Team}},
  title  = {{ResearchBoost}: {RSI} starts with Infra},
  year   = {2026},
  url    = {https://ydove0324.github.io/hx_resume/blog/researchboost/}
}

@inproceedings{fang2027agent2figure,
  title     = {Agent2Figure: Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vector},
  author    = {Fang, Guian and Liu, Mengsha},
  booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
  year      = {2027},
  note      = {To appear}
}

@inproceedings{fang2026declare,
  title     = {Declare, Compile, Look: Coordinate-Free Layout Generation with Vision-in-the-Loop Repair},
  author    = {Fang, Guian and Liu, Mengsha and Shou, Mike Zheng},
  booktitle = {ECCV 2026 Multimodal Digital Agents Workshop},
  year      = {2026},
  url       = {https://openreview.net/forum?id=Romd50Ce0w}
}

Contributing

See CONTRIBUTING.md. Run npm run build && npm run lint && npm run format:check && npm run test before submitting.

License

MIT, see LICENSE.

Similar MCP servers

OpenWork MCP Gateway

Your OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.

DIdifferent-ai/openwork25k46 new stars in the last 7 days

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

TAtadata-org/fastapi_mcp12k

agentgateway

Next Generation Agentic Proxy for AI Agents and MCP servers

AGagentgateway/agentgateway6.5k135 new stars in the last 7 days

Featured

mcp-context-forge

Federate MCP, A2A and REST APIs behind one endpoint with central governance.

IBIBM/mcp-context-forge4.9k33 new stars in the last 7 days

Featured

FreeCAD MCP

Control FreeCAD: create and edit 3D models, run Python scripts, and perform FEM analysis.

NEneka-nat/freecad-mcp3.5k78 new stars in the last 7 days