Credentials. Your own .c2cignore patterns are only as complete as the ones you write, so review them before sharing any repo with ChatGPT.
Who it is forA developer working in a repo with .env files, keys, or credentials who wants ChatGPT reviews without exposing those files.
The problemReviews could expose secrets if the bridge can read them, and the default rules may not cover every file type your project uses.
The outcomeSensitive files stay out of ChatGPT's reach, and your own project-specific patterns are added to the rules.
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
- Confirm the default rules:
.env*, keys, SSH, and credentials are denied, and.env.exampleis allowed. - Add your own patterns for other sensitive files to
.c2cignorein the workspace root. - Run
c2c statusto confirm the bridge is running for this workspace. - Run
c2c doctorto check the setup. (inferred, check the README) - Ask Codex to use Codex with ChatGPT to review a file, and confirm that no ignored file is read.
Prompt for your agent
In the workspace at <workspace path>, add the pattern <pattern> to .c2cignore, then run c2c status and c2c doctor and report their output. Confirm that the sensitive-file rules still deny .env files.
Caveat. The README lists the default denied file types but does not describe the exact .c2cignore syntax, so check the docs before you rely on a complex pattern.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for XiaoDuoYa/codex-with-chatgpt and "Keep .env and key files out of ChatGPT reviews"
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