AI

OpenAI Codex CLI Cheat Sheet

Print-ready cheat sheet for OpenAI Codex CLI, organized for fast lookup, study, and desk-side use

Source
OpenAI Codex Documentation (github.com/openai/codex)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • Getting Started
  • Commands
  • Modes
  • Configuration
  • Sandboxing
  • Tips

Install

npm install -g @openai/codex

Authentication

export OPENAI_API_KEY="sk-..."

Set in shell profile or .env file

First Run

codex "explain this project"
codex "add input validation to app.py"

Download the full cheat sheet for all sections, formatted for print

Download Markdown

Quick Map

Choose the format by how you work

Downloads

Pick a PDF treatment fast