Slash commands
Commands Vendor docs
command
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| /add-dir | command |
Add an extra workspace directory to the current session. Run without a path (or with `list`) to list configured directories. When adding, choose whether to remember the directory for the project in `.kimi-code/local.toml`
|
docs ↗ | ||
| /auto | command |
Toggle auto permission mode. When enabled, tool approvals are handled automatically and the Agent will not ask the user questions
|
docs ↗ | ||
| /btw | command |
Open a side conversation in a forked sub-Agent without affecting the current main Agent turn; without a question, opens the panel first to wait for input
|
docs ↗ | ||
| /check-kimi-code-docs | command |
Answer Kimi Code product questions (CLI usage, configuration, membership, error codes) against the official docs
|
docs ↗ | ||
| /compact | command |
Compact the current conversation context to free up token usage; an optional custom instruction can hint to the model what to preserve
|
docs ↗ | ||
| /copy | command |
Copy the last assistant message to the clipboard
|
docs ↗ | ||
| /custom-theme | command |
Create or edit a custom TUI color theme. See Themes
|
docs ↗ | ||
| /editor | command |
Configure the external editor launched by `Ctrl-G`
|
docs ↗ | ||
| /exit | command |
Exit Kimi Code CLI
|
docs ↗ | ||
| /experiments | command |
Open the experimental feature panel
|
docs ↗ | ||
| /export-debug-zip | command |
Export the current session as a debug ZIP archive (same behavior as `kimi export`)
|
docs ↗ | ||
| /export-md | command |
Export the current session as a Markdown file
|
docs ↗ | ||
| /feedback | command |
Submit feedback with optional diagnostic logs and codebase context
|
docs ↗ | ||
| /fork | command |
Fork a new session from the current one, preserving the full conversation history; you stay in the current session
|
docs ↗ | ||
| /goal | command |
Start or manage an autonomous goal
|
docs ↗ | ||
| /help | command |
Show keyboard shortcuts and all available commands
|
docs ↗ | ||
| /import-from-cc-codex | command |
Import Claude Code and Codex instructions, skills, and MCP settings into Kimi Code
|
docs ↗ | ||
| /init | command |
Analyze the current codebase and generate `AGENTS.md`
|
docs ↗ | ||
| /login | command |
Select an account or platform and log in: Kimi Code uses OAuth device-code flow; Kimi Platform uses API key login
|
docs ↗ | ||
| /logout | command |
Clear credentials for the currently selected account
|
docs ↗ | ||
| /mcp | command |
List MCP servers and their connection status in the current session
|
docs ↗ | ||
| /mcp-config | command |
Configure MCP servers and handle MCP OAuth login. See MCP
|
docs ↗ | ||
| /model | command |
Switch the LLM model used in the current session
|
docs ↗ | ||
| /new | command |
Start a fresh session, discarding the current context
|
docs ↗ | ||
| /permission | command |
Select a permission mode
|
docs ↗ | ||
| /plan | command |
Toggle Plan mode. Without arguments, flips the current state; explicitly passing `on`/`off` forces the setting. Simply toggling does not create an empty plan file
|
docs ↗ | ||
| /plugins | command |
Open the interactive plugin manager
|
docs ↗ | ||
| /provider | command |
Open the interactive provider manager to view, add, and remove configured providers. See Platforms & Models — `/provider` and provider management
|
docs ↗ | ||
| /reload | command |
Reload the current session and apply the latest `config.toml` settings (providers, models, etc.) and `tui.toml` UI preferences, without restarting the CLI
|
docs ↗ | ||
| /reload-tui | command |
Reload only the `tui.toml` UI preferences (theme, editor, notifications, etc.) without rebuilding the session
|
docs ↗ | ||
| /secondary | command |
Configure the secondary model that newly spawned subagents bind to by default (writes the [`[secondary_model]`](../configuration/config-files.md#secondary-model) section and applies to the current session immediately). Requires the `secondary-model` experiment
|
docs ↗ | ||
| /sessions | command |
Browse historical sessions and switch to / restore one
|
docs ↗ | ||
| /settings | command |
Open the settings panel inside the TUI
|
docs ↗ | ||
| /status | command |
Show the current session runtime state: version, model, working directory, permission mode, etc.
|
docs ↗ | ||
| /sub-skill | command |
Discover and reorganize the local skill inventory into hierarchical sub-skill bundles. Includes `/sub-skill.review` (read-only proposal) and `/sub-skill.consolidate` (apply the reorganization)
|
docs ↗ | ||
| /swarm | command |
Turn swarm mode on or off without sending a prompt.
|
docs ↗ | ||
| /tasks | command |
Browse the background task list
|
docs ↗ | ||
| /theme | command |
Switch the terminal UI color theme
|
docs ↗ | ||
| /title | command |
Without arguments, display the current session title; with an argument, set a new title (max 200 characters)
|
docs ↗ | ||
| /undo | command |
Undo recent prompts from the active context. Without a count, opens a selector; with a count, undoes that many prompts. Prompts before the last compaction cannot be undone. Undoing also rolls back the todo list and plan mode state produced by those prompts (code changes are not reverted)
|
docs ↗ | ||
| /update-config | command |
Inspect or edit `config.toml` (model, provider, permission, hooks) and `tui.toml` (theme, editor, notifications, auto-update)
|
docs ↗ | ||
| /usage | command |
Show token usage, context consumption, and quota information
|
docs ↗ | ||
| /version | command |
Display the Kimi Code CLI version number
|
docs ↗ | ||
| /web | command |
Open the current session in the web UI: pick a running server to connect to, or start a new foreground server after the TUI exits. See `kimi web`
|
docs ↗ | ||
| /yolo | command |
Toggle YOLO mode. Without arguments, flips the current state; explicitly passing `on`/`off` forces the setting. When enabled, skips approval for regular tool calls; Plan mode exit approval is not affected
|
docs ↗ |