
buidangminh23/codex-mcp-bridge
Developer toolsClaude ⇄ Codex — Two-way MCP bridge for prompts and replies. Windows, macOS, and Linux.
Overview
Local Desktop handoff guides: daily workflow and directory verification, new-machine setup and permissions, and project onboarding. Send prompts and replies between , keeping each conversation in its own app. Supports Windows, macOS, and Linux; native Desktop integration supports Windows and macOS. https://github.com/user-attachments/assets/98b23989-826f-4d7d-9dcb-ad7dd2739095 To receive new release notifications, open this repository, select , then click . Choose GitHub or email delivery in your notification settings. Starring the repository or downloading/installing a package does not subscribe you to release notifications. Notifications do not update your installed copy; follow the installation instructions to update. Open Codex Bridge to connect ChatGPT to . Each ChatGPT account pairs its own connector and can access only the local project directories selected during setup. Native Desktop mode supports Windows and macOS. Keep Codex Desktop and the connector running.
README
codex-mcp-bridge
Connect Claude, Codex, and Antigravity through MCP. Send work between native Desktop conversations or use independent CLI background workers.
Supports Windows, macOS, and Linux. Native Desktop integration supports Windows and macOS.
https://github.com/user-attachments/assets/98b23989-826f-4d7d-9dcb-ad7dd2739095
Installation
Package — npm
Requires Node.js 22.13+. Use the same command for a fresh install or an update.
Windows PowerShell
npx.cmd -y @minhspark/codex-mcp-bridge@latest
macOS / Linux / WSL
npx -y @minhspark/codex-mcp-bridge@latest
Run the command directly in an interactive terminal. It installs the package, applies Claude/Codex/Antigravity settings, and verifies the background relay. Windows installs into %APPDATA%\npm without administrator rights. Existing permissions, project grants, custom settings, and disabled services are preserved.
For native handoffs, sign in to the Desktop apps and open the same saved project in Codex Desktop and Claude Desktop’s Code tab. The shared Claude chat connector is a separate local app-server route.
Setup supplies a missing Codex CLI. Install and authenticate Claude Code and agy separately for their workers; CLI authentication is separate from Desktop sign-in.
Windows setup · macOS setup · Project permissions
Independent background workers
Codex ↔ Claude, Codex ↔ Antigravity, and Claude ↔ Antigravity workers communicate through a per-user service, even while Desktop apps are closed or unresponsive. Workers use separate CLI sessions and require an authenticated provider, a running service, and an authorized project.
- MCP tools:
worker_status,list_workers,send_to_worker,read_worker_delivery. - Terminal:
worker-relay status,worker-relay list,worker-relay send,worker-relay read. - Authorize a selected project with
bridge-projects allow-project.
On Windows, add .cmd to terminal commands. Provider quotas and tool permissions still apply. Worker setup and authorization
Manage work across computers
Run worker-relay dashboard inside the local project to open the operator dashboard. Add an existing macOS/Linux remote Codex profile with worker-relay dashboard --host mac. Run the same command again to reopen the dashboard. From a source checkout use node scripts/worker-relay.mjs dashboard. The dashboard listens on loopback, and the coordinator keeps scheduling when its browser windows close.
Create a job with one or more sequential steps. Auto prefers this computer when a worker is ready and the OS reports at least 2 GiB of memory available to the worker. Other eligible computers are ranked by available RAM. Adjust the memory floor beside the machine list while the dashboard is running. Set the startup floor with --min-free-gib. Pin a job to a machine, change its destination while queued, or cancel the remaining queued steps. An active step finishes on the machine that accepted it. Later steps receive earlier results and can move when the two working trees are clean at the same Git revision. Share any required artifacts separately. Interrupted deliveries keep their original receipt ID for recovery.
Install this version of the bridge and set up the background relay on each worker. Each checkout needs an existing project grant and the same Git origin. Test the configured SSH alias using the operator’s key and verified host key. For Windows SSH targets or multiple custom checkout mappings, use worker-relay dashboard --config /path/to/fleet.json with a local configuration:
{
"version": 1,
"hosts": [
{ "id": "laptop", "sshHost": "laptop", "platform": "darwin", "cwd": "/Users//project" },
{ "id": "workstation", "sshHost": "workstation", "platform": "win32", "cwd": "D:\\Projects\\project" }
]
}
Open each machine in its own dashboard window to compare jobs and RAM. Expand the AI session list on a machine to see AI sessions for its configured project, their reported status, and any jobs the fleet is running there. The list refreshes while open. The screen viewer connects to the remote machine’s existing VNC service over SSH. Sign in to the destination and enable control to use the mouse and keyboard. Windows also supports downloading an RDP connection file for an existing Remote Desktop service. Both remote desktop options use the operator’s SSH tunnel and the destination’s authentication. Queue data and the browser sign-in link are private to the coordinator’s OS account.
Verify the installation
codex-bridge-setup --check
worker-relay status
On Windows use codex-bridge-setup.cmd --check and worker-relay.cmd status. The first command checks saved settings; the second checks the independent service and CLI readiness.
Check native connections with the tools available inside each client:
| Client | Status tool |
|---|---|
| Claude Code | codex_bridge_status |
| Codex | claude_bridge_status, native_relay_status |
| Codex / Claude with Antigravity | antigravity_bridge_status |
| Antigravity | agent_bridge_status |
Confirm a reply on each route used. Saved configuration alone does not verify live delivery.
Use
- Claude → Codex: “Send this review to my Codex task in this project and wait for its reply.”
- Codex → Claude: “Send this result to my Claude Desktop Code session in this project.”
- Background work: “Send this task to a Claude worker in this project.”
- Another computer: from an existing AI session, use
send_to_fleet_sessionto send a brief to a session in the mapped project. To inspect a particular Codex Desktop task from Codex, useremote_codexover SSH.
Native handoffs preserve the actual sender and destination permissions. Antigravity App replies stay in their App conversation; independent workers return separate delivery receipts.
Continue unfinished work in its original conversation. If delivery times out or is uncertain, inspect the original receipt before sending again. Daily handoffs
ChatGPT plugin
Open Codex Bridge to connect ChatGPT to a selected project on Windows or macOS. After installing the package, pair the connector:
codex-sites-connector --pair --site https://codex-mcp-bridge.buidangminh23.chatgpt.site --roots "/absolute/project/path"
On Windows use codex-sites-connector.cmd and a Windows project path. Open the printed pairing URL and select Connect this computer. Keep Codex Desktop and the connector running.
The hosted service stores account/connector identifiers, prompts, and returned results; its operator, Bui Dang Minh, can access these records. Disconnecting revokes access but does not erase history or stop dispatched tasks. Request deletion through support without posting private content publicly. Availability follows OpenAI’s Sites access rules.
Optional workflow skill
Install the hosted workflow’s Markdown instructions with:
npx skills add buidangminh23/codex-mcp-bridge --skill codex-bridge
Use npx.cmd on Windows. The skill requires the hosted plugin and a paired connector; it does not install the local bridges.
Troubleshooting
Rerun the installation command to update, or codex-bridge-setup to repair settings. Use --dry-run to preview changes and --check --json to inspect configuration. Add .cmd on Windows.
Include the Bridge diagnostic block when reporting an issue. Retain the original request/delivery ID after a timeout and remove private data from surrounding logs.
Documentation
- Windows setup and recovery
- macOS setup and recovery
- Project authorization
- Daily Desktop handoffs
- Tools, settings, SSH, and technical details
- Homebrew installation
- Changelog · Releases
Optional active-install statistics
Usage reporting is off by default. Use codex-mcp-bridge telemetry status to inspect it, or telemetry enable / telemetry disable to change it. Reports include a random installation ID, UTC day, version, and OS; no chats, paths, accounts, or credentials. DO_NOT_TRACK=1 or CODEX_BRIDGE_TELEMETRY=0 disables reporting.
Install
npx -y @minhspark/codex-mcp-bridge@latest