Awesome Remote Control
/install awesome-remote-control
Claude Code Remote Control
Starts a persistent Claude Code session in tmux with --dangerously-skip-permissions --remote-control. Auto-exits after 30 minutes of inactivity via CLAUDE_CODE_EXIT_AFTER_STOP_DELAY (Claude's native idle timer). Multiple concurrent sessions supported — each gets a unique animal name.
Starting a Session
Single session:
bash skills/claude-remote-control/scripts/start_session.sh \x3Cdir>
Multiple sessions in parallel (faster):
bash skills/claude-remote-control/scripts/start_sessions.sh \x3Cdir> \x3Ccount>
# e.g. start_sessions.sh /path/to/project 3
Each session gets a friendly name like 🦊 Fox | my-project — used in tmux and the registry.
Important: After launching a session, always report the session URL (https://claude.ai/code/session_...) back to the user in your reply. The URL is printed in the script output — surface it so the user can open the remote control page immediately.
Stopping a Session
bash skills/claude-remote-control/scripts/stop_session.sh \x3Csession-label|tmux-name>
# e.g. stop_session.sh "🦊 Fox | my-project"
# stop_session.sh cc-fox-my-project
The SessionEnd hook fires automatically, handling registry update.
Listing Sessions
bash skills/claude-remote-control/scripts/list_sessions.sh
Registry stored at ~/.local/share/claude-rc/sessions.json.
Attaching to a Session
tmux attach -t cc-fox-my-project # use tmux name shown on start
Resuming a Session by UUID
When a session dies (killed or idle timeout), the registry entry is marked dead and the local UUID is captured at that moment. UUIDs persist for 30 days before being pruned.
Look up the UUID:
cat ~/.local/share/claude-rc/sessions.json
Resume using the start script with --resume \x3Cuuid>:
bash skills/claude-remote-control/scripts/start_session.sh \x3Cdir> --resume \x3Cuuid>
# e.g. start_session.sh /path/to/project --resume abc123-def456
Or manually in a new tmux session:
tmux new-session -d -s "cc-fox-my-project" -c "/full/path/to/my-project"
tmux send-keys -t "cc-fox-my-project" 'claude -r "\x3Cuuid>" --dangerously-skip-permissions --remote-control --name "🦊 Fox | my-project"' Enter
This restores full conversation history. A new remote control URL is issued on reconnect.
How Idle Timeout Works
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY=1800000(30m) is set as an env var when launching Claude in tmux.- Claude's internal timer starts when it finishes responding and is idle at the prompt.
- After 30m idle, Claude auto-exits — triggering the
SessionEndhook. on_session_end.shfires: marks the registry dead with UUID capture.
No background watcher process — everything is driven by Claude Code's native hooks.
Sending Tasks to Running Sessions
bash skills/claude-remote-control/scripts/send_task.sh \x3Csession-label|tmux-name> "\x3Cmessage>"
# e.g. send_task.sh "🦊 Fox | my-project" "Do an analysis of the codebase"
# send_task.sh cc-fox-my-project "Fix the issues you identified"
The script:
- Resolves the tmux session name from a label or direct tmux name
- Verifies the session is alive
- Sends via
tmux send-keys -l(literal mode — safe for special characters) +Enter
Tip: When sending follow-up tasks to a session that already has context (e.g., it just finished an analysis), do NOT re-paste the full spec or issue list. The agent already has that in its conversation. Just reference it — e.g., "fix the issues you identified". Re-sending bloats context and wastes tokens.
Notes
- After launching, always report the session URL (
https://claude.ai/code/session_...) to the user — this is the remote control link they need --remote-controlis undocumented but valid — activates remote control on startup- The
session_0...URL is a cloud-side remote control ID — it cannot be used withclaude -r. Only the local UUID from the registry works for resuming. - UUID is captured lazily when the session dies, not during startup — no background polling
- Dead entries auto-prune after 30 days (runs at each startup)
- The project dir formula:
~/.claude/projects/$(echo $WORKDIR | sed 's|/|-|g')(leading-is kept) - No background watcher — idle timeout and registry cleanup are handled entirely by Claude Code hooks
- Workspace trust is pre-seeded in
~/.claude.json(underprojects[\x3Cpath>].hasTrustDialogAccepted) so headless sessions skip the "do you trust this folder?" dialog
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install awesome-remote-control - 安装完成后,直接呼叫该 Skill 的名称或使用
/awesome-remote-control触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Awesome Remote Control 是什么?
Start a Claude Code remote control session in tmux with bypass permissions. Use when asked to start a remote session, start a Claude Code session, spin up Cl... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 155 次。
如何安装 Awesome Remote Control?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install awesome-remote-control」即可一键安装,无需额外配置。
Awesome Remote Control 是免费的吗?
是的,Awesome Remote Control 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Awesome Remote Control 支持哪些平台?
Awesome Remote Control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Awesome Remote Control?
由 Jaden Watson(@oobagi)开发并维护,当前版本 v1.0.8。