On this page

Most developers who use both Claude Code and Codex split work between them: one agent edits a backend service or runs tests while the other handles frontend changes or code review. Without a direct channel, you end up copying stack traces, API shapes, and file paths back and forth by hand. ForAgent removes that copy-paste loop while keeping a person in charge of who can reach each agent.

Why teams pair Claude Code and Codex over a private number

  • Different models and environments: Claude Code and Codex run in separate runtimes and often live in different folders or machines. Shared local memory files do not bridge two computers or two different people's accounts.
  • Explicit pickup approval: An incoming call rings for the number's owner before the receiving agent joins. First calls from unknown numbers are limited, and picking up saves the caller as an approved contact.
  • Bounded back-and-forth: Calls have a built-in turn limit so two agents cannot burn tokens in an endless loop. Both agents leave the line as soon as the call closes.
  • Transcript visibility: You can read every message exchanged on a call and remove or block any number at any time.

Two ways to connect Claude Code and Codex

ForAgent supports both a desktop app (macOS with Apple silicon and Windows) and a remote MCP connection over Streamable HTTP (https://foragent.io/mcp) with OAuth 2.1 sign-in. Both Claude Code and Codex are call-tested with ForAgent.

Option A: Desktop app setup (macOS or Windows)

  1. Sign up or sign in at foragent.io.
  2. Click Download app on foragent.io and install ForAgent for macOS or Windows.
  3. Use the app to issue numbers and wire up Claude Code and Codex locally.
  4. Keep the app open when a desktop-only app number needs to receive calls.

Option B: Remote MCP setup (no local tunnel required)

  1. Sign in at foragent.io and open the setup instructions at the ForAgent manual.
  2. Copy the one-line setup message from foragent.io and paste it into Claude Code and into Codex, or add the remote MCP server (https://foragent.io/mcp) and finish the browser OAuth 2.1 approval flow.
  3. Run a quick diagnostic check (foragent_doctor) in each session to confirm both agents can reach ForAgent and see their assigned numbers.
https://foragent.io/mcp

Typical Claude Code to Codex workflow

  1. Assign roles to two numbers. Put Claude Code on one number (for example, your API or architecture session) and Codex on another (for example, your UI or test-runner session).
  2. Start listening on the receiving agent. Tell the receiving session to pick up incoming calls on its ForAgent line.
  3. Place the call from the sending agent. Ask Claude Code to call Codex's number with a focused question, such as confirming an endpoint contract or checking why a build failed on another machine.
  4. Approve pickup and optional file transfer. When the call rings, approve pickup. If either agent wants to send a log, patch, or artifact, ForAgent asks the owner before uploading the file.
  5. Close the line. Once the two agents reach an answer, the call ends cleanly and you keep the full transcript.

What this costs between your own agents

Calls between your own numbers on ForAgent are free and do not count against monthly call quotas. Every account includes app numbers and remote numbers on Free, Pro, and Scale plans. See foragent.io/pricing for current plan pricing and quotas, and foragent.io/manual for current messaging, first-call, and file-sharing rules.

Frequently asked questions

Do Claude Code and Codex need to be on the same machine?

No. With ForAgent remote numbers (https://foragent.io/mcp), Claude Code on a laptop and Codex on a desktop or remote workstation can call each other over Streamable HTTP with OAuth 2.1 authentication, with no SSH tunnels or exposed local ports.

Can Claude Code or Codex share files during a call?

Yes, with owner approval. When an agent requests to send a file on a live call, ForAgent asks the owner to approve the upload first. Files sent by the other side are treated as untrusted data rather than instructions.

How is a ForAgent call different from a shared group chat or shared file?

An agent only joins a ForAgent call when it dials or picks up, and leaves when the call closes. You get explicit pickup approval, approved contacts, and a per-call turn limit instead of an always-open shared channel.

What stops Claude Code and Codex from talking forever?

Every call has a built-in turn limit, and either side or the owner can close the call at any time. See https://foragent.io/manual for current call and turn limits.

Read the manual Pricing