codex-mcp-bridge
Provides a policy-controlled interface for OpenAI's Codex MCP server, enabling secure read/write sessions from ChatGPT with configurable approval and sandbox restrictions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex-mcp-bridgeRun a read-only code review of the current repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex MCP Bridge for ChatGPT
Use ChatGPT to run Codex against projects on your own computer, keep work organized, and check progress without repeatedly copying commands and results between apps.
Download releases · Detailed setup guide · Security model
What it gives you
Run and continue local Codex work from a ChatGPT conversation.
Organize work as reusable Agents and goal-oriented Activities instead of isolated terminal calls.
See running work, requests needing a response, and problems from the native macOS menu-bar app or the ChatGPT status card. Select a summary count to filter current work, or open Run History. The card starts with this conversation when it has retained work, with a switch to all conversations.
Choose which project folders Codex may use, find reusable procedures through the bridge skill library, and control model, reasoning, concurrency, and access policy centrally.
Run one Mac as the server and use another Mac as a client for status and settings.
Keep the normal starting policy read-only and place an operator-controlled ceiling on broader access.
ChatGPT
→ OpenAI Secure MCP Tunnel
→ Codex MCP Bridge for ChatGPT on your server computer
→ Codex working in a registered project folderRelated MCP server: mcp-governance-proxy
What the menu-bar app shows
On macOS, open the menu-bar icon to check the selected server without opening ChatGPT:
Connection and Codex usage: server/client target, Bridge health, and—when available—weekly Codex usage remaining with its reset time.
Work state: running, response-required, and issue counts, plus a conditional background-process indicator. Selecting a count filters the loaded current-work snapshot without another server read.
Work details: filtered current-work lists or 12-row on-demand run history, with project, conversation, Agent, actual model, canonical lowercase reasoning effort, conditional next-run settings, snapshot work time, and background processes.
Quick actions: refresh status, continue a conversation in Codex after verified connection release, open Settings, control the server, or quit the app. See conversation connections and retention for waiting reasons, persistence constraints and returning to the bridge.
Choose how to use it
Your situation | Recommended setup | What runs on this computer |
This Mac will run Codex work | macOS app in Run Server on This Mac mode | App, helper, Bridge, Tunnel, and Codex |
This Mac will only manage another Mac | macOS app in Connect to Existing Server mode | Client app only |
Windows or Linux will run Codex work | Node.js server | Bridge, Tunnel, and Codex |
macOS without the native app | Node.js server | Bridge, Tunnel, and Codex |
The native client-only mode is currently available on macOS. Windows and Linux users run the Node.js server and use the ChatGPT Settings and Dashboard cards.
Quick start
macOS app
Download the DMG for your Mac from Releases:
arm64for Apple Silicon orx64for Intel.Move Codex MCP Bridge for ChatGPT to Applications and open it.
Choose one role:
Run Server on This Mac to run Codex locally.
Connect to Existing Server to use this Mac only as a client.
Server mode requires macOS 13 or later, Node.js 22 or later, and tunnel-client. In Settings → Codex, use an existing app/terminal Codex or install a bridge-managed CLI. A single existing installation is selected automatically; saved choices and manual update preferences are preserved. The app guides you through the Tunnel runtime key, Tunnel ID, Codex browser login, and first project.
The bridge connects directly to the selected Codex through App Server. See Codex installation and updates for ownership, compatibility, authentication and recovery.
Client mode does not start or require a local Bridge, Tunnel, or Codex runtime. Paste the one-time invitation copied from the server Mac, then select that saved server.
The current app is ad-hoc signed and not notarized. On first launch, macOS may require approval in System Settings → Privacy & Security.
Windows, Linux, or a terminal-managed server
Install Node.js 22 or later, the Codex CLI, and tunnel-client, then authenticate Codex:
codex login
git clone https://github.com/menaje/codex-mcp-bridge-for-chatgpt.git
cd codex-mcp-bridge-for-chatgpt
npm ci
npm run buildCopy .env.example to the private runtime configuration location, set CONTROL_PLANE_API_KEY and CONTROL_PLANE_TUNNEL_ID, then start the server:
npm run bridge:secureUse npm run bridge:local only for loopback development. ChatGPT access normally uses the Secure MCP Tunnel. See the detailed setup guide for Linux/macOS shell commands, Windows PowerShell commands, and configuration locations.
Connect it to ChatGPT
After the server reports that the Bridge and Tunnel are ready:
Enable Developer mode in ChatGPT.
Create a developer-mode connection and choose Secure MCP Tunnel.
Select the Tunnel ID used by the server.
Choose No Auth for the ChatGPT connection.
Ask ChatGPT to open the bridge settings and register at least one project folder.
Routine computer, app, Bridge, or Tunnel restarts do not require a ChatGPT connection refresh. Refresh the connection after installing a release that changes tools or card UI.
Settings at a glance
Area | What it controls |
Connection | This Mac's server/client role, saved servers, remote access, and device pairing |
General | Access strategy, model policy, Priority/Fast use, language, concurrent work, and card behavior |
Projects | The folders Codex may use for new work, plus bridge-owned versioned skills shared with ChatGPT and scoped Codex tasks |
Server | Codex backend and the maximum access the server may grant |
Changes in the native app's General tab are saved automatically. In the ChatGPT Settings card, choose Save settings after editing. These settings are shared by every ChatGPT conversation using that server. In client mode, General and Projects edit the selected remote server. The login-at-startup preference always belongs to the current Mac. Server settings require an explicit save and restart.
For every option and its effect, see Setup and settings.
Remote client mode
On the server Mac, open Settings → Connection, enable Manage This Server from Another Mac, and select Create and copy a new pairing invitation valid for 5 minutes. Paste that invitation into the client Mac. It contains the server address and security identity together, expires after five minutes, and can be used once.
You can save more than one server on the client, but only one is active at a time. Switching servers changes the Dashboard and the target of shared settings. A project path entered on a client is always a path on the selected server.
Use remote management only on a private LAN or private VPN that you control. See Remote client mode for the network and security boundaries.
Safety notes
The Bridge binds to loopback by default and begins with read-only access.
Project folders must be registered explicitly; the Bridge does not guess a working folder.
Broader write or full access must be allowed by the server before a task can use it.
This is a personal bridge for one trusted operator. Shared settings are not isolated by ChatGPT account.
These controls are policy boundaries, not operating-system isolation. Use a separate OS user, container, VM, or disposable project copy when stronger isolation is required.
Execution uses the selected Codex CLI through App Server. Compatibility depends on the public protocol and required features, without a bridge-owned version allowlist.
Documentation
Setup and settings — macOS server/client setup, Windows/Linux Node.js setup, ChatGPT connection, and every user-facing setting
Native macOS app — app architecture, lifecycle, local files, recovery, and build details
Remote client mode — pairing, server switching, network scope, and credential handling
ChatGPT integration — connection, refresh, current tool use, and smoke checks
MCP 2026-07-28 migration — breaking protocol, tool-contract, and card-resource changes
Security model — trust boundaries, authentication, access policy, and remaining risks
Database schema and lifecycle — state ownership, every table, upgrades, retention, capacity, backups, and offline compaction
State upgrade and recovery runbook — release-stage profiles, migration preflight, verified restore, and post-service recovery
Input/output contracts, bridge skill library — public and app-private protocol details, versioned bridge skills, model-facing lookup, and per-turn Codex delivery
Release process and release governance — maintainer workflow and distribution gates
UI release policy — single-file cards, stable URI versions, cache limits, and release checks
Development
npm ci
npm run checkOn macOS:
npm run macos:check
npm run macos:bundleRelease identity and supported targets are defined in release-manifest.json. Historical attribution is in UPSTREAM.md.
License
MIT
GPT handles ordinary Codex questions through codex_status (input query) and codex_answer. When the user’s opinion is needed, GPT asks in the current ChatGPT conversation, verifies that the original question remains valid, and sends the answer to the exact Codex turn. See question orchestration for the protocol, retention policy, and host validation limits.
The current card and tool contract is described in Card tools. Open the Dashboard for current work and Settings to manage the bridge.
This server cannot be deployed
Maintenance
Related MCP Connectors
- gatewayOAuthai.sealgate
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Related MCP Servers
- FlicenseAqualityDmaintenanceA secure MCP server that exposes local repository context to ChatGPT/Codex with read-only access, path validation, and no generic shell.17-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that acts as a governance proxy for AI agents, evaluating each tool call against policies before execution, enabling secure and controlled access to systems like Slack, GitHub, and AWS without exposing credentials to the agent.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA local MCP server that provides controlled repository access with policy-based file filtering, secret redaction, and audit logging for AI coding agents.-
- AlicenseNot gradedqualityBmaintenanceA secure MCP server that connects ChatGPT/Codex to a local Obsidian Vault, enabling controlled knowledge retrieval, note maintenance, and daily ingest while enforcing path policies, concurrency checks, and audit.MIT