Codex CLI
OpenAI’s coding agent for the terminal — subcommands, flags and interactive slash commands.
ALL COMMANDS · 16
/modelSwitches the AI model used in the running Codex session./permissionsControls which actions Codex may perform without asking (approval mode)./statusShows the current status of the running Codex session./planShows or manages the work plan for the current task./reviewTriggers a review of the current code changes./diffShows the current changes (diff) of the session./resumeContinues an earlier Codex session./newStarts a new, empty Codex session./forkBranches the current session into a new, independent copy./mcpShows or manages the MCP servers connected to Codex./skillsShows the skills available for the session./goalSets a persistent task goal that Codex works toward across the session.codex execRuns Codex non-interactively, e.g. for scripts or CI.codex reviewRuns a review of changes via the CLI.codex resumeContinues an earlier Codex session via the CLI.codex applyApplies a diff created in the cloud locally.