import{_ as t,o as d,c as a,ag as o}from"./chunks/framework.DXGyWiRo.js";const p=JSON.parse('{"title":"Slash Commands","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/slash-commands.md","filePath":"getting-started/slash-commands.md","lastUpdated":1774787421000}'),s={name:"getting-started/slash-commands.md"};function r(n,e,c,l,i,h){return d(),a("div",null,[...e[0]||(e[0]=[o('

Slash Commands

Memoh bots support slash commands — text commands prefixed with / that can be sent in any channel (Telegram, Discord, Feishu, Web, etc.) to perform administrative actions without going through the AI agent.

Slash commands are intercepted before they reach the LLM, so they execute instantly and don't consume tokens.


Quick Reference

CommandDescription
/helpShow all available commands
/newStart a new conversation session
/scheduleManage scheduled tasks
/mcpManage MCP connections
/settingsView and update bot settings
/modelManage bot models
/memoryManage memory provider
/searchManage search provider
/browserManage browser context
/usageView token usage statistics
/emailView email configuration
/heartbeatView heartbeat logs
/skillView bot skills
/fsBrowse container filesystem

Command Format

Commands follow the pattern:

/resource [action] [arguments...]

Example: /schedule create daily-report "0 9 * * *" "Send me a daily summary"


Permissions

Commands that modify bot settings are marked as owner-only. Only the bot owner can execute these commands. Read-only commands (listing, viewing) are available to all users who have chat access.

Owner-only commands are marked with [owner] in the /help output.


Global Commands

/help

Displays a list of all available commands and their usage.

/new

Starts a new conversation session, resetting the current context. See Sessions for details.


/schedule — Manage Scheduled Tasks

Sub-commandUsagePermission
list/schedule listAll
get/schedule get <name>All
create/schedule create <name> <pattern> <command>Owner
update/schedule update <name> [--pattern P] [--command C]Owner
delete/schedule delete <name>Owner
enable/schedule enable <name>Owner
disable/schedule disable <name>Owner

Examples:

/schedule list\n/schedule create morning-news "0 9 * * *" "Summarize today's top tech news"\n/schedule disable morning-news

/mcp — Manage MCP Connections

Sub-commandUsagePermission
list/mcp listAll
get/mcp get <name>All
delete/mcp delete <name>Owner

/settings — View and Update Bot Settings

Sub-commandUsagePermission
get/settings or /settings getAll
update/settings update [options]Owner

Update options:

OptionValues
--languageLanguage code (e.g., en, zh)
--acl_default_effectallow or deny
--reasoning_enabledtrue or false
--reasoning_effortlow, medium, or high
--heartbeat_enabledtrue or false
--heartbeat_intervalMinutes (integer)
--chat_model_idModel UUID
--heartbeat_model_idModel UUID

Example:

/settings update --language en --heartbeat_enabled true --heartbeat_interval 30

/model — Manage Bot Models

Sub-commandUsagePermission
list/model listAll
set/model set <provider_name> <model_name>Owner
set-heartbeat/model set-heartbeat <provider_name> <model_name>Owner

Example:

/model list\n/model set OpenAI gpt-4o\n/model set-heartbeat OpenAI gpt-4o-mini

/memory — Manage Memory Provider

Sub-commandUsagePermission
list/memory listAll
set/memory set <name>Owner

/search — Manage Search Provider

Sub-commandUsagePermission
list/search listAll
set/search set <name>Owner

/browser — Manage Browser Context

Sub-commandUsagePermission
list/browser listAll
set/browser set <name>Owner

/usage — View Token Usage

Sub-commandUsagePermission
summary/usage or /usage summaryAll
by-model/usage by-modelAll

Shows token usage for the last 7 days, broken down by session type (chat, heartbeat, schedule) or by model.


/email — View Email Configuration

Sub-commandUsagePermission
providers/email providersAll
bindings/email bindingsAll
outbox/email outboxAll

/heartbeat — View Heartbeat Logs

Sub-commandUsagePermission
logs/heartbeat or /heartbeat logsAll

Shows the 10 most recent heartbeat execution logs.


/skill — View Bot Skills

Sub-commandUsagePermission
list/skill or /skill listAll

/fs — Browse Container Filesystem

Sub-commandUsagePermission
list/fs list [path]All
read/fs read <path>All

Examples:

/fs list /\n/fs list /home\n/fs read /home/bot/IDENTITY.md

File content is truncated to 2000 characters when displayed in chat.


Mention-Prefixed Commands

In group chats, you can prefix commands with a mention:

@BotName /help\n@BotName /new

The bot will strip the mention and process the slash command normally.

',76)])])}const b=t(s,[["render",r]]);export{p as __pageData,b as default};