# How do I run many Claude Code and Codex agents in parallel?

Give each agent its own machine instead of sharing your laptop. Harmux starts every Session on a cloud machine of its own, running the real Claude Code or Codex, signed in with the Claude and ChatGPT plans your team already pays for. You see them all in one Fleet, and anything that needs you lands in one Inbox.

Running three agents on a laptop is fun. Running ten is a juggling act: they fight over the same CPU, memory, ports and database, your fan never stops, and you're the one remembering which terminal is waiting for an answer. Close the lid and they all stop.

## What it looks like

It's Monday and Dana has eleven bugs from the weekend's triage. On her laptop she'd pick three and watch them. Instead she starts eleven Sessions, eight on Claude Code and three on Codex, closes the lid and goes to standup. By lunch seven have pushed branches and two are waiting on a question in her Inbox. The two that finished early have paused, so they cost only storage.

She didn't arrange any of that. Each agent had its own machine, so none of them could step on another.

## A machine for every agent

Every Session gets its own VM and disk, with your repositories cloned and Docker inside, so an agent can start the app, run the database and run the whole test suite without colliding with anyone. Machines are sized to the work: an agent that needs more CPU or memory for a build can ask for a bigger machine, Harmux can add memory on its own after repeated out-of-memory kills if you turn that on, and disks grow as they fill, up to a limit the Project sets. Machines start at $0.11 an hour, billed by the second, and the more credit you buy, the bigger the discount ([prices](/pricing)).

When an agent goes quiet, its machine pauses after 30 minutes. The disk and the conversation stay, and your next message wakes it with both as it left them. A paused Session costs only its storage.

## Done for you

A coding agent is one process on one machine. Running a team of them yourself means owning everything around it: provisioning each machine, keeping its tools current and secure as they drift, getting agents on different machines to talk to each other, and doing it every week from then on. Harmux surrounds Claude Code and Codex with that infrastructure, so you sign in, connect your accounts and start. That includes the agents themselves. Every hour we check for new Claude Code and Codex releases, an update ships only after it passes our tests with the real agents, and new Sessions start on the latest versions we've tested and released. You never manage agent versions yourself. Antigravity is coming. You keep the oversight: the Fleet, the Inbox, approvals and Leads.

## Nothing new to learn

Harmux has no agent loop of its own. It runs Claude Code and Codex as Anthropic and OpenAI ship them, so you keep working with the agents you already know. Your repository's CLAUDE.md, AGENTS.md, Skills, sub-agents, slash commands and MCP servers arrive with the clone and work as they do on your laptop. You aren't tied to one model provider either: a Session can switch between Claude Code and Codex mid-conversation. A one-step import of your personal `~/.claude` and `~/.codex` setup is coming.

## Agents that split the work

When a job is bigger than one agent, a Session can hand pieces to sub-sessions, each on its own machine, on Claude Code or Codex. A sub-session's questions go to the agent that started it first, and reach you only if that agent can't answer. For an area of work that lasts months, hand it to [a Lead](/guides/agent-that-manages-coding-agents), which splits goals between agents for you. To have one agent review another's work, see [Claude Code and Codex together](/guides/claude-code-and-codex-together).

## How many at once

Hundreds, if your work calls for them. Each person can run 50 machines at once by default, and we raise that on request. Your Claude and ChatGPT plans can run out before that, so stack several and Harmux can move a Session to one with room when its plan runs low, with the same conversation ([how that works](/guides/multiple-claude-and-chatgpt-subscriptions)).

## Set it up

[Get started](/login) with your email (it's free to sign up), connect GitHub and a Claude or ChatGPT account, add credit, and start Sessions from the App or the CLI:

```
hmux new --project-name app --repo https://github.com/acme/app "Fix the flaky auth test"
```

## Related

- [An agent that manages coding agents](/guides/agent-that-manages-coding-agents)
- [Git worktrees or a machine per agent](/guides/worktrees-vs-a-machine-per-agent)
- [Coding agents from Slack](/guides/coding-agents-from-slack)
- [Alternatives](/alternatives)
