Codex CLI

9 cheat sheets.

9/9

Codex Tips & AGENTS.md

Advanced Codex CLI workflows — AGENTS.md authoring, profiles, experimental hooks, notify callbacks, non-interactive exec scripting, session resume and fork, and codex cloud.

05-25-2026#codex#openai#tips

Codex Sub-Agents & Task Delegation

How Codex CLI supports delegating to child agents — the experimental /agent system, codex exec as a sub-agent pattern, MCP-mediated agent-to-agent calls, isolation boundaries, and orchestration patterns.

05-25-2026#codex#openai#subagents

Codex Slash Commands

Complete reference for every built-in Codex CLI slash command — session control, model switching, sandboxing, MCP management, and TUI utilities.

05-25-2026#codex#openai#slash-commands

Codex MCP Servers

Add and configure Model Context Protocol (MCP) servers in Codex CLI — config.toml [mcp_servers.*] reference, the codex mcp subcommand, per-server tool approval modes, and the /mcp runtime command.

05-25-2026#codex#openai#mcp

codex exec

Complete reference for codex exec — scripted invocation, stdin piping, JSON event streams, output formats, exit codes, timeouts, and automation patterns for CI, git hooks, and shell pipelines.

05-25-2026#codex#openai#exec

Codex Configuration

Complete config.toml reference for Codex CLI — model selection, approval policies, sandbox modes, profiles, MCP server stubs, shell environment, notify hooks, and project trust levels.

05-25-2026#codex#openai#config

Codex CLI Overview

Install and use OpenAI's Codex CLI — the open-source agentic coding tool. Covers authentication, interactive mode, headless exec, ~/.codex/ layout, and AGENTS.md project memory.

05-25-2026#codex#openai#cli

Approvals & Sandboxing

Control what Codex CLI can do — approval policies (untrusted, on-request, never), sandbox modes (read-only, workspace-write, danger-full-access), OS-native sandbox mechanics, and --full-auto.

05-25-2026#codex#openai#sandbox

Codex CLI

OpenAI's open-source agentic coding CLI — installation, config.toml, slash commands, sandboxing, MCP integration, and AGENTS.md workflows.

04-27-2026#codex#openai#cli