DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep .env and key files out of ChatGPT reviews with Codex with ChatGPT

Use the default sensitive-file rules plus your own .c2cignore patterns to protect secrets.

Short answer: Confirm the default rules: .env*, keys, SSH, and credentials are denied, and .env.example is allowed; then add your own patterns for other sensitive files to .c2cignore in the workspace root; run c2c status to confirm the bridge is running for this workspace. All steps.

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

  1. Confirm the default rules: .env*, keys, SSH, and credentials are denied, and .env.example is allowed.
  2. Add your own patterns for other sensitive files to .c2cignore in the workspace root.
  3. Run c2c status to confirm the bridge is running for this workspace.
  4. Run c2c doctor to check the setup. (inferred, check the README)
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer