AGENT ✦ CAPABILITIES
Feed GitHub
02/23Agent
OpenAI

Codex CLI

Home ~/.codex/ ($CODEX_HOME)

8 features · 6 models · 11 sources · verified 2026-11-26

Instructions

◆Documented currentInstructions
Project (repo)
<repo>/AGENTS.override.md, <repo>/AGENTS.md — walks root→cwd; override file wins; first non-empty used; 1 file/dir; 32 KiB default cap (project_doc_max_bytes). Fallbacks via project_doc_fallback_filenames
Global (user)
~/.codex/AGENTS.override.md (takes precedence), ~/.codex/AGENTS.md — global user-level instructions

Config

◆Documented currentSettings
Project (repo)
.codex/config.toml — walks root→cwd; closest wins (trusted projects only). System: /etc/codex/config.toml. Enterprise enforced: /etc/codex/requirements.toml (Unix) · %ProgramData%\OpenAI\Codex\requirements.toml (Windows) — cannot be overridden. --strict-config errors on unrecognized fields
Global (user)
~/.codex/config.toml; ~/.codex/<profile>.config.toml — named profile selected via --profile flag. Enterprise managed defaults: /etc/codex/managed_config.toml (Unix) · ~/.codex/managed_config.toml (Windows/non-Unix) · macOS MDM com.openai.codex domain (config_toml_base64, requirements_toml_base64 keys; highest precedence)

Skills

◆Documented currentSkills
Project (repo)
.agents/skills/*/SKILL.md — walks CWD → parent → repo root; /skills or $ to invoke. Toggle via [[skills.config]] (path, enabled) in config.toml. Admin: /etc/codex/skills/; System: bundled
Global (user)
~/.agents/skills/*/SKILL.md — user-level

Subagents

◆Documented currentSubagents
Project (repo)
.codex/agents/*.toml; also agents.<name>.config_file/agents.<name>.description in config.toml. Global settings under [agents]: enabled (default true), max_concurrent_threads_per_session (legacy alias max_threads), default_subagent_model, default_subagent_reasoning_effort, interrupt_message (default true)
Global (user)
~/.codex/agents/*.toml — required fields name, description, developer_instructions

Rules

◆Documented currentRules
Project (repo)
.codex/rules/ — loads only when the project is trusted
Global (user)
~/.codex/rules/default.rules — Starlark prefix_rule() syntax (pattern, decision [allow/prompt/forbidden], justification, match/not_match); written by TUI allow-command; validate via codex execpolicy check

Hooks

◆Documented currentHooks
Project (repo)
.codex/hooks.json; or inline [hooks] in .codex/config.toml. --dangerously-bypass-hook-trust runs hooks without persisted trust
Global (user)
~/.codex/hooks.json — or inline [hooks] table in config.toml (merges both if present in same layer, with a startup warning); gated by features.hooks (deprecated alias codex_hooks). Events: SessionStart, SessionEnd (main thread only), PreToolUse, PermissionRequest, PostToolUse, UserPromptSubmit, PreModelRequest/PostModelRequest (fire per attempt, including retries), PreCompact/PostCompact, SubagentStart/SubagentStop, Interrupt (main thread only), Stop

MCP

◆Documented currentMCP
Project (repo)
[mcp_servers] in .codex/config.toml
Global (user)
[mcp_servers] in ~/.codex/config.toml

Plugins

◆Documented currentPlugins
Project (repo)
.codex-plugin/plugin.json — manifest bundling skills/, .mcp.json, hooks/hooks.json, .app.json, assets/ (not a top-level hooks.json); repo marketplace at .agents/plugins/marketplace.json with plugins under plugins/, or legacy-compatible .claude-plugin/marketplace.json
Global (user)
~/.agents/plugins/marketplace.json — personal plugin marketplace catalog; installed plugins cached at ~/.codex/plugins/cache/$MARKETPLACE_NAME/$PLUGIN_NAME/$VERSION/ (local version for local plugins)
MODModels

Picking a model

Default
none named; when model is unset Codex uses a recommended model for the account (the docs' sample config sets gpt-6.2-sol; gpt-6.2-astra is recommended for demanding work)
Select
--model <id> / -m <id>, codex exec -m <id>, /model, model in ~/.codex/config.toml; effort via model_reasoning_effort (low, medium, high, xhigh, max, ultra, depending on model) or /model → More reasoning
Providers
openai (default), ollama, lmstudio, amazon-bedrock; custom providers under [model_providers.<id>] must serve the Responses API
ID format
bare model ID; the provider is set separately with model_provider
ModelIDAliases
GPT-6.2 Astra◆Documented current gpt-6.2-astra —
GPT-6.2 Sol◆Documented current gpt-6.2-sol —
GPT-6 Astra◆Documented current gpt-6-astra —
GPT-6.1 Sol◆Documented current gpt-6.1-sol —
GPT-6.1 Terra◆Documented current gpt-6.1-terra —
GPT-6 Luna◆Documented current gpt-6-luna —