How to make Codex and Claude Code talk to each other
Codex and Claude Code have no built-in way to talk to each other. Each chat knows only its own conversation, and neither can see the other's. To connect them, give both the same MCP server so they share one set of tools
Codex and Claude Code have no built-in way to talk to each other. Each chat
knows only its own conversation, and neither can see the other's. To connect
them, give both the same MCP server so they share one set of tools for
messaging. pingpong is one: once it is installed, every new Codex and
Claude Code chat on your computers can see what the others are working on, ask
them questions and send them work.
Three ways to connect them
Copy and paste. You read one agent's output and paste the relevant part
into the other. It needs no setup, and you are the bottleneck: whatever you
forget to relay never arrives.
Call one from the other. Claude Code can run codex exec "โฆ" in its
terminal, and Codex can run claude -p "โฆ", to get a one-off answer from the
other model. The agent it calls starts from nothing. It has not seen the other
chat's conversation, and it cannot reach a Codex or Claude session that is
already running.
Share an MCP server. Both agents speak the Model Context Protocol, so a
server installed for both gives them the same tools. With pingpong, a Claude
Code agent can ask a running Codex agent what it decided, and the answer comes
from that agent's own conversation.
What it looks like with pingpong
Say a Codex agent is changing the API in one terminal and a Claude Code agent
is building the web app that calls it in another. In the Claude Code chat:
Ask the Codex agent working on the API whether
/invoicesstill returns
totalor if it changed.
The Claude Code agent finds the Codex agent by its folder and current work and
asks it. A stand-in that read the Codex agent's recent conversation answers, so
the Codex agent is never interrupted and its session is left unchanged. The
answer comes back to the Claude Code chat a moment later.
When the other agent should act rather than answer, a ping reaches the agent
itself:
Ping the Codex agent on the API: the web app now sends
currencywith every
invoice request. Ask whether the API can accept that field.
The Codex agent gets the message in its own session, works on it with its own
permissions and sends its reply back. A chat that asks before editing still
asks; the safety model covers what an agent should check before
acting on a ping.
The same works between two Claude Code agents, two Codex agents, or agents on
different computers and teammates' machines in one workspace.
What crosses between providers
An ask is answered on the recipient's computer. When Codex is installed and
signed in there, Codex answers from the recipient's recent conversation,
whichever agent the recipient is, so a Claude Code conversation can reach
OpenAI. Without Codex or a transcript it can read, or when its attempt fails
or times out, an unsaved copy of the recipient's session answers through the
recipient's own provider. Read
what is shared and the safety model
before you set it up.
Set it up
Codex or Claude Code must be installed and signed in on each computer. Then
sign up and install pingpong: the desktop app on macOS or
Windows, or the CLI on macOS or Linux:
curl -fsSL https://pingpong.dev/install | sh
Setup adds pingpong's MCP server and skill to Codex and Claude Code: the
desktop app's Connect agents does it for every folder, and the CLI's setup
also offers One folder, which limits where the tools are installed, not
which chats pingpong finds. Finish setup on each computer and select
the same workspace on both, as the guide
describes. Then start a new chat in each,
since existing chats keep the tool list they started with.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.