Credentials. You log in to ChatGPT yourself, and the pairing code is the only secret that touches a browser, so keep it private.
Who it is forA developer on a ChatGPT Plus or Pro plan whose Codex token budget runs low because planning and review use up so much of it.
The problemPlanning and review consume scarce Codex tokens, while the ChatGPT web quota you already pay for sits idle.
The outcomeChatGPT plans the change using read-only access to your current workspace, and Codex carries out the edits.
What you need first
- Node.js 20 or newer
- git
- cloudflared (the Codex Skill installs it for you)
- A ChatGPT Plus or Pro subscription for the web app
- Codex, with the ability to install a Codex Skill
Steps
- Install Node.js 20 or newer, git, and cloudflared.
git clone https://github.com/XiaoDuoYa/codex-with-chatgpt ~/codex-with-chatgpt(inferred, check the README)- In the checkout folder, run
corepack pnpm installand thencorepack pnpm build. - Copy skill/SKILL.md into the skills folder under your Codex home, in a Codex with ChatGPT subfolder, and set the checkout path inside the file.
- Run
c2c setup, log in to ChatGPT in the built-in browser, and enter the pairing code. - In Codex, ask: "Use Codex with ChatGPT to implement <task>."
Prompt for your agent
Install the repo XiaoDuoYa/codex-with-chatgpt, run corepack pnpm install and corepack pnpm build, then run c2c setup and pair it with ChatGPT. Use the Codex Skill to have ChatGPT plan <task>, and report the final checklist to confirm the file read test passed.
Caveat. The README calls this an unofficial community project that is not affiliated with or endorsed by OpenAI, and it describes itself as V1.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for XiaoDuoYa/codex-with-chatgpt and "Plan a coding task in ChatGPT before Codex edits"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer