Free through lesson 3

Getting Started with Codex

From installing and signing in to sandboxes and approvals, AGENTS.md and config.toml, MCP and skills, code review, and codex exec in CI. Over 20 lessons you get to the point where you can hand work to OpenAI's Codex with a clear scope and clear permissions. The checks on settings and output are written in Python and run right in your browser.

about 1.5 hours in total (estimate)

Curriculum

The 20 lessons are split into 5 chapters. We recommend going in order from chapter 1, but feel free to dip into whatever catches your interest. Note: Codex commands and flags follow the official documentation as of November 26, 2026. The tool changes quickly, so check codex --help and the official pages on your own machine. Agent responses change every time, so they are not included. The Python examples run right in your browser.

Chapter 1 — Getting Started with Codex (lessons 1–4)

Learn where Codex runs and decide what you're willing to delegate, then install the CLI, sign in, and give it your first instructions. You'll finish by creating a Git checkpoint before handing off work, then reading the diff to decide whether to keep it or roll it back.

Chapter 2 — Delegating Safely (lessons 5–8)

Learn how the sandbox sets how far Codex can reach, and how the approval policy decides whether it asks you before stepping outside, by looking at the two together. You'll finish by building a Python table that tells you, action by action, whether Codex goes ahead, asks for approval, or is blocked.

Chapter 3 — Setting Up Instructions and Configuration (lessons 9–12)

Write your working agreements in AGENTS.md, and use config.toml and profiles to decide how Codex behaves. You'll finish by reproducing in Python which AGENTS.md files get read, and in what order.

Chapter 4 — Extending What Codex Can Do (lessons 13–16)

Connect outside tools with MCP, reuse fixed procedures with skills, and hand off reviews and cloud workspaces too. You'll finish by running a task in a cloud environment and pulling the resulting diff back to your machine.

Chapter 5 — Building Codex into Automation (lessons 17–20)

Run Codex without a conversation using codex exec, and check its --json logs and --output-schema results with your own tools. You'll finish by running Codex on every pull request with the GitHub Action, handing CI work to it while keeping keys and permissions tight.

Once you finish all 20 lessons, firm up the tool-independent basics of delegating in Hands-On AI Coding for Beginners, go deeper on CI in GitHub Actions Fundamentals, or learn to write the tests that hold delegated code in place in Software Testing Techniques for Beginners. Membership unlocks every course.