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
- On macOS or Linux run
curl -fsSL https://chatgpt.com/codex/install.sh | sh - Or install with npm:
npm install -g @openai/codex, or with Homebrew:brew install --cask codex - cd into your project and run
codex - Choose Sign in with ChatGPT so usage counts against your Plus, Pro, Business, Edu or Enterprise plan
- 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
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