Skip to main content
Slash commands control o4 from the prompt: switch models, manage the session, open panes, and start work. Type / in the prompt to open the completion list and filter it as you type, or press / in Navigation Mode to open the command palette. /help shows the same list inside o4. Arguments in <angle brackets> are required and arguments in [square brackets] are optional. A | separates alternatives.
Skills and plugin commands also run as slash commands, for example /review for a skill named review. Built-in commands take precedence over a skill or plugin command with the same name. See Skills and Plugins and marketplaces.

Commands while a task is running

You can type a slash command while the model is working. Commands that show information, open a pane or a browser, or change side state such as the goal or the todo list run right away. Commands that change the conversation, the model or the tools wait in a queue and run, in order, when the current task finishes. o4 shows Queued '/<name>' until the active task finishes. When more than one command is waiting, the notice ends with the count instead, as in Queued '/rewind' until the active task finishes (2 waiting). If a queued command starts a new turn, the commands after it wait for that turn too. These run right away:
  • /help, /commands, /hey, /diff, /cost, /radar, /debrief, /context, /stats, /status
  • /export, /copy, /bug, /feedback
  • /config and its shortcuts, such as /models, /theme and /permissions, plus /add-provider, and /reasoning, /login and /auth without an argument
  • The browsers and panes: /agents, /sub-agents and /skills with any of their verbs, /plugins, /plugins install without a source, /mcp, /mcp add without a name, /hooks, /sessions, /rewind list, /memory, /onboard
  • /goal with or without an argument, /todo, /loop, /rename, /plan clear, /panel and /panel off
  • /mcp list, /mcp search, /workflow list, /plugins validate, /plugins marketplace list, /stash list, /router or /router status, /scout --diff, /auth status, /auth login chatgpt
  • /exit and /quit, which quit o4
  • The commands under Not listed in /help that only print a line of text, such as /version, /usage and /recall
Everything else is queued, including /clear, /compact, /model and /model <reference>, /reasoning <level>, /login <key>, /auth import, /undo, /retry, /resume, /fork, /rewind and /rewind <n>, /plan, /commit, /campaign <objective>, /workflow run, /init, /reload, /memory clear, /scout, /stash and /stash <n>, /mcp add <name>, /mcp remove, /mcp restart, the /plugins commands that install, update, remove or create a plugin or change a marketplace, and skills and plugin commands. /goal <objective> sets the goal right away, but its first prompt goes out when the current turn finishes. If you run /goal clear or /goal complete before then, that prompt doesn’t go out. To switch models during a turn, press Ctrl+M with an empty prompt: the model list opens at once, and the model you pick becomes the session’s model right away. The running turn finishes on its old model unless the model router is on. /model and /model <reference> wait for the turn to finish. Ctrl+M works only in terminals that report it as its own key, and not inside tmux; see Keyboard shortcuts. A pane you open during a turn can’t change the running turn:
  • Resuming, forking or rewinding from the session picker, the Time Machine or an action chip is refused until the turn finishes. The session picker shows Wait for the current turn to finish before resuming, forking or rewinding.
  • These actions are refused too: adding, removing, enabling, disabling, restarting or editing an MCP server; installing, updating or removing a plugin; refreshing or removing a marketplace; creating, editing or deleting a skill or an agent; deleting a session; and Import Codex auth and Import Claude Code auth in /config. o4 closes the pane and shows Wait for the current turn to finish before making this change.
  • Settings you change in /config are saved right away, but some of them, such as the reasoning level, take effect only when the turn finishes. See The /config screen.

Core

Examples:

Configuration

/router setup on its own shows a preview of the router configuration. Add --yes to write it. If fewer than two providers are usable, it shows Router setup was not enabled. and writes nothing, even with --yes. It also refuses to write when a file that takes precedence, such as the project’s .o4/config.toml or ~/.o4/managed/config.toml, already has a [router] section. It accepts these options: /router disable --project turns the router off in the project’s config. /router off is the same as /router disable. Router changes take effect in the next session. See the router settings.

Session

/rewind replaces the current conversation and files with the checkpoint’s state. Use /fork first if you want to keep the current line of work.

Tools

MCP

In o4 0.2.74, registry lookups fail, so /mcp add <name> and /mcp search don’t find servers. Add servers with Add server in /mcp instead. See MCP servers.

Memory

See Memory.

Agents

/sub-agents also takes a verb: create [name] (or new) opens the create form, and select, use, edit, delete or remove followed by a name opens that definition. /agents accepts the same verbs and then opens the Agents browser instead of the command center. See Subagents.

Skills

Like /sub-agents, /skills takes create [name] (or new), and select, use, edit, delete or remove followed by a skill name. See Skills.

Plugins

See Plugins and marketplaces.

Usage and status

To get a report from a script, run o4 -p "/stats --json" or o4 -p "/context --json". See Print mode and scripting.

Not listed in /help

These commands work in every session but don’t appear in /help or the completion list.

Session and information

/remember and /recall are a note store for you. The model never sees what they save. To give the model something to remember, use memory.

Settings shortcuts

Each of these opens /config at a tab, and at a row where noted. You can do the same by opening /config and moving to the row. /permissions and /rules are the exception: they open their own pane. See Configuration files.

Accounts and the model catalog

A key you type after /login or /auth set-key stays in your prompt history. To keep keys out of history, set them in /config providers or with an environment variable.

Other names for listed commands

Commands that do nothing yet

o4 0.2.74 also accepts some command names that only print a message, such as “not yet available” or a tip, and change nothing:
  • Not available yet: /voice, /branch, /issue, /tag, /add-dir, /security-review, /bughunter, /autofix-pr, /pr-comments, /onboarding, /sandbox-toggle, /reload-plugins, /remote-env, /remote-setup.
  • Tips and messages with no effect: /good-claude, /advisor, /brief, /break-cache, /ant-trace, /backfill-sessions, /heapdump.
  • Tips: /btw shows one tip from a list of ten, and /btw <n> shows tip number n, counting from 0. A few of the tips are notes for people who build o4 from source.
  • Messages that point to things that don’t exist in 0.2.74:
    • /release-notes points to a file in o4’s source repository.
    • /terminal-setup suggests an o4 shell-init command.
    • /debug-tool-call suggests a variable nothing reads.
    • /rate-limit shows a request limit o4 doesn’t apply.
  • Output styles: /output-style lists the files in ~/.o4/output-styles/, but o4 can’t switch to them yet.
Instead of /add-dir, start o4 with --add-dir. For a security review, ask the model to use its security-review skill; see Skills. To change plugins, restart o4. For keyboard ways to quit, see Keyboard shortcuts.