Guide library
$ codex
Codex CLI Tutorials and Advanced Guides
Start with installation, authentication, and a first task, then build a systematic understanding of config.toml, AGENTS.md, sandbox permissions, MCP, Skills, non-interactive automation, and troubleshooting.
LEARNING PATH
Follow the sequence or start from a problem
Every topic states its scope, operating path, evidence sources, and verification gates. Follow the sequence or enter at the problem you need to solve.
01Codex CLI installation and CodeNodex one-click configurationInstall Codex CLI and automate configuration via CodeNodex CLI10 min02Codex CLI first task: from reading repository to verifying changesComplete your first verifiable code task with the Codex CLI9 min03Codex CLI Commands and Session Management ReferenceQuery Codex CLI common commands, parameters and session recovery methods9 min04Codex CLI Authentication: ChatGPT Login, API Key and Compatible GatewayConfigure or troubleshoot Codex CLI login, API keys and third-party compatible endpoints10 min05Codex config.toml In-Depth Configuration GuideFind, edit, and verify the Codex CLI config.toml configuration11 min06Codex CLI Models and Providers: Configuration ExplainedSelect a model and configure an OpenAI compatible provider for the Codex CLI11 min07AGENTS.md In-Depth Guide: Making Codex Understand Your Repository RulesCreate and maintain AGENTS.md for Codex CLI11 min08Codex CLI Prompting and Complex Task DecompositionImprove the Codex CLI prompt and split complex coding tasks11 min09Codex CLI Sandbox, Approvals and Permission SecuritySecure configuration of Codex CLI sandbox, network and command approval11 min10Codex CLI MCP Setup and Security GuideConfigure and troubleshoot MCP servers for Codex CLI11 min11Creating, Organizing and Reusing Codex SkillsCreate and maintain reusable skills for Codex11 min12Codex non-interactive mode and CI automation guideSafely run the Codex CLI from a script or CI12 min13Use Codex CLI for code review and test verificationUse the Codex CLI to review code and verify test results11 min14Codex CLI troubleshooting: installation, authentication, configuration and connectionSolve Codex CLI command not found, 401, configuration errors, connection and permission issues13 min