Commands Reference

Type / in the input field to see the command palette. All commands start with /.

System Commands

CommandDescription
/helpShow help with all commands
/exitExit MoMCP-TUI
/systemOpen system settings (name, personality)

Model Commands

CommandDescription
/modelOpen model manager to switch providers/models
/api_keyCheck current API key status
/api_key set KEYSet and save API key for current provider

File Access Commands

CommandDescription
/allowOpen file access whitelist manager
/allow listView current whitelist paths
/allow add PATHAdd a path to the whitelist

Tool Commands

CommandDescription
/tool listList all available MCP tools

History Commands

CommandDescription
/historyOpen conversation history manager

Settings Commands

CommandDescription
/thinkToggle thinking mode
/contextAdjust conversation compression threshold
/langShow current language
/lang set zhSwitch to Chinese
/lang set enSwitch to English
/docOpen documentation website

Keyboard Shortcuts

These work without typing a command:

KeyAction
EnterSend message or execute command
Ctrl+CCopy last assistant reply to clipboard
EscapeInterrupt ongoing generation
qQuit (when input is empty)
Up/DownNavigate command palette

Command Details

/model

Opens a modal dialog listing all available models grouped by provider. Click on a model to switch. If the new provider has no API key configured, you'll be prompted to enter one.

/api_key

Shows whether the current provider has an API key configured. If missing, provides the URL to obtain one.

/api_key set KEY

Sets the API key for the current provider and saves it to the config file.

/allow add PATH

Adds a directory to the file access whitelist. Restart is required for MCP file tools to recognize the new path.

/tool list

Queries all configured MCP servers and displays their available tools with descriptions.

/think

Toggles thinking mode. When enabled, the LLM's reasoning process is displayed before the final answer.

/context

Opens a dialog to adjust the max_context_tokens threshold. When the conversation exceeds this limit, older messages are automatically compressed.

/history

Opens the history manager where you can view, restore, or delete saved conversations.

/system

Opens a dialog to:

  • View system information (version, Python, OS, model)
  • Change the assistant's name
  • Set or clear the assistant's personality

/lang set XX

Switches the UI language immediately. The setting is persisted in the config file.

/doc

Opens the documentation website in your default browser.