XiaoDuoYa/codex-with-chatgpt
Read-only MCP bridge for ChatGPT planning and review, with Codex executing locally
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
C2C separates browser-mediated coordination from workspace access. The Codex Skill exchanges compact [C2C] state messages with ChatGPT Web from INIT through PLAN, EXECUTED, REVIEW, and DONE. ChatGPT retrieves evidence through stateless Streamable HTTP MCP rather than receiving diffs or file bodies in those messages. Codex retains local editing, shell, Git, and test execution.
The TypeScript bridge binds HTTP to loopback and exposes the authenticated connector through a Cloudflare tunnel. The Node.js package ships the c2c CLI and depends on @modelcontextprotocol/sdk, commander, express, ignore, and zod. The source separates bridge lifecycle, OAuth and pairing, workspace access, execution records, and tunnel management; a TunnelProvider abstraction sits behind the Cloudflare Quick and Named Tunnel options.
Key Capabilities & Differentiators
The read-only MCP surface includes directory listing, file and image reads, workspace search, Git status and diff, and recorded execution summaries and output. ChatGPT can inspect a change and its available test records instead of relying on Codex’s conversational summary. It does not rerun the tests through MCP, so the review is only as complete as the evidence available in the workspace and execution records.
OAuth 2.1 uses PKCE S256, dynamic client registration, and refresh-token rotation. Tokens are workspace-bound; one-time pairing codes expire after five minutes and permit at most five attempts. Canonical realpath checks constrain file access, and .c2cignore supplements the default sensitive-file rules. Generated media takes a separate local path: c2c asset import checks file signatures and sizes, rejects active SVG content, and does not overwrite existing files.
Trade-offs & Limitations
Compared with using Codex directly, C2C adds a separate planning and review pass that can read actual diffs and test records without gaining execution privileges. The cost is more operational state: browser coordination, ChatGPT connector availability, pairing, and tunnel lifecycle. A Quick Tunnel can trigger connector reconfiguration after a restart. A Named Tunnel reduces that churn but adds Cloudflare account and domain administration. The integration does not establish a measured reduction in Codex usage.
Read-only protects workspace integrity at the MCP layer, not confidentiality. The bridge does not require a bulk repository upload, but content returned by tools still reaches ChatGPT; secrets in otherwise permitted files or execution output should not be assumed safe. Review the workspace scope and exclusion rules before pairing. The MIT license applies to the bridge, not to the ChatGPT or Cloudflare services, and the integration does not install a Web GPT or add a model-catalog entry.
Hardware & Deployment Guide
Build the checkout with pnpm install and pnpm build on Node.js 20 or newer with Git available, then install skill/SKILL.md in the Codex skills directory and run c2c setup. The default public connector path needs cloudflared and a ChatGPT sign-in. A stable Named Tunnel additionally needs a Cloudflare account and a domain already on Cloudflare. The bridge is self-hosted, but this is not an offline workflow or a local inference stack; no model API key is required for the documented integration.
The CLI provides status, doctor, pair, unpair, logs, and stop for local operation. Set C2C_TUNNEL_PROTOCOL=http2 and restart if the network blocks QUIC. Release v0.1.3 improved temporary-address recovery and pairing-code timing. v0.1.4 delays the first Quick Tunnel health probe to avoid negative DNS caching on fresh hostnames, corrects search truncation reporting, and adds agent attribution to execution records.
Codex users who can expose a scoped workspace through an authenticated connector and want ChatGPT Web to review actual diffs and test records without executing commands.
Source and logs must stay offline or on-device, public tunnel endpoints are prohibited, or direct Codex review already meets your needs.
Quick Start & Installation
pnpm install pnpm build # -> dist/, exposes the `c2c` bin pnpm test # vitest: 150 tests (path security, OAuth, pairing, MCP e2e) c2c setup # bridge + tunnel + pairing code, all in one c2c sandbox-allow # whitelist the settings dir in Codex (macOS + Windows) c2c status / doctor / pair / unpair / logs / stop
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| codex-with-chatgpt ★ | 7.8k | +28 | TypeScript | MIT | Read-only MCP bridge for ChatGPT planning and review, with Codex executing local |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +801 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.9k | +324 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/XiaoDuoYa/codex-with-chatgpt.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about codex-with-chatgpt
How does ChatGPT participate without taking over local execution?
Do I need a GPU or a separate server?
Can a company self-host it for commercial use?
When is this preferable to using Codex directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy