Skip to main content

Command Reference

Copilot Shell provides a rich set of slash commands to control session behavior. Type /help in a session to see all available commands.

Basic Commands

CommandDescription
/helpShow help information
/clearClear screen (shortcut Ctrl+L)
/quitExit Copilot Shell (alias /exit)
/aboutShow version and system information

Authentication & Model

CommandDescription
/authSwitch authentication method
/modelSwitch the current model

Language & Appearance

CommandDescription
/languageView language settings
/language ui <lang>Set UI language (e.g., zh-CN, en)
/language output <lang>Set LLM output language
/themeSwitch color theme
/statuslineConfigure status bar display

Session Management

CommandDescription
/resumeResume a previous session
/renameRename the current session
/exportExport the current session
/restoreRestore a session from backup
/compressReplace chat history with a summary to save tokens
/summaryGenerate a summary of the current session
/copyCopy the most recent reply to clipboard
/statsShow token usage statistics for the current session

Interactive Tools

CommandDescription
/bashEnter interactive shell; type exit to return
/editorOpen editor to compose content
/vimToggle Vim mode
/directoryBrowse directory structure

Tools & Permissions

CommandDescription
/toolsList all available tools
/approval-modeSet tool approval mode
/permissionsManage tool permissions

Approval mode options:

  • plan: Plan only, no execution
  • default: Confirm before each execution
  • auto-edit: Auto-approve file edits; others require confirmation
  • yolo: Auto-approve all operations (use with caution)

Hooks Management

CommandDescription
/hooksShow hooks help
/hooks listList all registered hooks and their status

Extension Management

CommandDescription
/extensionsView loaded extensions

Skills Management

CommandDescription
/skillsList available skills
/clawhubManage Clawhub remote skills
/agentsManage subagents

MCP Servers

CommandDescription
/mcpView and manage MCP servers

IDE Integration

CommandDescription
/ideIDE integration management

Settings

CommandDescription
/settingsOpen settings management interface

Git & Project

CommandDescription
/initInitialize project configuration
/setup-githubConfigure GitHub integration
/bugSubmit a bug report

Other

CommandDescription
/memoryManage session memory
/terminal-setupTerminal setup recommendations

Keyboard Shortcuts

ShortcutFunction
Ctrl+LClear screen
Ctrl+CCancel current operation
Ctrl+OToggle compact mode (hide tool output)
?View all shortcuts
TabCommand completion
/ Browse command history
/Trigger command list