an acp-first claude code bridge kit for openclaw.
new to this kit or non-technical: read BEGINNER_SETUP.md first. it walks you from zero to a working bridge with plain english instructions and a single guided wizard.
already familiar with the stack: see the fast start section below.
daily operator commands: see QUICKREF.md.
want to contribute: see CONTRIBUTING.md.
this repo packages the current best-fit pattern for operators who want claude code doing real repo work behind openclaw:
- openclaw as the control layer and front door
- claude code as the coding harness
- acpx as the structured bridge for persistent claude sessions
- cli fallback as the text-only safety net
- remote control, channels, tmux, and telegram as optional operator lanes
this repo reflects openclaw's current anthropic split:
- api key remains the clearest production path for long-lived gateway hosts
- claude cli reuse on the same host is sanctioned and preferred when available
- legacy anthropic token profiles still work but are not the center of this build
- guided setup wizard that works for non-technical operators
- automated openclaw config merge (json5-aware, idempotent, backs up before writing)
- preflight, smoke test, proof-capture, and session recovery scripts
- task envelope schema and examples for reviewable code work
- role-based walkthrough and selection guide
- per-failure recovery documentation
- replace openclaw or anthropic api keys as the production billing path
- pretend acpx is stable (it is not yet)
- fake a live run inside the repo
- install openclaw and claude code on the same host
- run
claude auth loginon that host - run
bash scripts/validate-local.sh - run
bash scripts/preflight.sh - run
bash scripts/login-openclaw-anthropic-cli.sh - run
python3 scripts/merge-openclaw-config.py /path/to/your/repo - restart openclaw
- run
/acp doctorinside openclaw chat - run
/acp spawn claude --bind herein the target thread - run
bash scripts/smoke-test.sh
claude auth status --textreturns your emailopenclaw models statusshows a healthy anthropic path/acp doctorreports the backend as ready/acp spawn claude --bind herecreates a live bound sessionbash scripts/smoke-test.shreturnslive-acp-claude-okbash scripts/check-session.shreports running or reusable (not dead or no-session)bash scripts/capture-proof.shwrites a timestamped proof bundle
use it when:
- you want claude code doing real repo work behind openclaw
- you want telegram, discord, or another openclaw channel in front
- you want structured sessions instead of tmux terminal scraping
skip it when:
- you need strict sandbox enforcement for the child runtime
- you want the cleanest production billing path without claude code as the harness
- you only need human continuation into a single local session without openclaw
onboarding
- BEGINNER_SETUP.md
- QUICKREF.md
- CONTRIBUTING.md
configs
- configs/openclaw.acp-agent.fragment.json5.example
- configs/acpx.global.config.json.example
- configs/.acpxrc.json.example
docs
- docs/architecture.md
- docs/auth-and-billing.md
- docs/selection-guide.md
- docs/hardening.md
- docs/verification.md
- docs/failure-recovery.md
- docs/task-contract.md
- docs/role-walkthrough.md
- docs/proof-capture.md
prompts
- prompts/claude-code-task-envelope.schema.json
- prompts/claude-code-worker.md
examples
- examples/chat-commands.txt
- examples/first-task.md
- examples/tasks/smoke-test.md
- examples/tasks/repo-fix.md
- examples/tasks/repo-fix.envelope.json
- examples/proof/healthy-smoke.expected.txt
- examples/proof/permission-trap.expected.txt
scripts
- scripts/setup-guided.sh
- scripts/config-helper.sh
- scripts/merge-openclaw-config.py
- scripts/preflight.sh
- scripts/validate-local.sh
- scripts/smoke-test.sh
- scripts/login-openclaw-anthropic-cli.sh
- scripts/warm-claude-adapter.sh
- scripts/dispatch-task.sh
- scripts/dispatch-task-json.sh
- scripts/check-session.sh
- scripts/recover-session.sh
- scripts/capture-proof.sh
- scripts/acp-doctor.sh
- scripts/print-chat-commands.sh
mit