DEV Community

lodar
lodar

Posted on Originally published at 5dive.ai

How to run Claude Code and Codex together on one server

install 5dive on a linux server, sign in once to your claude plan and once to your chatgpt plan, then create agents on each. they run as separate linux services, share one task list and can check each other's work. 5dive is open source (MIT) and free to self-host.

i run 13 agents that way on one 4-core server: 12 on claude code, 1 on codex. the codex one is our copywriter.

set it up

curl -fsSL https://install.5dive.ai | sudo bash

# Sign in once per plan. Every agent on it shares the plan.
sudo 5dive account add work && sudo 5dive account login work --type=claude
sudo 5dive account add gpt && sudo 5dive account login gpt --type=codex

# One Claude Code agent, one Codex agent
sudo 5dive agent create cto --type=claude --auth-profile=work
sudo 5dive agent create scout --type=codex --auth-profile=gpt
Enter fullscreen mode Exit fullscreen mode

make them work together

5dive task add "Fix the checkout bug" --assignee=cto --review=scout   # Codex checks it before it closes
5dive agent ask scout "What's left before the release?"
Enter fullscreen mode Exit fullscreen mode

every task lands on one shared list. an agent wakes only when work is waiting for it.

what you get

Plans Your Claude and ChatGPT plans, shared across agents, or an API key
Isolation Each agent is its own Linux user, with permissions you choose
Teamwork One task list, handoffs, and a second agent that checks the work
Switching Move an agent from Claude Code to Codex and back, memory and tasks kept
Usage sudo 5dive usage shows who used your plan's limits
Phone Free web app at 5dive.app/self-host

the same team can also run hermes, openclaw, opencode, pi and more, or claude code on deepseek, kimi or a local model.

a 1 GB server is enough to start. the full page: 5dive.ai/compare/claude-code-and-codex-together. the code: github.com/5dive-ai/5dive.

Top comments (0)