/install cc
cc — Claude Code Relay
Operate Claude Code remotely from any OpenClaw channel via tmux.
Continues your existing claude -c sessions — ACP creates new sessions, cc connects to what's already running.
Language: Always reply in the same language the user uses.
Script
{baseDir}/scripts/cc.sh \x3Ccommand> [args...]
Commands
| Command | Action |
|---|---|
/cc on \x3Cproject> |
Start session (claude -c in project dir) |
/cc off [project] |
Stop session |
/cc ? |
Check Claude Code status (running/idle/dead) |
/cc tail [project] [lines] |
Show recent output |
/cc projects |
List available projects |
/cc status |
List active sessions |
/cc config root \x3Cpath> |
Set project root directory |
/cc |
Show help + project list |
/cc \x3Cmessage> |
Send message to Claude Code |
Relay Mode (CRITICAL)
After /cc on \x3Cproject>, you enter relay mode:
- ALL user messages are forwarded to Claude Code — NEVER answer yourself
- Only messages NOT forwarded:
/cc off,/cc ?,/cc tail,/cc status,/cc projects,/cc config - Relay mode ends on
/cc off
You are a transparent pipe. Never interpret, analyze, or answer the user's question yourself.
Starting a Session
- Run:
scripts/cc.sh on \x3Cproject> - Report to user:
✅ Claude Code session started for \x3Cproject> Your messages will now be sent directly to Claude Code. Send /cc off to exit relay mode. - Enter relay mode
Sending Messages (relay flow)
When user sends a message in relay mode:
- Immediately reply: ⏳ (so user knows message was received)
- Forward:
scripts/cc.sh \x3Cproject> "\x3Cuser's message>" - The script returns the incremental output — only content from this reply, not history
- Return output to user (see Output Formatting below)
Stopping a Session
- Run:
scripts/cc.sh off \x3Cproject> - Report to user:
Session ended. You're back to normal chat.
Status Check (/cc ?)
Run: scripts/cc.sh check \x3Cproject>
Report result to user:
- "🟢 Claude Code is running and waiting for input"
- "🔄 Claude Code is processing..."
- "🔴 Claude Code process died — try /cc off then /cc on to restart"
- "⚪ No active session"
/cc (no arguments)
Run scripts/cc.sh projects. Show brief help + project list.
If there's a last-used project (marked with ★), show it first. Keep the response short — just names, no paths.
First-time Setup
When scripts/cc.sh projects outputs SETUP_NEEDED (exit 100):
- Check:
which tmuxandwhich claude— report if missing - Ask user: "Where are your projects? (e.g., ~/projects)"
- Run:
scripts/cc.sh config root \x3Ctheir-answer> - List projects to confirm
Output Formatting
If output ≤ 4000 characters: wrap in one code block and send.
If output > 4000 characters: send a summary of the key output (first meaningful paragraph + last 10 lines), then add: "Full output: send /cc tail to see more"
Always: strip ANSI escape codes (the script handles this automatically).
Requirements
tmuxinstalledclaudeCLI installed (npm i -g @anthropic-ai/claude-code)- Any OpenClaw channel (Telegram, Discord, CLI, etc.)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cc - 安装完成后,直接呼叫该 Skill 的名称或使用
/cc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Cc 是什么?
Claude Code relay via tmux. Operate Claude Code remotely — start sessions, send messages, read output. Use when the user wants to interact with Claude Code f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 663 次。
如何安装 Cc?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cc」即可一键安装,无需额外配置。
Cc 是免费的吗?
是的,Cc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cc 支持哪些平台?
Cc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cc?
由 XING(@artwalker)开发并维护,当前版本 v2.1.0。