Claude Code and Codex in parallel
on one Mac Mini
Give your coding agents their own Mac in a data center. One tmux session and git worktree per task, the Claude app and ChatGPT on your phone to check in, and a laptop you can close.
Runs on it
-
Claude
-
Codex
-
ChatGPT
-
Chrome
One worktree and one tmux session per task
git worktree gives each agent its own folder and branch. tmux keeps each agent running after you disconnect. Replace app and the branch names with yours.
-
01
One worktree per task
A worktree is a second folder for the same repository, checked out on its own branch. Sessions in different folders never edit the same files. -b creates a new branch for the task; Git will not check out one branch in two worktrees.
cd ~/src/app git worktree add ../app-feature feature git worktree add -b fix-login ../app-fix-login git worktree list -
02
One tmux session per worktree
Start each agent inside its own tmux session, in its own folder. Detach with Ctrl-b d and the agent keeps working after you close SSH.
cd ~/src/app-feature tmux new -s app-feature claude # Ctrl-b d to detach, then: cd ~/src/app-fix-login tmux new -s app-fix-login codex -
03
Check in and switch
List what is running and jump into any session. Each worktree has its own files, so install dependencies in each one.
tmux ls tmux attach -t app-feature -
04
Clean up after the merge
Remove the tmux session, the folder and the branch when the task is done. If GitHub squash-merged the branch, git branch -d refuses it. Check the PR is merged, then use git branch -D fix-login.
tmux kill-session -t app-fix-login cd ~/src/app git worktree remove ../app-fix-login git branch -d fix-login
Docs: git worktree, tmux getting started. Setup for each agent: Claude Code on a Mac Mini and Codex on a Mac Mini.
Steer it from your phone
The sessions stay on the Mac. Your phone sends work and approvals.
Claude app, through Remote Control
Claude Code Remote Control keeps the session on the Mac and lets the Claude app send it work and approve steps. Inside the session, enable remote access and pair the Claude app on your phone.
/remote-control
ChatGPT, with the Mac as Codex host
Codex on the ChatGPT mobile app connects to a host running the Codex app for macOS. Install the Codex app over VNC, sign in with your ChatGPT account, choose Codex mobile setup in the Codex sidebar and scan the QR code with ChatGPT on your phone. The host must stay awake, online and signed in.
Prefer the terminal? Tailscale and any SSH app on your phone reach the same tmux sessions.
What a Mac adds over a Linux box
Claude Code and Codex both run on Linux. These are the jobs where a Mac makes the difference.
Xcode and the Simulator
Agents can build and test iOS and macOS apps with xcodebuild. Xcode only runs on macOS.
Computer use and Safari
Computer use needs a real macOS desktop with Accessibility and Screen Recording granted once over VNC. Safari runs there too.
iMessage
BlueBubbles needs a Mac signed in to Messages, so an iMessage bot can live on the same machine as your agents.
A residential IP for browsing
In US locations the Mac comes with a native US residential IP, so agents that open websites browse from a home connection, not a data center range.
Plain coding works on Linux too
If your agents only edit code and run tests over SSH, a Linux box does that job. Pick a Mac when you need one of the four above.
Which Mac Mini for parallel agents
Prices for the 3-month term, paid once, no auto-renewal.
One or two sessions
Mac Mini M4 16 GB
$599 / 3 months
about $200 a month
Claude Code or Codex in one or two worktrees, with the models running in the cloud.
Several sessions with Chrome
M4 or M6 with 24 to 32 GB
$829 to $1,049 / 3 months
M4 24 GB $829, M4 32 GB $979, M6 24 GB $899, M6 32 GB $1,049
Several Claude Code and Codex sessions at once, plus Chrome for agents that browse or test web apps.
Xcode or local models
M4 Pro, 24 or 64 GB
$1,199 or $1,899 / 3 months
on request
Heavy Xcode builds next to the agents, or local models in unified memory.
Keep it separate from your laptop
Agents run commands on their own. Give them a machine that holds only what they need.
Its own Apple ID and sign-ins
Give the Mac its own Apple ID and a GitHub token scoped to the repos the agents work on. Your personal accounts stay signed in on your laptop only.
Keys in that Mac's Keychain
Store the API keys the agents need in the Keychain of that Mac. Your laptop's keychain and saved passwords never leave your laptop.
No personal files
Clone only the repos the agents work on. Photos, documents and your personal browser profile stay where they are.
Parallel coding agents: questions
Give each task its own git worktree, so sessions never edit the same files, then start Claude Code in a separate tmux session inside each worktree. Detach with Ctrl-b d and every session keeps running after you disconnect. tmux ls lists them and tmux attach -t name jumps back in.
Keep reading
Claude Code, Codex, Hermes and OpenClaw on one dedicated Mac.
Browser agents, local models and agent fleets on Apple Silicon.
A self-hosted GitHub Actions runner with Xcode, warm caches and the Simulator.
Why agents get blocked on servers and not on a Mac.
Dedicated cloud Mac Mini with a US home IP, from $599 / 3 months.
One Mac for all your coding agents
Dedicated Mac Mini with SSH, VNC and Tailscale, from $599 for 3 months. Card, PayPal or crypto. Online within 72 hours or a full refund.