# Codex with ChatGPT: Connect Your ChatGPT Web Subscription as the Planning Brain for Codex

> Source: <https://dev.to/terminalchai/codex-with-chatgpt-connect-your-chatgpt-web-subscription-as-the-planning-brain-for-codex-5e6>
> Published: 2026-09-16 20:57:54+00:00

Autonomous coding agents (such as OpenAI Codex and Claude Code) have revolutionized local software development. However, running high-reasoning models across entire codebases to draft architectural plans, design specifications, and review multi-file pull requests consumes millions of expensive API tokens. Paradoxically, many engineers pay for flat-rate monthly subscriptions (like ChatGPT Plus or Pro) whose generous web quotas sit underutilized while their command-line API bills mount.

**Codex with ChatGPT** is an open-source bridge developed by XiaoDuoYa. Operating on the core philosophy **"ChatGPT thinks. Codex works."**, it links the official ChatGPT web interface to your local Codex terminal session through a secure, read-only Model Context Protocol (MCP) bridge.

`Codex with ChatGPT` separates software development into two distinct layers:

Rather than copying and pasting files manually or routing code through untrusted third-party reverse proxies, ChatGPT reads only the specific lines of code it requires via an OAuth 2.1-authenticated local MCP bridge.

By offloading high-context architectural reasoning and code reviews to the ChatGPT web client, developers eliminate repetitive token burn on planning tasks. Codex only uses tokens when executing code edits and terminal commands.

Security is enforced by design:

`read_file`, `git_diff`, `test_status`, etc.). No write, delete, or shell execution tools exist on the bridge server, eliminating prompt injection risks.`.env*`, private keys, and credential stores are blocked by default.
Once Codex finishes modifying files and running test suites, ChatGPT does not rely on text summaries. Instead, it inspects the actual `git diff` and test execution records through the MCP data plane to verify correctness before signing off.

The project includes a streamlined Codex skill that automates full environment setup:

```
# Instruct your Codex agent directly:
Please install and configure "Codex with ChatGPT" for me, fully automatically.
```

Codex checks system prerequisites, compiles the local bridge, provisions the tunnel, and establishes the pairing connection without manual configuration.

By combining the conversational reasoning depth of ChatGPT web with the local execution power of Codex, `Codex with ChatGPT` offers an economical and disciplined approach to agentic development.

*Want to connect your web subscription to Codex? Check out the [Codex with ChatGPT GitHub Repository](https://github.com/XiaoDuoYa/codex-with-chatgpt).*
