跳到正文
FunCoding

搜索

搜索文档、文章、Skill 和 MCP

Slash commands

Type / in Pi's terminal editor to search the commands available in the current session. This page lists the built-in commands in the current Pi release.

Extensions, prompt templates, and skills can add commands. The command menu in Pi is therefore the exact reference for the resources loaded in your session.

Models and settings

CommandDescription
/settingsOpen settings
/model [provider/model]Select a model
/thinking [level]Set the thinking level
/scoped-modelsConfigure the models used by interactive cycling
/login [provider]Add provider authentication
/logoutRemove provider authentication
/llamaManage models on the configured llama.cpp router

Sessions and context

CommandDescription
/newStart a new session
/resumeSwitch to another saved session
/name [name]Set the session display name, or show the current name when omitted
/sessionShow current session information and statistics
/treeNavigate the session tree
/forkCreate a new session from an earlier user message
/cloneDuplicate the current session at its current position
/compact [instructions]Compact the current context, optionally with custom instructions
/import <path>Import and resume a JSONL session

Export and share

CommandDescription
/copyCopy the last assistant message
/export [path]Export the session as HTML or JSONL
/shareUpload the session and return a viewer link
/bug [description]Prepare a private bug report for the Pi developers

Review a session before exporting or sharing it. Sessions can contain prompts, tool arguments, command output, file contents, and credentials exposed during the conversation.

Runtime and project

CommandDescription
/trustSave a project trust decision for future Pi processes
/reloadReload keybindings, extensions, skills, templates, themes, and context files
/hotkeysShow active keyboard shortcuts
/changelogShow changelog entries
/quitQuit Pi

Commands added by resources

  • Extensions can register commands with their own arguments and completion behavior.
  • Each prompt template is available under its template name.
  • Skills are available as /skill:name when skill commands are enabled.

Use /reload after adding or changing a discovered command resource. See Extensions, Prompt Templates, and Skills for their loading and naming rules.