CodexHowSupport Us

Codex CLI: Defaults, Versions & Commands

Codex CLI — published defaults

Install / update commandcurl -fsSL https://chatgpt.com/codex/install.sh | sh
Current release (npm latest)0.165.0, published 2026-10-27
Default modelGPT-6.1 Sol (gpt-6.1-sol)
Default reasoning effortmedium
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
Subcommandscodex, 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-serverDeprecated 2026-08-24, removed 2026-09-05 — use codex app-server (experimental, not for production)
Removed: codex exec --full-autoRemoved in 0.147.0 (2026-08-07) — use codex exec --sandbox workspace-write
Minimum version for GPT-6.1 Terra0.159.0 or later (Codex with ChatGPT sign-in)
Custom model providersMust expose a Responses-compatible endpoint; wire_api = "chat" is no longer supported

Every built-in slash command

/modelChoose the active model (and reasoning effort, when available). (affects cost or usage)
/fastToggle a Fast service tier when the model catalog exposes one. (affects cost or usage)
/statusDisplay session configuration and token usage. (affects cost or usage)
/usageView account token usage or use a rate-limit reset. (affects cost or usage)
/compactSummarize the visible chat to free tokens. (affects cost or usage)
/statuslineConfigure TUI status-line fields interactively. (affects cost or usage)
/permissionsSet what Codex can do without asking first.
/ideInclude open files, current selection, and other IDE context.
/keymapRemap TUI keyboard shortcuts.
/vimToggle Vim mode for the composer.
/setup-default-sandboxSet up the elevated agent sandbox (Windows only).
/agentsOpen the agent command center.
/subagentsSwitch the active subagent thread.
/appsBrowse apps (connectors) and insert them into your prompt.
/pluginsBrowse installed and discoverable plugins.
/hooksView and manage lifecycle hooks.
/clearClear the terminal and start a fresh chat.
/renameRename the current chat.
/archiveArchive the current session.
/deletePermanently delete the current session.
/copyCopy the latest completed Codex output.
/diffShow the Git diff, including files Git isn't tracking yet.
/exitExit the CLI (same as /quit).
/experimentalToggle experimental features.
/approveApprove one retry of a recent auto review denial.
/memoriesConfigure memory use and generation.
/skillsBrowse and use skills.
/importImport Claude Code or Cursor setup, projects, and chats.
/feedbackSend logs to the Codex maintainers.
/initGenerate an AGENTS.md scaffold in the current directory.
/logoutSign out of Codex.
/mcpList configured Model Context Protocol (MCP) tools.
/mentionAttach a file to the chat.
/planSwitch to plan mode and optionally send a prompt.
/goalSet, edit, pause, resume, view, or clear a task goal.
/psShow background terminals and their recent output.
/stopStop all background terminals.
/forkFork the current chat into a new chat.
/appContinue the current session in the ChatGPT desktop app.
/sideStart an ephemeral side chat (alias /btw).
/rawToggle raw scrollback mode.
/resumeResume a saved chat from your session list.
/newStart a new chat inside the same CLI session.
/quitExit the CLI.
/reviewAsk Codex to review your working tree.
/debug-configPrint config layer and requirements diagnostics.
/titleConfigure terminal window or tab title fields interactively.
/themeChoose a syntax-highlighting theme.
/petsChoose or hide a terminal pet (alias /pet).
/tuiChoose the terminal mode for the next launch.
/exportExport the conversation as Markdown.
/recapGenerate a summary of the current conversation.
/cdChange the session's working directory.
/pwdShow the working directory (alias /cwd).
/worktreeStart or continue a chat in a managed Git worktree.
/daemonOpen background server controls.
/warningsView 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