Codex CLI: Defaults, Versions & Commands
Codex CLI — published defaults
| Install / update command | curl -fsSL https://chatgpt.com/codex/install.sh | sh |
|---|---|
| Current release (npm latest) | 0.165.0, published 2026-10-27 |
| Default model | GPT-6.1 Sol (gpt-6.1-sol) |
| Default reasoning effort | medium |
| Previous default (until the GPT-6.1 Sol release) | GPT-5.6 Sol |
| Toggle Fast mode | /fast, or persist with service_tier = "fast" plus [features].fast_mode = true |
| Subcommands | codex, codex agents, codex app, codex app-server, codex apply, codex archive, codex cloud, codex completion, codex debug, codex delete, codex doctor, codex exec, codex execpolicy, codex features, codex fork, codex login, codex logout, codex mcp, codex plugin, codex queue, codex remote-control, codex resume, codex review, codex sandbox, codex unarchive, codex update |
| Removed: codex mcp-server | Deprecated 2026-08-24, removed 2026-09-05 — use codex app-server (experimental, not for production) |
| Removed: codex exec --full-auto | Removed in 0.147.0 (2026-08-07) — use codex exec --sandbox workspace-write |
| Minimum version for GPT-6.1 Terra | 0.159.0 or later (Codex with ChatGPT sign-in) |
| Custom model providers | Must expose a Responses-compatible endpoint; wire_api = "chat" is no longer supported |
Every built-in slash command
| /model | Choose the active model (and reasoning effort, when available). (affects cost or usage) |
|---|---|
| /fast | Toggle a Fast service tier when the model catalog exposes one. (affects cost or usage) |
| /status | Display session configuration and token usage. (affects cost or usage) |
| /usage | View account token usage or use a rate-limit reset. (affects cost or usage) |
| /compact | Summarize the visible chat to free tokens. (affects cost or usage) |
| /statusline | Configure TUI status-line fields interactively. (affects cost or usage) |
| /permissions | Set what Codex can do without asking first. |
| /ide | Include open files, current selection, and other IDE context. |
| /keymap | Remap TUI keyboard shortcuts. |
| /vim | Toggle Vim mode for the composer. |
| /setup-default-sandbox | Set up the elevated agent sandbox (Windows only). |
| /agents | Open the agent command center. |
| /subagents | Switch the active subagent thread. |
| /apps | Browse apps (connectors) and insert them into your prompt. |
| /plugins | Browse installed and discoverable plugins. |
| /hooks | View and manage lifecycle hooks. |
| /clear | Clear the terminal and start a fresh chat. |
| /rename | Rename the current chat. |
| /archive | Archive the current session. |
| /delete | Permanently delete the current session. |
| /copy | Copy the latest completed Codex output. |
| /diff | Show the Git diff, including files Git isn't tracking yet. |
| /exit | Exit the CLI (same as /quit). |
| /experimental | Toggle experimental features. |
| /approve | Approve one retry of a recent auto review denial. |
| /memories | Configure memory use and generation. |
| /skills | Browse and use skills. |
| /import | Import Claude Code or Cursor setup, projects, and chats. |
| /feedback | Send logs to the Codex maintainers. |
| /init | Generate an AGENTS.md scaffold in the current directory. |
| /logout | Sign out of Codex. |
| /mcp | List configured Model Context Protocol (MCP) tools. |
| /mention | Attach a file to the chat. |
| /plan | Switch to plan mode and optionally send a prompt. |
| /goal | Set, edit, pause, resume, view, or clear a task goal. |
| /ps | Show background terminals and their recent output. |
| /stop | Stop all background terminals. |
| /fork | Fork the current chat into a new chat. |
| /app | Continue the current session in the ChatGPT desktop app. |
| /side | Start an ephemeral side chat (alias /btw). |
| /raw | Toggle raw scrollback mode. |
| /resume | Resume a saved chat from your session list. |
| /new | Start a new chat inside the same CLI session. |
| /quit | Exit the CLI. |
| /review | Ask Codex to review your working tree. |
| /debug-config | Print config layer and requirements diagnostics. |
| /title | Configure terminal window or tab title fields interactively. |
| /theme | Choose a syntax-highlighting theme. |
| /pets | Choose or hide a terminal pet (alias /pet). |
| /tui | Choose the terminal mode for the next launch. |
| /export | Export the conversation as Markdown. |
| /recap | Generate a summary of the current conversation. |
| /cd | Change the session's working directory. |
| /pwd | Show the working directory (alias /cwd). |
| /worktree | Start or continue a chat in a managed Git worktree. |
| /daemon | Open background server controls. |
| /warnings | View retained warnings and diagnostics. |
Everything here is a default you can override — but it's worth knowing what actually ships before you start, because two of these defaults changed this autumn without anything in a running setup announcing it.
The default model moved
A fresh Codex CLI session now runs GPT-6.1 Sol at medium effort; the previous default was GPT-5.6 Sol. If you never set model in config.toml, your sessions switched with the release that changed the banner. If you did set it, you're still on whatever you pinned — which matters, because several older models have since left Codex for ChatGPT sign-in. The model literally named for Codex has never been the default at any point this site has checked, and it is now deprecated for ChatGPT sign-in.
The version moves weekly
The latest CLI release on npm at this check was 0.165.0; the example banner in OpenAI's own docs still shows an older number, which is an illustration, not a release feed. codex --version, or codex update, against your installed build is the source of truth.
Install and update
One command handles both the first install and later updates on macOS and Linux; a Windows installer, npm and Homebrew are offered too. Update with the same method you installed with rather than mixing them.
Commands that changed
/fast toggles Fast mode and /statusline can show it in the footer. /usage reports account token usage and limit resets; /status shows the session's model, approval policy and remaining context. /goal, /plan, /side and /import (for Claude Code or Cursor setups) are recent additions, and the newest — /recap, /export, /cd, /worktree, /daemon and /warnings — joined the command reference in October. The codex mcp-server subcommand was removed after a deprecation period — integrations move to the experimental app server — while codex mcp still connects Codex to external MCP servers. The --full-auto flag is gone from codex exec too, removed in 0.147.0. GPT-6.1 Terra needs CLI 0.159.0 or later. Custom model providers must expose a Responses-compatible endpoint; wire_api = "chat" is no longer supported.
The tables above list the published defaults and every built-in slash command.
Verified 2026-10-28 against https://learn.chatgpt.com/docs/codex/cli.
Checked: https://learn.chatgpt.com/docs/codex/cli · https://learn.chatgpt.com/docs/developer-commands?surface=cli · https://learn.chatgpt.com/docs/changelog · https://registry.npmjs.org/@openai/codex · https://learn.chatgpt.com/docs/models