{
 "schema_version": 1,
 "generated": "2026-10-29",
 "id": "openai-codex--install-codex-cli-and-sign-in-with-chatgpt",
 "repo": "openai/codex",
 "repo_url": "https://github.com/openai/codex",
 "repo_slug": "openai-codex",
 "title": "Install Codex CLI and run it on your repo with your ChatGPT plan",
 "page_title": "How to install Codex CLI and run it on your repo with your ChatGPT plan with Codex",
 "summary": "Install the Codex CLI, sign in with the ChatGPT plan you already pay for, and start it inside a project.",
 "who": "A developer with a ChatGPT subscription who wants a terminal coding agent without setting up API billing.",
 "problem": "Paying separately for API tokens to try a coding agent is a hurdle when you already have a ChatGPT plan.",
 "outcome": "Codex running in your project folder, signed in with ChatGPT, ready to take a task.",
 "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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "codex"
 ],
 "difficulty": "Beginner",
 "time": "10 minutes",
 "basis": "readme",
 "caveat": "Using an API key instead of a ChatGPT plan needs the additional setup in the Codex auth docs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The quickstart pipes install.sh into your shell; use the npm or Homebrew install if you would rather not run a remote script."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openai-codex/install-codex-cli-and-sign-in-with-chatgpt/",
 "md": "https://dedupedai.com/use-cases/openai-codex/install-codex-cli-and-sign-in-with-chatgpt/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/openai-codex--install-codex-cli-and-sign-in-with-chatgpt.json",
 "api_version": "v1"
}
