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

How to install Codex CLI and run it on your repo with your ChatGPT plan with Codex

Install the Codex CLI, sign in with the ChatGPT plan you already pay for, and start it inside a project.

Short answer: On macOS or Linux run curl -fsSL https://chatgpt.com/codex/install.sh | sh; then Or install with npm: npm install -g @openai/codex, or with Homebrew: brew install --cask codex; cd into your project and run codex. All steps.

Remote script. The quickstart pipes install.sh into your shell; use the npm or Homebrew install if you would rather not run a remote script.

Who it is forA developer with a ChatGPT subscription who wants a terminal coding agent without setting up API billing.

The problemPaying separately for API tokens to try a coding agent is a hurdle when you already have a ChatGPT plan.

The outcomeCodex running in your project folder, signed in with ChatGPT, ready to take a task.

What you need first

  • macOS, Linux or Windows
  • A ChatGPT Plus, Pro, Business, Edu or Enterprise plan, or an OpenAI API key (extra setup)
  • npm or Homebrew if you do not use the install script

Steps

  1. On macOS or Linux run curl -fsSL https://chatgpt.com/codex/install.sh | sh
  2. Or install with npm: npm install -g @openai/codex, or with Homebrew: brew install --cask codex
  3. cd into your project and run codex
  4. Choose Sign in with ChatGPT so usage counts against your Plus, Pro, Business, Edu or Enterprise plan
  5. Give it a first task, such as explaining the repo layout or fixing one failing test, and review every change it proposes

Prompt for your agent

Install openai/codex with `npm install -g @openai/codex`, run `codex` in <project folder>, sign in with ChatGPT, then ask it to <task>. Show me the diff before anything is committed.

Caveat. Using an API key instead of a ChatGPT plan needs the additional setup in the Codex auth docs.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for openai/codex and "Install Codex CLI and run it on your repo with your ChatGPT plan"

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