claude-codex-bridge
This server lets Claude Code delegate tasks to live OpenAI Codex agents running in a project directory, then steer, question, interrupt, resume, and monitor those sessions asynchronously.
List models (
codex_models) — enumerate Codex models, paging with a cursor.Start an agent (
codex_start) — launch a Codex task in an absolutecwdwith optional model, returning athreadIdimmediately (Codex runs with full filesystem/network access and no approval prompts).Send instructions (
codex_message) — steer a running turn or begin a new turn in an existing thread.Interrupt (
codex_stop) — stop a running turn; already-made changes are not undone.Resume (
codex_resume) — reattach a saved thread after reconnecting, then continue withcodex_message.Answer questions (
codex_answer) — respond to Codex's structured questions viarequestIdand question IDs.Check state (
codex_status) — read session status, pending questions, and the latest answer, or list all sessions.Read events (
codex_events) — pull the bounded event journal after a sequence cursor to recover results if channel delivery is unavailable (gaps are reported; avoid busy-polling).
Allows Claude to delegate tasks to OpenAI Codex agents, including starting, steering, stopping, and resuming Codex sessions, as well as receiving progress updates and results.
Claude Codex Bridge
Run OpenAI Codex agents from Claude Code. Ask Claude to delegate a task to Codex, follow its progress, send another instruction while it works, stop it, or continue a saved session.
The plugin connects Claude's MCP tools and Channels to codex app-server.
Codex tasks run asynchronously; starting a task returns its session ID without
waiting for the task to finish.
sequenceDiagram
actor You
participant Claude as Claude Code
participant Bridge as Bridge plugin
participant Codex as Codex app-server
You->>Claude: Delegate a task to Codex
Claude->>Bridge: codex_start
Bridge->>Codex: Start a thread and turn
Bridge-->>Claude: Session ID
Codex-->>Bridge: Progress, questions, result
Bridge-->>Claude: Channel notifications
You->>Claude: Add an instruction or stop
Claude->>Bridge: codex_message / codex_stop
Bridge->>Codex: Steer / interrupt the turnRequirements
Claude Code 2.1.261, installed and signed in.
Codex CLI 0.153.4, installed and signed in with access to the model you want to use.
Node.js 24.20.0 or newer, including npm and npx.
These are the tested versions. Older versions are unsupported; compatibility with newer versions must be verified. The plugin uses the experimental Codex app-server protocol and Claude Code Channels research preview.
node, npx, and codex must be on the PATH inherited by Claude Code. The npm
package includes the bridge's JavaScript dependencies. The plugin
uses npx to fetch its exact package version on first startup; subsequent
starts use npm's cache. No source build or protocol generation is required.
Related MCP server: claude-code-codex-agents
Install
1. Check the required tools
Install Claude Code, Codex CLI, and Node.js, then check:
claude --version
codex --version
node --version
npm --version
codex login statusIf Codex is not signed in, run codex login. Claude and Codex use their own
accounts and model access. The plugin does not provide a subscription or API
credits.
2. Add the marketplace and install the plugin
claude plugin marketplace add umum-ai/claude-codex-bridge
claude plugin install claude-codex-bridge@claude-codex-bridge --scope userClaude installs the plugin from this repository's marketplace. The plugin
starts the pinned version of
@kvokka/claude-codex-bridge
with npx --yes. The first startup needs access to the npm registry.
3. Enable the plugin and Channels
Merge this into ~/.claude/settings.json, keeping your other settings:
{
"channelsEnabled": true,
"extraKnownMarketplaces": {
"claude-codex-bridge": {
"source": {
"source": "github",
"repo": "umum-ai/claude-codex-bridge"
}
}
},
"enabledPlugins": {
"claude-codex-bridge@claude-codex-bridge": true
}
}The installation commands already register the marketplace and enable the plugin. The complete fragment above also shows how to reproduce the settings.
4. Start Claude in your project
cd /absolute/path/to/your/project
claudeThe maintainer reports that channelsEnabled: true enables this ordinary
startup on Claude Code 2.1.261 without a shell alias or wrapper. Channel
activation can also depend on your account and organization policy. Verify
incoming progress with the example below before relying on it.
Anthropic's Channels documentation
currently describes channelsEnabled as a managed setting and requires
per-session opt-in. If tools load but incoming progress does not arrive, see
Channels troubleshooting.
Use it
Talk to Claude normally. Give Codex a concrete task, the project directory, and an explicit model when you want one:
Use the bridge to start Codex with model gpt-5.6-luna in /absolute/path/to/my-project. Review the authentication code and suggest a fix for the failing login test. Report its progress as channel events arrive.
To check that notifications work, use a task with a short delay:
Start Codex in this project. Ask it to announce that it started, run a command that waits 15 seconds, and then reply BRIDGE_DONE. Wait for channel events; do not poll codex_status or codex_events.
While Codex is working:
Tell that Codex session to focus on the token refresh path.
To interrupt it:
Ask that Codex session to stop.
After a task completes:
Continue that Codex session: implement the proposed fix and run the relevant tests.
Keep the threadId if you want to continue after restarting Claude:
Resume Codex thread THREAD_ID in /absolute/path/to/my-project, then ask it to continue the investigation.
Claude can list available models with codex_models. An explicitly selected
model is requested without provider fallback. Ask for a service tier such as
fast to override the service_tier in your Codex config for that thread.
Available tools
Tool | What you can ask Claude to do |
| List the models available to Codex. |
| Start an independent task in an absolute project directory. |
| Send an instruction during a turn, or start the next turn. |
| Interrupt the current turn. |
| Reopen a saved Codex thread. |
| Answer a structured question from Codex. |
| Read status, pending questions, and the latest answer. |
| Read recent events using a sequence cursor. |
How it works
Claude starts the plugin as an MCP server. The plugin starts a local
codex app-server process and uses its stdio protocol to manage Codex sessions.
Control calls return promptly; the task continues inside Codex. This does not
use a long-running Claude Bash tool call, and task duration is independent of
Claude's Bash timeout. Control acknowledgements have a 30-second timeout.
Codex progress, questions, errors, and completion arrive through Claude Channels. Claude processes queued notifications when it can take its next turn. A successful notification write does not confirm that Claude has read it. Codex sessions appear through tools and messages, not as native Claude agents in its subagent panel.
Codex runs with danger-full-access and approvalPolicy: never. It can
modify files and run commands with the permissions of your local user without
requesting approval. Claude's tool permissions do not sandbox Codex. Choose the
project directory and tasks with that execution mode in mind.
The plugin uses Codex's existing authentication and configuration. It adds no API proxy, model impersonation, interception hook, or global timeout override. Exiting Claude stops the bridge and its app-server process. Saved Codex threads can be resumed; running work is not hosted by a background daemon.
Progress is batched about once a second and capped at 8,000 characters per batch. The bridge retains 200 recent events across sessions and up to 64,000 characters of the latest answer. Truncation and an expired event cursor are reported explicitly. The event journal lives only for the current bridge process.
Update or uninstall
To install the latest published version:
claude plugin marketplace update claude-codex-bridge
claude plugin update claude-codex-bridge@claude-codex-bridgeRestart Claude after updating. To remove the plugin:
claude plugin uninstall claude-codex-bridge@claude-codex-bridge --scope user
claude plugin marketplace remove claude-codex-bridgeWhy yet another connector?
codex-mcp explains why existing solutions on the market fall short, and why a straightforward approach was needed.
I checked all the boxes, but the implementation ended up large and clumsy.
This version is ~14× smaller (10 321 LOC in codex-mcp v3.1.0 vs 746 LOC in
claude-codex-bridge v0.1.2), more stable, clearer, and cleaner. It builds on
Claude Code Channels — still experimental, but solid enough in practice.
It has the same limitations and the same feature set as codex-mcp.
I only arrived at this design after shipping codex-mcp. The idea isn’t new: it
was already implemented in
codex-claude-bridge.
That project is unmaintained, and this architecture fixes several of its flaws.
Releases
A release is chosen manually with exactly one release:patch, release:minor,
or release:major label on a pull request. It runs when the PR merges into
main, or when the label is added to an already merged PR. An unlabeled PR
publishes nothing.
The release updates the npm package version, both root versions in
package-lock.json, the plugin manifest, the marketplace entry, and the npm
version in the plugin's launch command together. It checks the resulting
commit before pushing main and the X.Y.Z git tag atomically, then publishes
the verified npm archive with provenance and creates the GitHub release. If main
moves during the checks, the release stops before tagging.
For a failed publication, run the release workflow manually with its existing
X.Y.Z tag as ref. This retries that version without another bump. An npm
version already carrying the same archive is left in place; different bytes are
rejected.
The npm package owner must configure a
trusted publisher for GitHub owner
umum-ai, repository claude-codex-bridge, workflow release.yml, and environment
npm. The first publication uses the repository's short-lived NPM_TOKEN secret.
After the package exists and its trusted publisher is configured, npm uses
GitHub OIDC; the token can expire or be removed. The token is passed only to the
publication step.
Troubleshooting
Tools work but live progress does not arrive
Tool availability and incoming channel delivery have separate gates. Use
codex_status to confirm the task is running and check Claude's startup notices
for a channel or organization-policy warning.
For testing this custom channel, start a session with:
claude --dangerously-load-development-channels plugin:claude-codex-bridge@claude-codex-bridgeThis explicit preview flag is the integration-tested path for incoming events.
The plugin is not on Anthropic's official channel allowlist. An organization can
approve it in managed settings with channelsEnabled: true and an
allowedChannelPlugins entry naming marketplace claude-codex-bridge and
plugin claude-codex-bridge; an approved session uses
--channels plugin:claude-codex-bridge@claude-codex-bridge. Preserve any other
channels on the organization's allowlist.
The MCP server fails to start
Check that node --version, npm --version, and codex --version work in
the same terminal where
you launch Claude. Restart Claude after installing either tool or changing
PATH. Use /mcp in Claude to inspect the server connection.
Codex rejects the model or account
Run codex login status and ask Claude to call codex_models. Model access is
controlled by your Codex account. A requested model error is surfaced directly.
A task disappeared after restarting Claude
Ask Claude to call codex_resume with the saved threadId and project directory.
The event journal does not survive a restart; the saved Codex conversation does.
Report reproducible problems at GitHub Issues, including the tool versions, the failed operation, and relevant error messages. Remove credentials and private project content from reports.
Available Tools
8 toolscodex_answerB
Answer a Codex question using its requestId and all question IDs. Ask the user when the answer requires their preference; otherwise answer from the task context.
Inputs: answers (required), threadId (required), requestId (required).
codex_eventsA
Read the bounded event journal after a sequence number. gap means older events were evicted. Use to recover results if channel delivery is unavailable; do not busy-poll.
Inputs: after.
codex_messageA
Send direction to a running Codex turn, or start another turn in the same thread if it is idle. A race with turn completion can return an error: inspect status before retrying.
Inputs: message (required), threadId (required).
codex_modelsA
List available Codex models. Pass nextCursor as cursor for another page.
Inputs: cursor.
codex_resumeA
Attach a saved Codex thread after reconnecting. Use codex_message to continue its work.
Inputs: threadId (required).
codex_startA
Start a live Codex agent and return its threadId immediately after acceptance. Codex runs with full filesystem/network access and no approval prompts. Supply an absolute working directory and the complete task context; model and serviceTier (for example "fast") are optional.
Inputs: cwd (required), prompt (required), model, serviceTier.
codex_statusA
Read session state, pending questions and the latest answer. Omit threadId to list sessions. Does not wait for completion.
Inputs: threadId.
codex_stopA
Request interruption of a running Codex turn. The interrupted event confirms completion; this does not undo changes already made.
Inputs: threadId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct lifecycle operation: start (new thread), resume (reattach saved thread), message (continue/idle turn), stop (interrupt), status, events, answer, and models. The main overlap risk is between codex_status and codex_events, both of which read state, but descriptions differentiate session state vs. event journal.
Every tool uses the codex_ prefix with a clear snake_case verb/noun form (codex_start, codex_message, codex_events, codex_stop). The pattern is uniform and highly predictable.
Eight tools is well-scoped for an agent-bridge server covering session lifecycle, messaging, event retrieval, and model listing. Each tool appears to earn its place without redundancy.
The surface covers the full lifecycle: start, resume, message, stop, status, events, answer, and models. Minor gaps exist, such as explicit session teardown/cleanup or listing historical threads beyond resume, but core workflows are covered.
Maintenance
Related MCP Connectors
Stop copy-pasting between Claude Chat and Claude Code.
Give spare Claude Code or Codex usage to open source. Your agent opens pull requests. No money.
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
claude-opus-4-5-20251101-high-32k is #49 overall but #14 in coding. gpt-5.6-terra-xhigh is #52.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to leverage OpenAI models for expert code review, deep architecture analysis, and security audits, with automatic markdown report generation.MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to delegate tasks to OpenAI's Codex CLI (GPT-5.4) with structured execution traces, parallel execution, session persistence, and adversarial code review.15MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude Code to call OpenAI Codex for read-only design, deep reasoning, and code review tasks.MIT
- AlicenseNot gradedqualityAmaintenanceTurn ChatGPT into Codex! OR Turn Claude Web into Claude Code!482 npm5,539MIT