The Decoder / One term

What is OpenAI Codex?

Codex is OpenAI's coding agent: it reads the files in a folder, writes and edits code, runs it and reviews it. It is included on every ChatGPT plan, free included, and runs in the app, a terminal, an editor or the cloud.

By Mstimaj Numbers checked 6 November 2026 Updated 6 November 2026 Level Start Here Tool Codex

Sign in to save your place and mark this done. Free, no card.

A dark terminal window on a desk with a folder icon beside it and a short line of text being typed

Codex is the part of ChatGPT that does work on files instead of answering in chat. You point it at a folder, describe a task, and it reads, edits, runs and checks the code itself. OpenAI's help centre says it is included across ChatGPT plans, including Free and Go, with limits that vary by plan. It has a terminal version you install in one line, an editor extension, and a cloud mode that keeps working while your laptop sleeps.

Key facts

  • $0the plan that includes Codex: it is on Free and Go, with a lower limit
  • 5places it runs: ChatGPT desktop app, the CLI, an IDE extension, the web, and Codex Cloud
  • 1line to install the terminal version: npm install -g @openai/codex
  • 133,000stars on the open-source CLI repository, licensed Apache 2.0
  • help.openai.com, Using Codex with your ChatGPT plan (updated 4 November 2026); learn.chatgpt.com Codex overview; github.com/openai/codex README and repository data; chatgpt.com/pricing; all read 6 November 2026

Is Codex the same as ChatGPT?

Same account, same company, different job. ChatGPT answers you. Codex does things: it opens the folder you give it, reads what is there, changes files, runs the program, reads the errors and tries again. In the desktop app it sits behind the Work tab, and the help centre’s own wording is that Codex is OpenAI’s coding agent that helps you write, review, and ship code. If you have read the entry on what an AI agent is, Codex is that idea applied to code, with your files as the thing it is allowed to touch.

Where Codex runs and who gets it
Surface What it is Plans
ChatGPT desktop app Codex mode behind the Work tab All, limited on Free and Go
Codex CLI The terminal version, open source All, limited on Free and Go
Codex IDE extension Inside VS Code and most VS Code forks All, limited on Free and Go
Codex web In the browser at chatgpt.com All, limited on Free and Go
Codex Cloud Tasks run on OpenAI's computers Plus, Pro, Business, Enterprise, Edu

Do I have to pay for it?

No. As of this check, OpenAI’s help centre states that Codex is included across ChatGPT plans, including Free and Go, and that usage limits vary by plan. The pricing page describes Free and Go as limited Codex access, Plus as expanded, and Pro as longer Codex sessions. One part is paid only: Codex Cloud, where tasks run on OpenAI’s computers, is for Plus, Pro, Business, Enterprise and Education accounts, not Free or Go. Limits are counted in five-hour and weekly windows, the same shape as the other tools, and you can see where you stand with /status inside the CLI.

Monthly price of each plan that includes Codex MONTHLY PRICE OF EACH PLAN THAT INCLUDES CODEX Free (limited) $0 a month Go (limited) $8 a month Plus (expanded) $20 a month Pro (longer sessions) $100 a month
Every bar includes Codex. The height buys a higher usage limit, and from Plus up, the cloud mode.

How do I install the terminal version?

One line, then sign in. On any system with Node installed: npm install -g @openai/codex. On a Mac with Homebrew: brew install --cask codex. Then type codex in a folder you want it to work in, choose Sign in with ChatGPT, and your ChatGPT plan carries over. The CLI itself is open source under the Apache 2.0 licence and the repository has over 133,000 stars, which is one way of saying a lot of people run it. If you have never opened a terminal, the entry on what a terminal is comes first.

Codex or Claude Code?

They are the same kind of tool from two companies. Both run in a terminal, both read a folder, both edit and run code. Claude Code needs a paid Claude plan; Codex is included on ChatGPT’s free plan with a cap. Codex has the cloud mode; Claude Code has the deeper permission system and a longer history of the terminal workflow. If you already pay for one of the two chat apps, start with the agent that comes with it. The full comparison, including Cursor, is its own entry below.

Ask what did not make sense

Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.

Comments are read before they appear.

The newsletter

Get the next term.

One email when something goes up. The argument, the film and the term, nothing else. One click to leave.

Have a question now? Ask Mstimaj, she knows the archive.