openclaw-claude-bridge
v2.0.6
Published
Bridge OpenClaw messaging channels to Claude CLI via tmux persistent sessions
Maintainers
Readme
openclaw-claude-bridge
Bridge OpenClaw messaging channels to Claude CLI via persistent tmux sessions.
Send @cc or /cc from any chat — your message is routed directly to Claude CLI running in your terminal, bypassing the gateway LLM entirely. No separate API keys, no OAuth, no extra costs.
⚠️ Telegram only. This plugin has been developed and tested exclusively with the Telegram channel. Other channels (Discord, Slack, etc.) may use different message formats or metadata wrapping that could break prefix detection or LLM suppression. Community contributions for additional channels are welcome — please open an issue if you encounter problems.
How It Works
- User sends a prefixed message (e.g.
@cc deploy the app) - The plugin intercepts the message and suppresses the gateway LLM
- A shell script forwards the message to Claude CLI in a persistent tmux session
- Claude CLI replies back through the same channel via
openclaw message send
Prerequisites
| Dependency | Install |
|---|---|
| OpenClaw | npm i -g openclaw |
| Claude CLI | npm i -g @anthropic-ai/claude-code |
| tmux | Auto-installed during onboard if missing |
Note: macOS and Linux only. Windows is not supported (tmux dependency).
Quick Start
npm i -g openclaw-claude-bridge
openclaw-claude-bridge onboardThe interactive wizard configures everything — plugin, shell scripts, CLAUDE.md, daemon, and channel settings.
Verify the connection:
@cc helloCommands
| Prefix | Description |
|---|---|
| @cc · /cc | Send to the current session (retains conversation context) |
| @ccn · /ccn | Start a fresh session (kills existing, creates new) |
| @ccu · /ccu | Show Claude CLI usage stats |
Messages are sent as-is — no quoting needed:
@cc refactor the auth module and add tests
@ccn review this PR: https://github.com/org/repo/pull/42
@ccuMultiline messages and special characters ($, `, \, quotes) are preserved exactly as typed.
Migration from v1
v2 replaces the legacy skill/hook system with a single OpenClaw plugin:
npm i -g openclaw-claude-bridge
openclaw-claude-bridge onboardThe wizard detects and removes legacy components automatically.
Uninstall
openclaw-claude-bridge uninstallRemoves all installed components — plugin, shell scripts, CLAUDE.md additions, and daemon.
Troubleshooting
| Symptom | Fix |
|---|---|
| LLM responds instead of delivery message | openclaw gateway restart |
| Delivery confirmed but no reply | Check tmux ls — session may have crashed |
| Multiline sends only first line | Re-run openclaw-claude-bridge onboard (v2.0.5+) |
