This guide walks through setting up a two-machine development environment for TrucBot (OpenClaw) agent development. The architecture separates the daily-use workstation from the dedicated AI Bot server, creating a clean workspace while keeping the agent runtime isolated and always available.
Your daily driver. Runs VS Code with the Remote-SSH extension to connect into MiniMac. Also runs the Claude chat interface (browser) for planning, documentation, and general Q&A. Claude Code is installed locally for any MainMac-specific projects.
The dedicated server running the OpenClaw agent runtime and dashboard. The AI agent "TrucBot" lives here, executing skills using Haiku 4.5 for cost-efficient task completion. Claude Code is installed here and accessed through VS Code's remote terminal for development work.
| Interface | Purpose | Model | Runs On |
|---|---|---|---|
Claude Chat |
Planning, architecture, documentation, brainstorming | Opus 4.6 / Sonnet 4.5 | MainMac (browser) |
Claude Code |
Building skills, editing files, running commands | Sonnet 4.5 (default) | MiniMac (via VS Code) |
Anthropic API |
Agent execution — Claw runs skills autonomously | Haiku 4.5 | MiniMac (runtime) |
Two Mac computers on the same local network, a Claude Pro subscription (or higher), and an Anthropic API key for agent execution.
On MiniMac, open System Settings → General → Sharing → Remote Login and enable it. Ensure your user account is in the allowed users list.
On MainMac, create or edit ~/.ssh/config:
Host Claw
HostName 192.168.x.x # MiniMac's local IP
User your-username
LocalForward 18789 localhost:18789 # Dashboard tunnel
ServerAliveInterval 60
ServerAliveCountMax 3
TCPKeepAlive yes
Install the Remote - SSH extension (by Microsoft) in VS Code on MainMac.
Connect via Cmd+Shift+P → Remote-SSH: Connect to Host → Claw.
From the VS Code remote terminal (which runs on MiniMac):
# Install via npm (Node.js required)
npm install -g @anthropic-ai/claude-code
# Verify
claude --version
# Launch and authenticate
claude
# Set default model
mkdir -p ~/.claude
echo '{"model": "sonnet"}' > ~/.claude/settings.json
curl -fsSL https://cli.anthropic.com/install.sh | sh)
fails with a DNS error, the npm method works identically. If you hit permission errors
on npm, configure a user-level global directory with
npm config set prefix '~/.npm-global'.
Repeat the same installation on MainMac for local project work. Same process — install, authenticate, set default model.
While connected to MiniMac in VS Code, go to File → Save Workspace As and save it on MainMac. This lets you reconnect to MiniMac with one click.
| Model | Best For | Cost |
|---|---|---|
Opus 4.6 |
Complex architecture decisions, multi-file debugging, deep reasoning | Highest — use sparingly |
Sonnet 4.5 |
Daily development, skill building, file editing, automation scripts | Balanced — great default for Claude Code |
Haiku 4.5 |
Agent execution, well-defined skill tasks, high-volume operations | Lowest — ideal for Claw's runtime |
Switch models on the fly in Claude Code with /model opus or
/model sonnet. Your default is set in
~/.claude/settings.json.
~/.openclaw.
claude in the terminal. Start building: "Create a new skill that queries the ticketing system."
localhost:18789 via the SSH tunnel).
macOS Local Network permission. System Settings → Privacy & Security → Local Network → enable VS Code.
Don't use sudo. Fix with: mkdir -p ~/.npm-global && npm config set prefix '~/.npm-global' then add ~/.npm-global/bin to your PATH.
If cli.anthropic.com doesn't resolve, fall back to the npm install method:
npm install -g @anthropic-ai/claude-code
Ensure your SSH config includes ServerAliveInterval 60 and
ServerAliveCountMax 3 to maintain the keepalive heartbeat.