Fanch-hui/codex-bridge
ChatGPT的MCP 桥接工具,赋予网页版ChatGPT本地读写能力,并将ChatGPT连接至本机codex、agy、dsh、opencode,作为大脑调用本机agent。Connect ChatGPT to local projects and coding agents via MCP. Run Codex, OpenCode, DeepSeek Harness & Antigravity with approvals, live output and session control.
What it solves
Codex Bridge tackles a fragmentation problem: people who use AI coding assistants often juggle several chat services (ChatGPT, Qwen, Gemini, etc.) and several local coding agents (Codex, Claude Code, OpenCode, etc.) on the same machine. Each has its own login, task flow, and approval mechanism. Codex Bridge unifies these into one desktop app and background service, letting you authorize local project directories once and then send tasks from any connected chat client to any connected agent, with consistent approvals and session history stored locally.
How it works
The app runs a local service that exposes MCP (Model Context Protocol) endpoints. You connect chat clients through different channels: ChatGPT via a secure tunnel using OpenAI MCP, Qwen via localhost HTTP MCP, Gemini via a local MCP command or a cloud MCP (ChatGPT Sites or ngrok), and the built-in workbench via local IPC. You register local project folders to grant access. When a chat client sends a task, the Bridge service checks project permissions and approval rules, then forwards the task to the chosen agent (Codex, OpenCode, DeepSeek Harness, Antigravity, Pi, or Qoder) over that agent's native protocol. The service handles task execution, live output streaming, approval requests, structured questions, and session persistence using SQLite. The desktop UI, built with Swift for all three platforms, shows the workbench with task cards, approvals, and setting pages. A Direct Workspace mode allows plain file read/write and command execution without needing an agent.
Key connection methods:
- ChatGPT / OpenAI Dot: via Secure MCP Tunnel (requires Plus or team subscription)
- Qwen Studio: localhost HTTP MCP
- Gemini: local MCP for desktop app, or cloud MCP for web version
- Other agents: install and connect via the app's one-click configuration or manual API setup
Who it's for
Individual developers and power users who self-host their own coding-assistant setup and want a unified control surface. It suits people who already use ChatGPT, Qwen Studio, or Gemini as a chat front-end and also run local coding agents like Codex or OpenCode, and want to keep project data and permissions local rather than in the cloud. Requires some technical comfort to install and configure clients and agents, but the app handles discovery and a lot of the wiring automatically.
Highlights
- Single desktop app for macOS, Windows, and Linux with a shared Swift core and per-platform web views
- Connect multiple chat clients (ChatGPT, Qwen, Gemini, OpenAI Dot) to multiple local agents (Codex, OpenCode, DeepSeek Harness, Antigravity, Pi, Qoder)
- Local project directory authorization and approval cards for each operation — you decide whether to allow a specific action
- Direct Workspace mode for simple file read/write and command execution without needing a full agent
- Task concurrency limits: one active write task per project, plus per-agent caps (e.g., up to 4 concurrent Codex sessions)
- Keys stored in system credential store, and the app is Apache-2.0 licensed (with a non-commercial component for the built-in ZCode proxy)
Related
- Project
- Project
- Project
- Project