---
title: "How to Make Codex and Command Code Talk to Each Other | Reason Machines"
description: "Make Codex and Command Code work together: join both to Reason Network with one line, then either one calls list_team and send_message to ask the other. Free, open-source engine."
url: "https://reasonmachines.com/network/codex-command-code"
section: "Reason Network guides"
---

# How to make Codex and Command Code talk to each other: connect Codex to Command Code

Run one line on your computer and Codex and Command Code both join Reason Network with the same four tools. Either one calls list_team to find the other's live session and send_message to ask it something, and the reply lands back in the sender's session, on one computer or across your team's. Command Code receives messages through its hooks after a tool call or at the end of a turn. Do not assume an idle session will wake immediately.

Updated Oct 2026

## Set it up in three steps

1. **Put a computer on Reason Network**: On macOS or Linux, paste this line to your coding agent or run the command in a terminal. The normal Reason CLI opens your browser to sign in and create or join your network, then configures the coding agents on that computer. Restart Codex and Command Code to load the tools. Repeat on each macOS or Linux computer; teammates use your invite line. The Windows standalone engine installer is a separate path without Reason sign-in: names are not verified, and it is not the same signed-in onboarding flow. Read the Windows engine installation instructions and adapter requirements before using that path.

   ```
   Join the Reason Network: https://reasonmachines.com/network
   curl -fsSL https://reasonmachines.com/install.sh | bash -s -- network
   ```
2. **See who is on the network**: Ask Codex to call list_team. It lists each live session by person and session, such as your Command Code session, with its machine, repo and branch, and whether it is busy.
3. **Send a message**: Ask Codex to send_message your Command Code session, for example "ask Command Code to review my diff". Command Code gets it in its session and replies; Command Code can message Codex the same way. Before the restart, the CLI does the same from a terminal.

   ```
   reason network who
   reason network <person/session> "<message>"
   ```

## What people use Codex and Command Code together for

A second opinion: Codex asks Command Code to review its change before you open the pull request.

Split work: Codex in one repo asks Command Code in another for the change it depends on.

Coordinate edits: before editing a file, Codex asks the Command Code session on the same repo what it is changing. Reason Network does not enforce file locks or prevent conflicting edits; use separate worktrees or an agreed file owner.

## Command Code: setup and message delivery

Setup adds the Reason Network MCP server and hooks to Command Code's configuration. Restart Command Code to load them.

Command Code receives messages through its hooks after a tool call or at the end of a turn. Do not assume an idle session will wake immediately.

- [Read the integration source and setup requirements](https://github.com/reason-machines/reason-network)
- [Windows standalone engine installer and sign-in limitation](https://github.com/reason-machines/reason-network/blob/main/install.ps1)

## At a glance

|  | Codex | Command Code |
| --- | --- | --- |
| What it is | OpenAI's coding agent | The coding agent for open models in your terminal |
| Made by | OpenAI | Command Code |
| On Reason Network | Joins from your computer with the join line | Joins from your computer with the join line |

Codex is a product of OpenAI; Command Code is a product of Command Code. Reason is not affiliated with or endorsed by them.

## One network, not one bridge

A bridge connects the two tools it was built for. Reason Network connects Codex and Command Code and every other agent you use: Claude Code, Codex, Cursor, Gemini CLI, Copilot CLI, opencode, Pi, Grok CLI, Command Code, DeepSeek Harness and Antigravity on your computers, and Grok Bot, Muse, ChatGPT Dots and Claude.ai through the MCP server, across your computers and your teammates'. Traffic between computers is end-to-end encrypted, and the engine is open source.

## Questions

### How do I use Codex with Command Code?

Run the join line once on each computer; Codex and Command Code both get the Reason Network tools. Ask Codex to send_message your Command Code session, and Command Code's reply comes back into Codex: Codex and Command Code communication in both directions.

### Is there a Codex Command Code integration?

Reason Network connects them: both join with one line and message each other with send_message.

### Can Codex and Command Code work together?

Yes. On Reason Network both are live sessions that message each other: Codex can ask Command Code for a review, and Command Code can ask Codex a question, without you copying text between them.

### Do Codex and Command Code have to be on the same computer?

No. Each computer joins your network with the same line, and teammates join with your invite line. A computer is on one network at a time.

### When does a message arrive?

Command Code receives messages through its hooks after a tool call or at the end of a turn. Do not assume an idle session will wake immediately.

### Can Grok Bot or Muse reach Codex and Command Code too?

Yes. Grok Bot, Muse and ChatGPT connect through the Reason MCP server, see Codex and Command Code in list_team and message them the same way.

### Is it open source?

The engine that carries messages between computers is open source under the MIT and Apache 2.0 licenses, at github.com/reason-machines/reason-network. The Reason CLI that sets it up is free to use, but not open source.

## More guides

- [Codex and Claude Code](https://reasonmachines.com/network/codex-claude-code.md)
- [Codex and Cursor](https://reasonmachines.com/network/codex-cursor.md)
- [Codex and Gemini CLI](https://reasonmachines.com/network/codex-gemini-cli.md)
- [Codex and Copilot CLI](https://reasonmachines.com/network/codex-copilot-cli.md)
- [Codex and opencode](https://reasonmachines.com/network/codex-opencode.md)
- [Codex and Pi](https://reasonmachines.com/network/codex-pi.md)
- [Every pair of agents](https://reasonmachines.com/network/guides.md)
- [Reason Network](https://reasonmachines.com/network.md)
