Clawdbot Slash Commands

Use slash commands to interact with Clawdbot AI assistant. Learn available commands and how to create custom commands.

Clawdbot Slash Commands Overview

Slash commands provide quick access to common actions and skills. Type / followed by a command name to execute.

Built-in Commands

General Commands

CommandDescription
/helpShow available commands
/statusShow gateway status
/clearClear conversation
/resetReset session

Agent Commands

CommandDescription
/agentSwitch agent
/modelChange AI model
/personaChange persona

Session Commands

CommandDescription
/newNew conversation
/saveSave conversation
/exportExport transcript

Skill Commands

Skills that are user-invocable appear as slash commands:

CommandDescription
/commitGenerate commit message
/reviewCode review
/explainExplain code

Command Syntax

Basic Usage

/command

With Arguments

/command arg1 arg2

With Options

/command --option value

Creating Custom Commands

Via Skills

Create a skill with user-invocable: true:

---
name: my-command
description: My custom command
user-invocable: true
---

Instructions for the agent...

Via Config

{
  "commands": {
    "custom": [
      {
        "name": "todo",
        "description": "Add a todo item",
        "action": "run_agent",
        "prompt": "Add todo: {{args}}"
      }
    ]
  }
}

Provider-Specific Commands

Discord Slash Commands

Register slash commands with Discord:

{
  "providers": {
    "discord": {
      "slashCommands": {
        "register": true,
        "commands": ["help", "status"]
      }
    }
  }
}

Telegram Bot Commands

Register commands with BotFather:

clawdbot providers telegram register-commands

Command Dispatch

Direct Tool Dispatch

Bypass the model and call a tool directly:

---
name: exec
user-invocable: true
command-dispatch: tool
command-tool: bash
---

Agent Dispatch

Route to a specific agent:

---
name: code
user-invocable: true
command-dispatch: agent
command-agent: coder
---

Next Steps