Docs / Start
Quick start
From docs/QUICKSTART.md · last changed 2026-09-06 · Suggest a change
On this page 13 sections
Get remote compilation working in 5 minutes.
Prerequisites#
- macOS or Linux workstation
- SSH access to a build server (cloud VM, powerful desktop, etc.)
- Rust toolchain installed on both machines
rsyncon both machines — rsync 3.2+ recommended. Stock macOS ships openrsync (or rsync 2.6.9), which RCH drives in a slower compatibility mode;brew install rsyncand RCH picks it up automatically (seerch doctor).- Claude Code or another supported AI coding agent
Need help setting up SSH? See the SSH setup guide.
1. Install RCH (30 seconds)#
From Source (Recommended):
git clone https://github.com/Dicklesworthstone/remote_compilation_helper.git
cd remote_compilation_helper
cargo build --release
cp target/release/rch target/release/rchd ~/.local/bin/Or with the installer:
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/remote_compilation_helper/main/install.sh | bashOr with Cargo:
cargo install --git https://github.com/Dicklesworthstone/remote_compilation_helper.git2. Add a Worker (60 seconds)#
Create the worker configuration:
mkdir -p ~/.config/rch
cat > ~/.config/rch/workers.toml << 'EOF'
[[workers]]
id = "my-server"
host = "your-server-ip-or-hostname"
user = "your-username"
identity_file = "~/.ssh/id_rsa"
total_slots = 16 # Number of CPU cores available
priority = 100
EOFTest the connection:
# Verify SSH works
ssh -i ~/.ssh/id_rsa your-username@your-server-ip-or-hostname "echo OK"
# Install RCH on the worker
rch workers install my-server3. Install Claude Code Hook (30 seconds)#
# Auto-detect and install hooks
rch hook install
# Or manually for Claude Code
rch hook install --agent=claude-codeVerify the hook is installed:
rch hook status4. Start the Daemon (10 seconds)#
# Start in foreground (see logs)
rchd
# Or start in background
rch daemon start
# Check status
rch daemon status5. Build Something!#
# In any Rust project with Claude Code:
claude
# Inside Claude Code session:
> cargo build --release # Automatically offloaded!
> cargo test # Tests run on worker
> bun test # Bun tests on worker tooWhat Just Happened?#
- You typed
cargo build - RCH's hook intercepted the command
- The 5-tier classifier detected it's a compilation command (< 1ms)
- Your code was synced to the worker via rsync + zstd
- The build ran on the fast worker machine
- Results were synced back to your local
target/directory - Output appeared in your terminal as if it ran locally
The agent never knew compilation ran remotely!
Verify It's Working#
Quick checks:
# Hook + daemon health
rch hook status
rch daemon status
# Active and recent builds
rch status --jobs
# Worker health and slots
rch status --workersNeed deeper verification or live monitoring? See the Verifying RCH Is Working guide.
Next Steps#
Performance Tips#
| Tip | Why It Matters |
|---|---|
| Use SSD workers | Build artifact I/O is fast |
| Low-latency network | Matters more than bandwidth for small syncs |
| More cores = faster | Rust parallelizes well |
| First sync is slow | Initial full copy; subsequent syncs are incremental |
Common Issues (Quick Reference)#
| Issue | Quick Fix |
|---|---|
| "Connection refused" | Start daemon: rchd |
| "No workers available" | Add worker in ~/.config/rch/workers.toml |
| Build runs locally | Check hooks: rch hook status |
| Slow first build | Normal - initial sync transfers entire project |
| SSH permission denied | Check SSH key: ssh -i ~/.ssh/key user@host |
For detailed troubleshooting, see TROUBLESHOOTING.md.
Environment Variables#
| Variable | Purpose | Default |
|---|---|---|
RCH_ENABLED |
Enable/disable RCH | true |
RCH_LOCAL_ONLY |
Force local execution | false |
RCH_VERBOSE |
Enable verbose logging | false |
RCH_WORKER |
Force specific worker | (auto-select) |
Uninstall#
rch hook uninstall
rch daemon stop
rm ~/.local/bin/rch ~/.local/bin/rchd
rm -rf ~/.config/rch