OpenClaw Commands & Prompt Reference

65 commands & parameters · 3 categories · Source: OpenClaw Docs - Slash commands

OpenClaw is a self-hosted gateway that puts an AI coding agent behind the messaging apps you already use - Discord, Slack, Telegram, WhatsApp, Signal, iMessage and more - so its typed surface spans two layers. In chat, slash commands manage sessions, models, and permissions; on the Gateway host, the openclaw CLI handles setup, channels, and updates. This page lists both from the official documentation.

The slash layer is deeper than most chat tools. Session lifecycle alone covers /new, /reset (with a soft variant that keeps the transcript), /compact for context compaction, and /export-session for HTML exports. Eight subcommand families - /tools, /loop, /model, /config, /mcp, /debug, /plugins, /trace - each own a domain: /config writes validated changes to disk, while /debug applies runtime-only overrides that vanish on restart, a distinction worth knowing before you change anything in production.

Because commands arrive over chat channels, permissions are part of the surface: several commands are owner-only, and /model requests default to admin approval. If a command seems to do nothing, check your role for that channel before debugging the Gateway.

All Commands

Core Slash Commands (50)

Command / SyntaxWhat it doesNotes
/new [model]Archive the current session and start a fresh oneType in any connected chat channel or the Control UI.
/reset [soft [message]]Reset the current session in placesoft keeps the transcript, drops reused CLI backend session ids, and reruns startup
/name <title>Name or rename the current sessionOmit the title to see the current name and a suggestion
/compact [instructions]Compact the session contextSee Compaction
/stopAbort the current runType in any connected chat channel or the Control UI.
/session idle <duration|off>Manage thread-binding idle expiryType in any connected chat channel or the Control UI.
/session max-age <duration|off>Manage thread-binding max-age expiryType in any connected chat channel or the Control UI.
/export-session [path]Owner-onlyExport the current session to HTML inside the workspace. Alias: /export
/export-trajectory [path]Export a JSONL trajectory bundle for the current sessionAlias: /trajectory
/think <level|default>Set the thinking level or clear the session overrideAliases: /thinking, /t
/verbose on|off|fullToggle verbose outputAlias: /v
/trace on|offToggle plugin trace output for the current sessionType in any connected chat channel or the Control UI.
/fast [status|auto|on|off|default]Show, set, or clear fast modeType in any connected chat channel or the Control UI.
/reasoning [on|off|stream]Toggle reasoning visibilityAlias: /reason
/elevated [on|off|ask|full]Toggle elevated modeAlias: /elev
/login [codex|openai|openai-codex]Pair Codex/OpenAI login from a private chat or Web UI sessionOwner/admin only
/model [name|#|status] [-s|--session]Show or select a modelDirect owner/admin selections request a configured-default update; -s changes only this session
/models [provider] [page] [limit=<n>|all]List configured/auth-available providers or modelsType in any connected chat channel or the Control UI.
/queue <mode>Manage active-run queue behaviorSee Queue and Queue steering
/steer <message>Inject guidance into the active runAlias: /tell. See Steer
/helpShow the short help summaryType in any connected chat channel or the Control UI.
/commandsShow the generated command catalogType in any connected chat channel or the Control UI.
/tools [compact|verbose]Show what the current agent can use right nowType in any connected chat channel or the Control UI.
/statusShow execution/runtime status, Gateway and system uptime, plugin health, plus provider usage/quotaType in any connected chat channel or the Control UI.
/status pluginsShow detailed plugin health: load errors, quarantines, channel plugin failures, dependency issues, compatibility noticesRequires commands.plugins: true
/diagnostics [note]Owner-only support-report flowAsks for exec approval every time
/openclaw <request>Run the OpenClaw setup and repair helper from an owner DMType in any connected chat channel or the Control UI.
/tasksList active/recent background tasks for the current sessionType in any connected chat channel or the Control UI.
/context [list|detail|map|json]Explain how context is assembledType in any connected chat channel or the Control UI.
/whoamiShow your sender idAlias: /id
/usage off|tokens|full|reset|costControl the per-response usage footer (reset/inherit/clear/default clears the session override to re-inherit the...Type in any connected chat channel or the Control UI.
/skill <name> [input]Run a skill by nameType in any connected chat channel or the Control UI.
/learn [request]Draft one reviewable skill from the current conversation or named sources through Skill WorkshopType in any connected chat channel or the Control UI.
/loop [interval] <prompt>Owner-onlyRepeat a prompt in this conversation; omit the interval for self-paced checks
/loop statusOwner-onlyList loops bound to this conversation
/loop stop [name]Owner-onlyStop matching loops bound to this conversation
/allowlist [list|add|remove] ...Manage allowlist entriesText-only
/approve <id> <decision>Resolve exec or plugin approval promptsType in any connected chat channel or the Control UI.
/btw <question>Ask a side question without changing session contextAlias: /side. See BTW
/subagents list|log|infoInspect sub-agent runs for the current sessionType in any connected chat channel or the Control UI.
/focus <target>Bind the current Discord thread or Telegram topic to a session targetType in any connected chat channel or the Control UI.
/unfocusRemove the current thread bindingType in any connected chat channel or the Control UI.
/agentsList thread-bound agents for the current sessionType in any connected chat channel or the Control UI.
/config show|get|set|unsetcommands.config: true | Read or write openclaw.jsonOwner-only
/mcp show|get|set|unsetcommands.mcp: true | Read or write OpenClaw-managed MCP server configOwner-only
/debug show|set|unset|resetcommands.debug: true | Runtime-only config overridesOwner-only
/restartcommands.restart: true (default) | Restart OpenClawType in any connected chat channel or the Control UI.
/send on|off|inheritowner | Set send policyType in any connected chat channel or the Control UI.
/activation mention|alwaysSet group activation modeType in any connected chat channel or the Control UI.
/bash <command>Run a host shell commandAlias: ! <command>. Requires commands.bash: true

Subcommand Families (9)

Command / SyntaxWhat it doesNotes
/tools ...What the agent can use nowResults are session-scoped. Changing agent, channel, thread, sender
/loop ...Recurring conversation workSubcommand family; run without arguments to see current state.
/model ...Model selectionDirect owner/admin `/model <model>` requests **default scope**: it changes this session and starts a best-effort configured-default update. Adding `-s` uses **session scope**: only this sess
/config ...On-disk config writesConfig is validated before write. Invalid changes are rejected. `/config`
/mcp ...MCP server configSubcommand family; run without arguments to see current state.
/debug ...Runtime-only overridesSubcommand family; run without arguments to see current state.
/plugins ...Plugin managementGateways automatically because plugin source modules changed. Trusted ClawHub
/trace ...Plugin trace outputSubcommand family; run without arguments to see current state.
/btw ...Side questionsIn the Control UI, `/btw` and `/side` open the session rail and ask its

openclaw CLI (6)

Command / SyntaxWhat it doesNotes
openclaw setupAnd `openclaw onboard` verify inference first, then start OpenClaw for Gateway, workspace, channels, skills, and...Run in a terminal on the Gateway host.
openclaw setup --baselineCreates the baseline config and workspace without walking the guided onboarding flowRun in a terminal on the Gateway host.
openclaw configureChanges targeted parts of an existing setup: model auth, gateway, channels, plugins, or skillsRun in a terminal on the Gateway host.
openclaw channels addConfigures channel accounts after the baseline exists; a channel selection alone uses guided setup, while account,...Run in a terminal on the Gateway host.
openclaw status --usageShow Gateway status including usageRun in a terminal on the Gateway host.
openclaw updateUpdate OpenClaw to the latest releaseRun in a terminal on the Gateway host.

Frequently Asked Questions

What is the difference between /config and /debug in OpenClaw?

/config writes validated changes to the on-disk configuration; invalid changes are rejected. /debug applies runtime-only overrides that disappear when the Gateway restarts.

How do I reset a session without losing the transcript?

Use /reset soft. It keeps the transcript, drops reused CLI backend session ids, and reruns startup. Plain /reset resets in place, and /new archives the session and starts fresh.

How do I set up OpenClaw from scratch?

Run openclaw setup for guided onboarding (it verifies inference first), or openclaw setup --baseline to create the config and workspace without the walkthrough. Add chat accounts later with openclaw channels add.

Every entry on this page is a literal, typeable token taken from the official documentation linked above. Command sets in AI tools change quickly - the in-product command menu is always authoritative for your installed version.

Related prompt references

Claude Code (111) · Aider (43) · Manus (27) · All AI prompt references