Home › Codex tutorial for beginners
Codex tutorial for beginners
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
- Codex is included in ChatGPT plans, so you sign in with your ChatGPT account.
- 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.
- On Windows, run the PowerShell installer from the Codex CLI page.
- Open a project folder and run codex.
- The first time, choose Sign in with ChatGPT (an API key also works, with some features missing).
Step by step
- Install Codex CLI with one of the commands in Sign up and log in.
- cd into a project folder and run codex.
- Sign in with ChatGPT.
- Ask it to explain the project.
- Then ask for one small, focused change and review it before you keep it.
Try it: examples
- First prompt
Tell me about this project
- Small change
Add input validation to the signup form so an empty email shows an error. Explain what you changed.
Good to know
- Make a Git checkpoint before and after each task so you can undo changes (OpenAI's own advice).
- You choose the model, reasoning effort and permissions for each task.
- codex exec runs it from scripts and CI.
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.