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('

Slash Commands

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.


Command Model

Most commands follow a resource-group pattern:

text
/resource [action] [arguments...]

Examples:

text
/schedule list\n/model current\n/schedule create morning-news "0 9 * * *" "Send a daily summary"

Key ideas:

Two commands are top-level instead of resource groups:


Built-in Help

The slash system has layered help built into it:

CommandMeaning
/helpShow the top-level command list
/help <group>Show actions inside one group
/help <group> <action>Show detailed usage for one action

Examples:

text
/help\n/help model\n/help model set

This is the fastest way to discover the exact live command surface for your current Memoh version.


Parsing Rules

Slash commands support a few convenience forms:

text
/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.


Permissions

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].


Quick Reference

Top-Level Commands

CommandDescription
/helpShow slash command help
`/new [chatdiscuss]`
/stopStop the current generation

Resource Groups

GroupDescriptionDefault Action
/scheduleManage scheduled tasksNone
/mcpInspect MCP connectionsNone
/settingsView and update bot settingsget
/modelView and switch bot modelsNone
/memoryView and switch memory providersNone
/searchView and switch search providersNone
/browserView and switch browser contextsNone
/usageView token usagesummary
/emailInspect email providers, bindings, and outboxNone
/heartbeatView recent heartbeat logslogs
/skillView loaded bot skillslist
/fsBrowse files inside the bot containerNone
/statusInspect session message/context/cache statusshow
/accessInspect identity, role, and ACL contextshow
/compactTrigger immediate session context compactionrun

Session Commands

/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:

Default behavior:

/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 And Inspection Commands

/status

Shows session-level runtime stats for the current conversation:

Actions:

ActionUsage
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:

text
/access

This 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:

ActionUsage
summary/usage or /usage summary
by-model/usage by-model

/heartbeat

Shows the most recent heartbeat execution logs.

Actions:

ActionUsage
logs/heartbeat or /heartbeat logs

/email

Shows email-related configuration data for the current bot.

Actions:

ActionUsage
providers/email providers
bindings/email bindings
outbox/email outbox

Configuration Commands

/settings

Shows or updates core bot settings.

Actions:

ActionUsagePermission
get/settings or /settings getAll
update/settings update [options]Owner

Supported update options:

OptionDescription
--languageBot language, such as en or zh
--acl_default_effectallow or deny
--reasoning_enabledtrue or false
--reasoning_effortlow, medium, or high
--heartbeat_enabledtrue or false
--heartbeat_intervalMinutes
--chat_model_idChat model UUID
--heartbeat_model_idHeartbeat model UUID

Example:

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

/model

Shows or switches the bot's chat and heartbeat models.

Actions:

ActionUsagePermission
list [provider_name]/model listAll
current/model currentAll
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:

text
/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:

ActionUsagePermission
list/memory listAll
current/memory currentAll
set/memory set <name>Owner

Shows or switches the active search provider.

Actions:

ActionUsagePermission
list/search listAll
current/search currentAll
set/search set <name>Owner

/browser

Shows or switches the active browser context.

Actions:

ActionUsagePermission
list/browser listAll
current/browser currentAll
set/browser set <name>Owner

/mcp

Shows or deletes MCP connections configured for the bot.

Actions:

ActionUsagePermission
list/mcp listAll
get/mcp get <name>All
delete/mcp delete <name>Owner

Automation And Filesystem Commands

/schedule

Manages scheduled tasks for the bot.

Actions:

ActionUsagePermission
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:

text
/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:

ActionUsage
list/skill or /skill list

/fs

Browses the bot container filesystem.

Actions:

ActionUsage
list/fs list [path]
read/fs read <path>

Examples:

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

Read output is truncated when the file is very large.


Context Compaction Command

/compact

Triggers immediate session context compaction for the current session. This is different from memory compaction:

Actions:

ActionUsage
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};