Start Here
Codex CLI is a coding agent you run from a terminal. You give it a task in a working directory. The runtime can give the model access to tools for reading files, running commands, and editing code, subject to the permissions in effect. Official Codex CLI guide · Agent approvals and security
This handbook follows the public CLI harness from a user request to a model call, a tool action, and the next decision. The User Guide explains what you can do with the CLI. The Concepts Course uses pinned code and tests to explain how those actions work. Public Codex source
Choose a reading path
Section titled “Choose a reading path”| I want to… | Start with | Then read |
|---|---|---|
| Run the CLI on a small task | Your First Session | Project Instructions, then Configuration and Skills |
| Understand the implementation | Architecture | The Concepts Course |
| Check a claim or plan an experiment | Research Lab | Source Map |
| Find a file, fixture, or paper | Source Map | Resources |
Use the same exercise throughout
Section titled “Use the same exercise throughout”Create the scratch repository once. First check the CSV answer by hand, then see how adding a project instruction or skill changes the way you ask for it. The MCP guide returns the same validation rule as a tool result, so you can test that connection separately.
For an offline route, start with the architecture, read the tool fixture in One Turn, One Tool Call, and run the Research Lab exercise with Python 3. The source walkthroughs are pinned to a release. The CLI guides say which commands were executed and which outcomes are expected.