Claude Relay
Relay operator for Claude Code via tmux across multiple projects.
- Rating
- 4.7 (209 reviews)
- Downloads
- 9,440 downloads
- Version
- 1.0.0
Overview
Relay operator for Claude Code via tmux across multiple projects.
Complete Documentation
View Source →
Claude Relay
Operate Claude Code as a persistent terminal copilot through tmux.
Script
All actions go through scripts/relay.sh. Run with no args for usage help.
scripts/relay.sh <action> [project] [args...]
Actions: start, send, tail, stop, status, session
Workflow
- Start session:
scripts/relay.sh start - Send instruction:
scripts/relay.sh send" " - Read output:
scripts/relay.sh tail[lines] - Repeat send/tail as needed.
- Stop when done:
scripts/relay.sh stop
Project resolution
The script resolves in order:
- Absolute path (if directory exists)
- Alias from
projects.map(name=/abs/path) $CLAUDE_RELAY_ROOT/exact match- Find under
$CLAUDE_RELAY_ROOT(maxdepth=2) by folder name - If omitted, re-use last project
Session naming
Deterministic: cc_. One project = one tmux session.
Error handling
- tmux not installed: script exits with code 2 and "missing dependency" message.
- Claude binary not found: same exit code 2. Verify
CLAUDE_BINenv or default path. - Session not running (send/tail on stopped session): exits code 6. Start first.
- Project not found: exits code 4. Check
projects.mapor project path. - Claude process hung:
tailstill works — check output. If stuck,stopandstartfresh.
Environment variables
| Variable | Default | Description |
|---|---|---|
| CLAUDE_RELAY_ROOT | $HOME/projects | Root directory for project discovery |
| CLAUDE_RELAY_MAP | Path to project alias map file | |
| CLAUDE_BIN | claude (from PATH) | Path to Claude Code CLI binary |
| RELAY_WAIT | 6 | Seconds to wait after send before tailing output |
Setup
- Install this skill
- Create a
projects.mapfile in the skill directory (seeprojects.map.example) - Ensure
tmuxandclaudeare installed and in your PATH
Notes
- Transport-focused skill (relay/orchestration), not deep code reasoning.
Installation
openclaw install claude-relay
Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.