@enderfga/claw-orchestrator

中文文档
7.22.1发布于 2026/11/11MITTypeScriptES Module构建来源已验证近 30 天下载 6923

Claw Orchestrator — run Claude Code, Codex, Antigravity, Grok Build, OpenCode, any ACP agent and custom coding CLIs as one unified runtime. Drop into Hermes Agent, Claude Desktop, Cursor, Cline, Continue, Zed, Windsurf, Goose or any Model Context Protocol

原始使用文档
文档目录10 节
  1. News
  2. Highlights
  3. Quick Start
  4. Ways to run
  5. Engine compatibility
  6. All features
  7. Built on Claw Orchestrator
  8. Citation
  9. Contributing
  10. License

Claw Orchestrator: one run through six steps — declare the checks, dispatch to any engine, run, verify, record, verdict — with a failed check sent back to the agent, on a family of coding agents

Claw Orchestrator: A Unified Runtime for Coding Agent CLIs

📦 npm • 📖 Documentation • 🎬 Demo film • 📝 Changelog • 📚 Citation

npm version npm downloads CI License: MIT

Claw Orchestrator runs Claude Code, Codex, Antigravity, Grok Build, OpenCode and any Agent Client Protocol agent (Kimi Code, dsh) as persistent sessions behind one API. A run counts as done only when checks the agent did not write pass: you declare the checks, the runtime runs them and reads the exit codes, and the evidence stays on disk. Runs are checkpointed workflows that survive a crash, and every turn on every engine is recorded with its model, tokens and cost.

An agent reports that all tests pass; the runtime's own check refutes it. Five engines, three runs each, tallied by verdict.

One bug, one acceptance contract, five engines, three runs each, first attempt only. The runtime ran the checks itself: 9 verified, 4 refuted, 2 errored (Grok Build hit its free-tier usage limit). One task, not a benchmark. How the film was made, and how to re-run it.

The 40-second film, with sound

https://github.com/user-attachments/assets/5bf9bea8-e5ac-4632-a292-a80a45831dff

News

  • [2026-11] v7.22.0: Claude sessions can run under several Claude accounts and move to the next one when an account reaches its usage limit, continuing the same conversation.
  • [2026-11] v7.21.0: the plugin loads when OpenClaw installs it, with no native module to build.
  • [2026-11] v7.20.0: a fan-out agent can run as a goal, so several agents can each work a copy of a project until it is done, in parallel.
  • [2026-11] v7.19.0: a fan-out agent can run in a directory of its own, so several agents can write code in parallel, one copy each.
  • [2026-11] v7.18.0: CLAWO_CLAUDE_GATEWAY=1 runs a claude session on any model your own Anthropic-compatible gateway serves, by its own name.
  • [2026-11] v7.17.0: an agent can resume a paused autoloop run itself (autoloop_resume), and a Codex goal that hits a model at capacity is resumed on its thread instead of failing.
  • [2026-10] v7.16.0: clawo goal --engine claude runs a goal on Claude Code's /goal, with the same checkpointing, resume and verification as a Codex goal.
  • [2026-10] ResearchBoost-Agent, an autonomous agent that profiles, optimizes and validates AI training code, now runs its goal mode on Claw Orchestrator.
  • [2026-10] v7.14.0: any Agent Client Protocol agent runs as a session (engine: 'acp'), with presets for Kimi Code and dsh.
  • [2026-10] v7.13.0: clawo goal keeps a Codex /goal running for hours on one thread, reattaches it after a crash, and judges the result with your checks.
  • [2026-09] Declare, Compile, Look, built on Claw Orchestrator, was presented as a talk at the ECCV 2026 Workshop on Multimodal Digital Agents.
  • [2026-08] v6.0.0: the durable run kernel and the verification plane. A run survives its own process dying, and a run with an acceptance contract is judged by the runtime, not by the agent.

Highlights

  • ✅ Verdicts the agent cannot write: acceptance contracts (commands, HTTP probes, screenshots, diff policy, file assertions) run by the runtime. A run ends verified, refuted or unverified, and editing the tests its contract runs refutes it (guide).
  • 🔀 Many vendors, one API: Claude Code, Codex, Antigravity, Grok Build, OpenCode, any ACP agent and custom CLIs. clawo fanout asks several at once; session_handoff moves a live conversation to another engine in the same workspace (guide).
  • 💾 Survives a crash: every state transition is checkpointed; resume, retry, timeout, cancel and steer come from the kernel (guide).
  • 🎯 Long goals: clawo goal runs a Codex /goal unattended on one thread, resumes it after usage limits within a bound, optionally inside your own sandbox (guide).
  • 💰 Known cost: one per-turn ledger across engines (clawo runs) and a maxBudgetUsd cap the runtime enforces on every engine (guide).
  • 🔌 Fits your tools: a CLI, an MCP server, an ACP agent for editors, 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, 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." --engine 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 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 79 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)
TypeScript SDKEmbedding the runtime in your own serviceimport { SessionManager } from '@enderfga/claw-orchestrator' (below)
OpenClaw pluginEvery OpenClaw agent gets all 79 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.322
Codexcodex0.167.0
Antigravityagy1.5.3
Grok Buildgrok1.0.77
OpenCodeopencode1.19.5
ACP agentanyKimi Code 2.3.1, dsh 0.2.1-rc.2
Custom CLIany—

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, runs one live turn through the real wrapper class, smokes the ACP and MCP entry points, and checks src/models.ts against the OpenAI, Anthropic and xAI published price tables. It contains no model call, 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 over the engines above, any ACP agent, and custom CLIs.multi-engine.md
Session handoffMoves a live conversation to another engine or model in the same workspace; the old session keeps running.sessions.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, with an evidence bundle on disk; a run without a contract ends unverified.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
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 on every engine in one JSONL ledger (clawo runs), and a maxBudgetUsd cap enforced on every engine.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).
  • 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{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.

版本与发布记录

@enderfga/claw-orchestrator 共发布 107 个版本,首次发布于 2026/05/04;过去 12 个月发布了 107 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.22.1latest2026/11/112 天前
7.22.02026/11/112 天前
7.21.42026/11/112 天前
7.21.32026/11/113 天前
7.21.22026/11/103 天前
7.21.12026/11/103 天前

关于 @enderfga/claw-orchestrator 的常见问题

@enderfga/claw-orchestrator 是什么?

Claw Orchestrator — run Claude Code, Codex, Antigravity, Grok Build, OpenCode, any ACP agent and custom coding CLIs as one unified runtime. Drop into Hermes Agent, Claude Desktop, Cursor, Cline, Continue, Zed, Windsurf, Goose or any Model Context Protocol

如何安装 @enderfga/claw-orchestrator?

在项目目录运行 npm install @enderfga/claw-orchestrator,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:openclaw(>=2026.3.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 clawo、clawo-acp、clawo-mcp,可以用 npx clawo 直接运行。

@enderfga/claw-orchestrator 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@enderfga/claw-orchestrator 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@enderfga/claw-orchestrator 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@enderfga/claw-orchestrator 可以商用吗?

@enderfga/claw-orchestrator 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@enderfga/claw-orchestrator 的下载量有多少?

根据 npm 官方下载统计,@enderfga/claw-orchestrator 在 2026/10/14 – 2026/11/12 这 30 天内被下载 6,923 次,日均约 231 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@enderfga/claw-orchestrator 还在维护吗?

最新版本 7.22.1 发布于 2026/11/11(2 天前);至今共发布 107 个版本,其中过去 12 个月发布了 107 个;首次发布于 2026/05/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。