import{_ as e,o,c as d,ag as a}from"./chunks/framework.CAXxHpAX.js";const u=JSON.parse('{"title":"Slash Commands","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/slash-commands.md","filePath":"getting-started/slash-commands.md","lastUpdated":1776332711000}'),s={name:"getting-started/slash-commands.md"};function c(n,t,r,i,l,h){return o(),d("div",null,[...t[0]||(t[0]=[a('
Memoh bots support slash commands that are intercepted before the LLM runs. They are intended for fast inspection and control tasks such as viewing settings, switching providers, checking session status, or creating a fresh session.
Slash commands work in channel adapters and in the built-in Web UI chat. They do not consume model tokens just to parse the command itself.
Most commands follow a resource-group pattern:
/resource [action] [arguments...]Examples:
/schedule list\n/model current\n/schedule create morning-news "0 9 * * *" "Send a daily summary"Key ideas:
schedule, model, or status.list, get, set, or latest./settings is equivalent to /settings get, and /status is equivalent to /status show.Two commands are top-level instead of resource groups:
/new — create a new session for the current conversation route/stop — abort the currently running generation for the current conversationThe slash system has layered help built into it:
| Command | Meaning |
|---|---|
/help | Show the top-level command list |
/help <group> | Show actions inside one group |
/help <group> <action> | Show detailed usage for one action |
Examples:
/help\n/help model\n/help model setThis is the fastest way to discover the exact live command surface for your current Memoh version.
Slash commands support a few convenience forms:
@BotName /help./help@MemohBot./schedule create morning-news "0 9 * * *" "Send today's top stories"If the text does not resolve to a known command, Memoh treats it as a normal chat message instead of a slash command.
Read-only actions are available to users who can already chat with the bot. Write actions such as set, create, update, delete, enable, and disable are owner-only.
In /help output, owner-only actions are marked with [owner].
| Command | Description |
|---|---|
/help | Show slash command help |
| `/new [chat | discuss]` |
/stop | Stop the current generation |
| Group | Description | Default Action |
|---|---|---|
/schedule | Manage scheduled tasks | None |
/mcp | Inspect MCP connections | None |
/settings | View and update bot settings | get |
/model | View and switch bot models | None |
/memory | View and switch memory providers | None |
/search | View and switch search providers | None |
/browser | View and switch browser contexts | None |
/usage | View token usage | summary |
/email | Inspect email providers, bindings, and outbox | None |
/heartbeat | View recent heartbeat logs | logs |
/skill | View loaded bot skills | list |
/fs | Browse files inside the bot container | None |
/status | Inspect session message/context/cache status | show |
/access | Inspect identity, role, and ACL context | show |
/compact | Trigger immediate session context compaction | run |
/new Creates a fresh session for the current conversation route. It is the fastest way to reset conversational context without deleting old history.
Supported forms:
/new — use the default session type for the current context/new chat — force a normal chat session/new discuss — force a discuss sessionDefault behavior:
chatchatdiscuss/new discuss is not supported in the built-in Web UI local channel. Use a channel adapter such as Telegram or Discord if you want explicit discuss sessions.
See Sessions for how chat and discuss differ.
/stop Stops the current in-progress generation for the current conversation. This is useful when:
/status Shows session-level runtime stats for the current conversation:
Actions:
| Action | Usage |
|---|---|
show | /status or /status show |
latest | /status latest |
Use show for the currently active conversation route. Use latest when you want the newest session for the bot even if the current route has no active session.
/access Shows the current identity and permission context that Memoh is using for the command:
Usage:
/accessThis command is useful when debugging ACL rules, linked accounts, or why a write command was denied.
/usage Shows token usage for the last 7 days.
Actions:
| Action | Usage |
|---|---|
summary | /usage or /usage summary |
by-model | /usage by-model |
/heartbeat Shows the most recent heartbeat execution logs.
Actions:
| Action | Usage |
|---|---|
logs | /heartbeat or /heartbeat logs |
/email Shows email-related configuration data for the current bot.
Actions:
| Action | Usage |
|---|---|
providers | /email providers |
bindings | /email bindings |
outbox | /email outbox |
/settings Shows or updates core bot settings.
Actions:
| Action | Usage | Permission |
|---|---|---|
get | /settings or /settings get | All |
update | /settings update [options] | Owner |
Supported update options:
| Option | Description |
|---|---|
--language | Bot language, such as en or zh |
--acl_default_effect | allow or deny |
--reasoning_enabled | true or false |
--reasoning_effort | low, medium, or high |
--heartbeat_enabled | true or false |
--heartbeat_interval | Minutes |
--chat_model_id | Chat model UUID |
--heartbeat_model_id | Heartbeat model UUID |
Example:
/settings update --language en --heartbeat_enabled true --heartbeat_interval 30/model Shows or switches the bot's chat and heartbeat models.
Actions:
| Action | Usage | Permission |
|---|---|---|
list [provider_name] | /model list | All |
current | /model current | All |
set | /model set <model_id> or /model set <provider_name> <model_name> | Owner |
set-heartbeat | /model set-heartbeat <model_id> or /model set-heartbeat <provider_name> <model_name> | Owner |
Examples:
/model list\n/model list OpenAI\n/model current\n/model set gpt-4o\n/model set OpenAI gpt-4o/memory Shows or switches the active memory provider.
Actions:
| Action | Usage | Permission |
|---|---|---|
list | /memory list | All |
current | /memory current | All |
set | /memory set <name> | Owner |
/search Shows or switches the active search provider.
Actions:
| Action | Usage | Permission |
|---|---|---|
list | /search list | All |
current | /search current | All |
set | /search set <name> | Owner |
/browser Shows or switches the active browser context.
Actions:
| Action | Usage | Permission |
|---|---|---|
list | /browser list | All |
current | /browser current | All |
set | /browser set <name> | Owner |
/mcp Shows or deletes MCP connections configured for the bot.
Actions:
| Action | Usage | Permission |
|---|---|---|
list | /mcp list | All |
get | /mcp get <name> | All |
delete | /mcp delete <name> | Owner |
/schedule Manages scheduled tasks for the bot.
Actions:
| Action | Usage | Permission |
|---|---|---|
list | /schedule list | All |
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/skill Lists the currently available bot skills.
Actions:
| Action | Usage |
|---|---|
list | /skill or /skill list |
/fs Browses the bot container filesystem.
Actions:
| Action | Usage |
|---|---|
list | /fs list [path] |
read | /fs read <path> |
Examples:
/fs list /\n/fs list /home\n/fs read /home/bot/IDENTITY.mdRead output is truncated when the file is very large.
/compact Triggers immediate session context compaction for the current session. This is different from memory compaction:
Actions:
| Action | Usage |
|---|---|
run | /compact or /compact run |
Use this when the current conversation has grown long and you want Memoh to summarize older turns before continuing. See Context Compaction.
',134)])])}const m=e(s,[["render",c]]);export{u as __pageData,m as default};