Cursor CLI reference - Slash commands
Cursor CLI slash commands
Cursor CLI documents 53 slash commands, including /model [filter], /run-everything [on|off|status] and /plan [prompt]. You type these inside an interactive Cursor CLI session. Each row gives the docs' description, accepted values and an example where one is documented.
Last verified 3 official pagesFull Cursor CLI reference
| Command | Description | Example |
|---|---|---|
/model [filter] | Selects a model; press Tab to edit. Typing a filter such as /model sonnet opens the picker pre-filtered. optional filter Docs: /model [filter] | /model auto
/model gpt-5
/model sonnet-4-thinking |
/run-everything [on|off|status] | Toggles Run Everything or shows its status. /auto-run is an alias. on | off | status Docs: /run-everything [on|off|status] | -no example |
/plan [prompt] | Switches to Plan mode, shows the current plan, or submits a prompt in Plan mode. optional prompt Docs: /plan [prompt] | -no example |
/ask | Toggles Ask mode for read-only questions. Docs: /ask | -no example |
/debug [prompt] | Toggles Debug mode or submits a prompt in Debug mode. optional prompt Docs: /debug [prompt] | -no example |
/goal [objective] | Gives the agent a long-lived objective to work towards until it is fully complete. Rolling out; tracks an active or paused status line and pauses on Ctrl+C. objective Docs: /goal [objective] | -no example |
/logs | Shows the debug log path and copies it to the clipboard. Docs: /logs | -no example |
/update | Updates Cursor Agent to the latest version from inside the session. Docs: /update | -no example |
/max-mode | Toggles Max Mode on legacy request-based plans. Docs: /max-mode | -no example |
/rename <name> | Renames the current chat session. name Docs: /rename <name> | -no example |
/clear | Starts a new chat session. /new, /new-chat, and /newchat are aliases. Docs: /clear | -no example |
/resume | Opens recent chats and resumes one. Also bound to Ctrl+Y per the changelog. Docs: /resume | -no example |
/fork | Forks the current chat into a new session. The changelog lists /branch and /duplicate as aliases. Docs: /fork | -no example |
/summarize | Summarizes the conversation to reduce context. /compress is an alias; the changelog also lists /compact. Docs: /summarize | -no example |
/rewind | Jumps back to a previous message, restoring files and conversation state from an interactive timeline. On by default since June 2026; /undo and /restore are aliases per the changelog. Docs: /rewind | -no example |
/vim | Toggles Vim keys for the current session and saves the preference. Docs: /vim | /vim |
/line-numbers | Toggles line numbers in code blocks. Docs: /line-numbers | -no example |
/show-thinking | Toggles thinking block display. Docs: /show-thinking | -no example |
/status-indicators | Toggles terminal title status indicators. Docs: /status-indicators | -no example |
/shell [command] | Enters Shell Mode, which runs quick non-interactive shell commands with a 30 second timeout. /sh and /run are aliases. optional command Docs: /shell [command] | -no example |
/about | Shows CLI version, system, and account info, and copies it to the clipboard. Docs: /about | -no example |
/setup-terminal | Configures terminal newline keybindings; detects your terminal and gives instructions for Option+Enter / Alt+Enter as a newline alternative. Docs: /setup-terminal | /setup-terminal |
/help [command] | Shows help. Use /help <command> for command details. optional command Docs: /help [command] | -no example |
/feedback <message> | Shares feedback with the team. message Docs: /feedback <message> | -no example |
/open | Opens the repository's Git root in Cursor. /cursor is an alias. Docs: /open | -no example |
/copy-request-id | Copies the last request ID to the clipboard. Docs: /copy-request-id | -no example |
/copy-conversation-id | Copies the current conversation ID to the clipboard. Docs: /copy-conversation-id | -no example |
/logout | Signs out from Cursor. Docs: /logout | -no example |
/quit | Exits the CLI. Docs: /quit | -no example |
/exit | Exits the CLI. Docs: /exit | -no example |
/mcp [list|list-tools] [identifier] | Manages MCP servers and lists tools for a server. Opens a per-server detail view with tool schemas, login, logout, enable, and disable; servers are grouped under User / Project / Team. list | list-tools; optional identifier Docs: /mcp [list|list-tools] [identifier] | -no example |
/plugin [subcommand] | Manages plugins and marketplaces, including install or uninstall at user or project scope and /plugin marketplace add to add a marketplace by git URL. optional subcommand Docs: /plugin [subcommand] | -no example |
/config | Configures CLI settings interactively, replacing hand-editing JSON, including a version and account page. Docs: /config | -no example |
/copy | Copies a previous user message to the clipboard; can also copy individual steps of agent replies. Docs: /copy | -no example |
/sandbox | Configures sandbox mode and network access settings through an interactive menu. Settings persist across sessions. Docs: /sandbox | -no example |
/bedrock [subcommand] | Configures Bedrock when the Bedrock feature is enabled. optional subcommand Docs: /bedrock [subcommand] | -no example |
/auto-review | Turns on the Auto-review run mode, which checks shell, MCP, and Fetch calls via allowlist, sandbox, then classifier. Docs: /auto-review | -no example |
/add-dir | Adds a directory to the workspace mid-session and refreshes slash skills and custom commands immediately. path Docs: /add-dir | -no example |
/save-workspace | Saves the current set of workspace directories as a named multi-directory workspace. Docs: /save-workspace | -no example |
/load-workspace | Reloads a saved named multi-directory workspace. Docs: /load-workspace | -no example |
/usage | Shows included-usage meters with Auto and API breakdowns, on-demand spend against your limit, plan name, and billing-cycle reset date. Docs: /usage | -no example |
/fast | Toggles Fast when the current model supports it. Docs: /fast | -no example |
/opus | Model family shortcut that jumps straight to a model without the picker; each family shortcut remembers your last choice. Shortcuts can be disabled under Model slash commands in /config. Docs: /opus | -no example |
/composer | Model family shortcut that jumps straight to a Composer model without the picker, remembering your last choice in that family. Docs: /composer | -no example |
/btw | Asks a quick read-only side question mid-turn; the answer streams into a dismissible overlay and never touches conversation history. Docs: /btw | -no example |
/context | Visualizes what is consuming the context window, broken down by category. Docs: /context | -no example |
/changes | Unified review UI (also Ctrl+R) with a Session tab showing only this session's edits. Docs: /changes | -no example |
/skills | Browses skills; flags skills that exceed Agent Skills limits with a yellow warning count. Docs: /skills | -no example |
/skill-name | Inline invocation of a skill by name; works in interactive and -p print mode. Pressing Enter attaches the skill to one message, Option+Enter invokes it as a sticky Custom Mode. Docs: /skill-name | -no example |
/rules | Interactive rules browser with inline editing. Docs: /rules | -no example |
/commands | Interactive custom commands browser with inline editing. Docs: /commands | -no example |
/detach | Detaches from a persistent session started with agent persist. Docs: /detach | -no example |
/full-conversation | Opts out of rendering only recent turns on full repaints. Docs: /full-conversation | -no example |
The rest of the Cursor CLI reference
FAQ
How many slash commands does Cursor CLI have?
The official Cursor CLI docs list 53 slash commands, including /model [filter], /run-everything [on|off|status] and /plan [prompt]. All of them are in the table above, in the docs' order.
What does /model [filter] do in Cursor CLI?
Selects a model; press Tab to edit. Typing a filter such as /model sonnet opens the picker pre-filtered. Values: optional filter. Example: /model auto
Where are Cursor CLI slash commands documented?
On 3 official docs pages at cursor.com, last read on October 17, 2026. Every row in the table links the exact section it came from.
More on Cursor CLI
- Cursor CLI in the tools directoryWhat it is, who makes it and how it fits next to other coding agents.
- Cursor CLI errors and fixes18 error messages, quoted verbatim, with the documented fix for each.
- Cursor usage limitsPlan and tier limits for this tool, copied from the official docs.
Use other models in Cursor CLI
Setup guides from the model-in-tool directory, each with the env vars and base URL from official docs.
Sources
Last verified . Names and examples are copied verbatim from the 3 official pages below, and every row above links the exact section it came from.
Newsletter
Know when your tools change
One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.