Home › Codex tutorial for beginners

Codex tutorial for beginners

Last checked

The quickest way to see what Codex does is to point it at a project you know and ask it to explain the code before changing anything.

Sign up and log in

  1. Codex is included in ChatGPT plans, so you sign in with your ChatGPT account.
  2. For the terminal, install Codex CLI: curl -fsSL https://chatgpt.com/codex/install.sh | sh (macOS/Linux), or npm install -g @openai/codex, or brew install --cask codex.
  3. On Windows, run the PowerShell installer from the Codex CLI page.
  4. Open a project folder and run codex.
  5. The first time, choose Sign in with ChatGPT (an API key also works, with some features missing).

Step by step

  1. Install Codex CLI with one of the commands in Sign up and log in.
  2. cd into a project folder and run codex.
  3. Sign in with ChatGPT.
  4. Ask it to explain the project.
  5. Then ask for one small, focused change and review it before you keep it.

Try it: examples

Good to know

Prices (US$)

On openai.com/codex: Plus US$20 (Codex usage for focused sessions each week), Pro US$100 (higher limits), Business US$20 per seat (2+ seats, billed annually).

Sources (official pages, read Nov 8, 2026)

Written from OpenAI's official documentation and product pages; we don't run hands-on tests. Features and limits vary by plan and country.

Report an error on this page