Mel – the agentic terminal
The agentic team for coding.
Learn · Claude Code and Codex together
How do you run Claude Code and Codex together?
Updated
Use Claude, GPT and Gemini in one terminal with your own key.
Yes, you can run Claude Code and Codex together: install each one the way its maker says, sign in to each once, then start claude in one terminal tab and codex in another, in the same project folder. In Mel both open as full interactive sessions in the same window, so you can switch between them.
Each tool stays on its own account. Claude Code runs on your own Anthropic account or plan, and Codex runs on your own OpenAI account. Neither uses Mel credits.
Why use both
- Two model families on one task. Ask one agent to build and the other to review, as a second opinion from a different company's model.
- Different strengths. You may find one better at one kind of task. Run the same task in both and compare.
- Plan limits. If one runs out of allowance, you can keep going in the other.
The cost is real: two agents can edit the same files. Give each its own branch or git worktree, or have one only read and review.
How to set it up in Mel
- Install both from their official docs: Claude Code setup and Codex CLI. Mel does not install them for you.
- Sign in to each once. Codex's sign-in options are in its auth docs.
- Open two tabs or split panes in your project's folder in Mel.
- Type
claudein one andcodexin the other. Mel recognises each by its command name and opens a full interactive session. - Use the belt around each. Rich Input (Ctrl+G, ⌃G on a Mac) writes a long prompt with a free cursor. View changes (Ctrl+Shift+=, ⌘⇧= on a Mac) opens Mel's code review panel over what the agent changed. You get a notification when an agent waits for you, from any tab.
Ctrl+C reaches each agent as a real control byte, so a double Ctrl+C quits Codex the way it expects. Full details are in CLI agents in Mel.
Claude Code, Codex and Mel's own agent
| Claude Code | Codex CLI | Mel's own agent | |
|---|---|---|---|
| Made by | Anthropic | OpenAI | Mel |
| Models | Claude | OpenAI models | Claude, GPT, Gemini and more, on your key or hosted credits |
| Paid through | Your Anthropic account or plan | Your OpenAI account | Your own provider key (0 Mel credits), or Mel credits |
| Runs in Mel | Yes, as a CLI session | Yes, as a CLI session | Built in |
You do not have to pick. Mel's own agent can run on a Claude key or a GPT key, so you can also keep both model families inside one agent. For the tradeoffs see Mel vs Claude Code and Mel vs Codex CLI. Each tool's current features and prices are on its own pages, such as Claude's pricing and Claude Code's sub-agents.
FAQ
Can I run Claude Code and Codex at the same time? Yes. Start each in its own tab in the same terminal app. Keep them on separate branches or worktrees so they do not overwrite each other.
Does Mel charge for Claude Code or Codex? No. They run on your own Anthropic and OpenAI accounts and use no Mel credits.
Do I need Mel to do this? No. Any terminal that runs both CLIs works. Mel adds one window for both, a review panel and a notification when one needs you.
Which one should I use first? Start with the one you already pay for, then run the same task in the other and compare the diffs.
Claude Code, Claude and Codex CLI are trademarks of their owners. Mel is not affiliated with or endorsed by their makers.
Mel – the agentic terminal · openmel.dev. A multi-agent, multi-model AI terminal for Mac, Windows, Linux and VS Code. Free with your own API key.