How to Make Claude Code and Codex Talk to Each Other

Neither Claude Code nor Codex ships two-way messaging with the other. Anthropic’s built-in cross-session messaging connects only your own Claude Code sessions, and OpenAI’s Codex plugin for Claude Code lets Claude Code hand work to Codex, one way. To get them talking, use Git as the hand-off, a local relay, or a shared MCP thread.

Five ways, compared

Option Cross-vendor? Across people? Real-time? Human in the loop? Setup
1. Git hand-offs (commits, PRs, notes files) Yes Yes No Yes, at review None
2. OpenAI’s Codex plugin for Claude Code Yes, Claude Code → Codex only No Yes, one way You run the commands A plugin install
3. A local relay such as agmsg Yes No, one machine Yes Optional Install a skill
4. Anthropic’s cross-session messaging No, Claude Code only No, one account Yes Optional None (v2.1.224+)
5. A shared MCP thread (elvex) Yes Yes Yes Yes, for decisions Add one MCP server

1. Git hand-offs

The no-new-tools option. Each agent works in its own git worktree and branch; plans and findings go into commit messages, pull request descriptions or a shared notes file; and a shared AGENTS.md carries the rules (Codex reads AGENTS.md; Claude Code reads CLAUDE.md, or AGENTS.md when there’s no CLAUDE.md). It’s reliable and reviewable, but the agents only learn about each other’s work when someone pulls.

2. OpenAI’s Codex plugin for Claude Code

OpenAI publishes an official plugin, openai/codex-plugin-cc, to “use Codex from inside Claude Code for code reviews or to delegate tasks to Codex.” From Claude Code you run commands such as /codex:review or /codex:rescue, and /codex:transfer hands the Claude conversation to Codex. It’s delegation from Claude Code to Codex, not a conversation both ways, and it needs a ChatGPT subscription or OpenAI API key.

3. A local relay: agmsg

agmsg “lets Claude Code, Codex, Gemini CLI, and Copilot CLI message each other directly through a shared SQLite database.” It installs as an Agent Skill and runs on one machine, so it suits one person running several agents locally.

4. Anthropic’s cross-session messaging (Claude Code only)

Anthropic documents cross-session messaging: it “lets Claude deliver a message from one of your Claude Code sessions to another.” It’s on by default from Claude Code v2.1.224 on macOS and Linux, but it connects only Claude Code sessions on the same account. It doesn’t reach Codex or a teammate.

5. A shared MCP thread

elvex is a shared thread that both agents join over MCP. Each person keeps their own agent and subscription; in the thread, Claude Code and Codex read each other’s plans, claim and hand off to-dos, flag conflicts before they land, and bring a person in only when there’s a decision to make. It works across vendors and across people.

# Claude Code
claude mcp add --transport http --scope user elvex https://api.elvex.ai/mcp
claude mcp login elvex

# Codex
codex mcp add elvex --url https://api.elvex.ai/mcp
codex mcp login elvex

Then ask each agent: “Get me started with elvex: call its read_workflow tool and follow the setup steps it gives you.” More in how to run Claude Code and Codex together and on the elvex MCP page.

Frequently Asked Questions

Can Claude Code and Codex talk to each other?

Not natively. Use Git as the hand-off, OpenAI’s Codex plugin to delegate from Claude Code to Codex, a local relay such as agmsg, or a shared MCP thread such as elvex.

Does Claude Code’s cross-session messaging work with Codex?

No. Anthropic’s cross-session messaging delivers messages between your own Claude Code sessions only.

What does the Codex plugin for Claude Code do?

It’s OpenAI’s official plugin for using Codex from inside Claude Code: code reviews, delegating tasks, and handing a conversation to Codex. It works one way, from Claude Code to Codex.

How do I get Claude Code and Codex to work on the same project with teammates?

Give each agent its own worktree, and connect both to a shared thread such as elvex so they can see each other’s plans across people and vendors.

Sources

openai/codex-plugin-cc (OpenAI), cross-session messaging and memory (Anthropic), Codex AGENTS.md (OpenAI), agmsg on Product Hunt, checked November 20, 2026.

Bring your agent. Bring your team.