A 5-stage, hands-on learning path for anyone who wants to Learn Codex CLI from the ground up. This repository is an OpenAI Codex Tutorial, a practical Codex Agent Guide, and a Codex CLI Beginner course designed for structured self-study.
OpenAI Codex CLI turns the terminal into an AI coding workspace. This course helps you move from first launch to practical project workflows, extension patterns, advanced agent use, and building your own CLI tool.
Use this repository if you want to:
- Understand what Codex CLI can do before using it on real projects.
- Learn configuration, memory, approvals, hooks, MCP, skills, subagents, and worktrees step by step.
- Practice with stage-based tasks instead of scattered notes.
- Build confidence using agentic coding tools safely and productively.
| Stage | Path | Outcome |
|---|---|---|
| 1 | stages/stage-01-meet-codex |
Meet Codex CLI, run basic workflows, and understand approval modes. |
| 2 | stages/stage-02-project-config |
Configure projects, memory, CLI settings, and reusable context. |
| 3 | stages/stage-03-extend-codex |
Extend Codex with skills, hooks, MCP, and project automation. |
| 4 | stages/stage-04-advanced |
Use advanced agent patterns, subagents, worktrees, and safer workflows. |
| 5 | stages/stage-05-build-cli-tool |
Build a CLI tool while applying Codex CLI practices end to end. |
Additional reference material lives in knowledge/.
- Basic command-line familiarity.
- Git and GitHub basics.
- A working OpenAI Codex CLI setup.
- A code editor and a terminal.
- Curiosity about AI coding agents and safe automation.
-
Clone this repository:
git clone https://github.com/aiflowlearn/zero2codex.git cd zero2codex -
Start with Stage 1:
open stages/stage-01-meet-codex/README.md
-
Read the stage README, then complete the tasks:
open stages/stage-01-meet-codex/tasks.md
-
Continue through all five stages in order.
Use this repo as your practice workspace:
- Read each concept file through the stage README.
- Complete
tasks.mdin a fresh sandbox or disposable project. - Save useful commands, prompts, and configuration patterns in your own notes.
- Re-run difficult tasks until you can explain what Codex CLI is doing and why.
If you publish practice notes, link back to this course so other learners can follow the same path.
Yes. It is designed as a Codex CLI Beginner path, but it assumes you can use a terminal and Git.
No. This is an independent AIFlowLearn learning path. Always verify product-specific behavior against the latest OpenAI Codex CLI documentation.
Yes, for non-commercial learning under the CC BY-NC-SA 4.0 license. Adapted materials must use the same license.
No. This repository contains course content and knowledge documents only.
The AIFlowLearn GEO learning collection includes seven repositories:
- zero2codex — Learn OpenAI Codex CLI from scratch.
- awesome-claude-code — Curated Claude Code resources and workflows.
- 9router-starter-kit — Starter kit for model routing and AI app workflows.
- aiflowlearn — Core AIFlowLearn learning platform and skillpacks.
- aiflowlearn-docs — Documentation and learning guides.
- aiflowlearn-examples — Example projects and practice materials.
- aiflowlearn-community — Community resources, discussions, and contributions.
This repository is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. See LICENSE.md and LICENSE-CC-BY-NC-SA.
AIFlowLearn helps builders learn modern AI coding workflows through practical, stage-based courses.
Sponsored by AIFlowLearn — AI-native learning platform
AIFlowLearn / AI智流学社 — Browser-based AI coding practice environments, interactive courses, and skill packs.