How the integration works
Two components make up the CC Commander–OpenClaw integration:OpenClaw Native skill
The
openclaw-native skill handles auto-detection, skill sync, agent profile generation, and memory synchronization between CC Commander and the OpenClaw gateway.OpenClaw Bridge skill
The
openclaw-bridge skill provides the /openclaw and /claw commands, hook translation, workspace generation, session handoff protocol, and config sync between the two platforms.Auto-detection
Theopenclaw-sync.js SessionStart hook runs automatically every time you start a Claude Code session. It checks for OpenClaw in this order:
- Look for the
CC_OPENCLAW_ENABLED=1environment variable - Probe the gateway at
http://localhost:18789/health - If the gateway is healthy: sync skills, register hooks, and report the session
- If the gateway is not found: exit silently — no errors, no delays
Skill sync
On session start, all CC Commander skills are registered with OpenClaw’s skill registry:/code-review from Discord, or Neo (orchestrator) can run /tdd across worker agents.
Bidirectional event forwarding
CC Commander hooks and OpenClaw webhooks exchange events in both directions through theopenclaw-adapter.js hook:
CC Commander → OpenClaw
OpenClaw → CC Commander
Setting up the integration
1
Enable the bridge
Add the following to your shell profile (To use a non-default gateway URL:
~/.zshrc or ~/.bashrc):2
Verify the adapter hook is registered
The
openclaw-adapter.js hook ships with CC Commander. Confirm it appears in your hooks config:3
Register the webhook in OpenClaw
Add the following entry to
~/.openclaw/openclaw.json (back up the file first):4
Validate the connection
Check that the gateway is responding and run OpenClaw’s built-in diagnostics:
Available commands
Once the integration is active, two slash commands are available in any Claude Code session:Configuration reference
Memory sync
CC Commander session memory (~/.claude/sessions/) and OpenClaw agent memory (~/.openclaw/memory/) can be kept in sync:
- When you run
/save-sessionin CC Commander, decisions and lessons are extracted and appended to the relevant OpenClaw workspace memory file - When you run
/resume-session, CC Commander scans recent OpenClaw memory for[HANDOFF]and[DECISION]tags relevant to the current project - Sync is always additive — neither system removes entries written by the other
Session handoff
You can transfer an active Claude Code session to an OpenClaw agent, or receive a handoff from one. From CC Commander to OpenClaw:- Run
/save-sessionto capture the current state - The handoff payload (task description, relevant files, progress, next steps) is sent to the target agent via
sessions_send - The target agent picks up the payload and continues from where you left off
- The OpenClaw agent posts a handoff summary to
#comms-logand writes a session file to~/clawd/workspaces/{workspace}/memory/ - You run
/resume-sessionin Claude Code to load the handoff context and continue