slash commands / reference
COMMAND REFERENCE▌
Slash commands for every AI coding tool — Claude Code, Cursor, Codex CLI, Gemini CLI, and OpenCode. Find the right command for your workflow. 15 commands indexed.
/compact
context-management
Summarize the current session to save tokens. Alias: /summarize.
/connect
configuration
Add a provider and API key to connect a new AI model provider.
/details
configuration
Toggle tool execution details in the conversation output.
/editor
context-management
Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.
/exit
session-management
Exit OpenCode. Aliases: /quit, /q. Keybind: Ctrl+x q.
/export
session-management
Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.
/init
setup
Guided AGENTS.md setup for the current project.
/models
configuration
List available models across all configured providers. Keybind: Ctrl+x m.
/new
session-management
Start a new session. Aliases: /clear. Keybind: Ctrl+x n.
/redo
session-management
Restore a previously undone message and file changes. Git-backed. Keybind: Ctrl+x r.
/sessions
session-management
List and switch sessions. Aliases: /resume, /continue. Keybind: Ctrl+x l.
/share
session-management
Share the current session publicly.
/themes
configuration
List available themes and switch the visual theme. Keybind: Ctrl+x t.
/thinking
configuration
Toggle visibility of reasoning blocks in the response.
/undo
session-management
Remove the last message and its responses, and revert any file changes made. Git-backed — requires a git repository. Keybind: Ctrl+x u.