How to install Codex: pick a door, then sign in once
By Christophe Paka · Facts checked on 23 October 2026
You want to try Codex. The first guide you find opens with a terminal command, and you have never opened a terminal. One reader put it simply: most people are not programmers and do not know the command line.
So you stall before your first task, or you install three things to be safe. Learning how to install Codex is simpler than that. The figure below shows three doors, the terminal, the editor and the browser, and every one of them ends at the same ChatGPT sign in.

Use this diagram on your site
Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.
How to read this figure
See the three doors at the top. Each top box is one way in: your terminal, your editor and your browser. Not drawn is the easiest door of all, the ChatGPT desktop app: download it, sign in, pick a folder and choose Codex. It needs no terminal.
Door one: your terminal. The terminal is the text window where you type commands. Install the CLI, the command line tool, in one of three ways: the one line install script,
npm install -g @openai/codex, orbrew install --cask codex. npm and Homebrew are installers that developers already use; if you have neither, take the script. Then typecodexto start.Door two: your editor. The box lists five editors under the extension. The book's install table splits them. VS Code, Cursor and Windsurf take the marketplace extension with the id
openai.chatgpt. Xcode and JetBrains use the editor's own Codex integration, so follow that editor's setup.Door three: your browser. There is nothing to install. The page
chatgpt.com/codexis Codex cloud, where tasks run on OpenAI's computers while you do other work.Follow the arrows to the sign in. All three doors end at Sign in with ChatGPT, a browser flow you do once per machine. The box says any plan, Free included: the sign in accepts any plan, but what you reach differs by door (see the questions below). The result is one signed in agent, the same account on every surface.
Read the strip at the bottom. An API key is a secret code that bills you per use instead of through your plan. The strip shows that route: the command passes your key to
codex login. It suits scripts, but gives no cloud features. On a machine with no browser,codex login --device-authshows a one time code to enter elsewhere.
Key takeaways
- Pick one door to start: the app if you avoid the terminal, the CLI and the extension if you live there.
- Sign in with ChatGPT for daily work, and keep
~/.codex/auth.jsonas private as a password. - Type /status after you sign in to see your model, what Codex may touch and your usage left.
Try this: install the CLI and sign in
You need a ChatGPT account, a project folder and a plan that includes the CLI, such as Plus. No terminal? Use the desktop app instead.
- Install the CLI. On macOS or Linux, run the install script, or use
npm install -g @openai/codex. - Open a fresh terminal and run
codex doctor. Expect a report on the install, settings, sign in and git, with no problems flagged. - Move into your project folder with
cd, then typecodex. Choose Sign in with ChatGPT and finish in the browser. - In a second terminal, run
codex login status. It names the active sign in method: ChatGPT. - In the session, type
/statusto see the model, what Codex may touch and how much usage is left.
Expected result: Codex runs in your project folder, signed in with ChatGPT, and you know which model and plan it uses. If the terminal says the command is not found, open a new terminal and retry. Next, follow the life of one session.
Questions readers ask
Do I need a paid plan to try Codex?
No, not in the app. The sign in accepts any plan, Free included. In the ChatGPT desktop app, Free and Go reach Codex, though rollout means some accounts get it later. So you can try Codex free there. The CLI and the editor extension need a plan that includes them, such as Plus, or an API key.
Should I sign in with ChatGPT or an API key?
Sign in with ChatGPT for daily work: your plan already pays, and it works on every surface, Codex cloud included. The API key route bills you per token, a small chunk of text, and has no cloud features. Keep it for scripts. On Plus and Pro, if a heavy week empties your plan, you can buy credits: prepaid units of usage whose price depends on your plan.
Why use the ChatGPT app over the CLI?
If you do not write code, take the app: it needs no terminal at all. If you write code daily, install the CLI and the extension, because the CLI shows each question Codex asks most clearly while you learn. Every door shares one plan.
Does the door I pick change how fast my usage drains?
No. Every door shares one plan, so the terminal, the editor, the app and the cloud all draw on the same usage. After you sign in, type /status to see your model and your usage left. With no terminal, read the usage dashboard instead.
Sources: Authentication (OpenAI Codex docs); Codex CLI guide (OpenAI); IDE extension guide (OpenAI).
This figure is from OpenAI Codex Made Crystal Clear, chapter 3.
The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.
Get the book


