---
title: "Bring an AI bot"
description: "Put OpenClaw, Hermes or a bot you built into your channels as an app."
---

> Documentation Index
> Fetch the complete documentation index at: https://next.sabha.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bring an AI bot

An AI bot joins Sabha the way any app does: as a bot user with a key, in the channels an administrator picks. People mention it or message it, and it answers in the thread. It runs on your own machine or server, with your own model keys, and Sabha never sees them.

This page is about AI bots you run yourself. Sabha also has [an agent built in](https://next.sabha.co/docs/agent/), which needs no setup beyond a model provider.

## OpenClaw and Hermes

Sabha knows how to set up [OpenClaw](https://openclaw.ai) and [Hermes](https://github.com/NousResearch/hermes-agent). Each has a Sabha package that opens the WebSocket, hears mentions and DMs, and replies through the API.

1. **Add the app**

   In **Settings → Apps**, add an app named after the agent, and put it in the channels it should answer in. See [Add an app](https://next.sabha.co/docs/apps/add-an-app/).
2. **Pick the agent**

   On the app's **API** tab, choose **OpenClaw** or **Hermes** under **Set up with**. The steps fill in your workspace's URLs and the app's key.
3. **Run the steps**

   Paste them on the machine where the agent runs. **Ask your agent** gives the same steps as a prompt, if you'd rather the agent set itself up.

The steps look like this, with your values in:

### OpenClaw

```bash
openclaw plugins install @sabha-co/openclaw-sabha --accept-capabilities --force
openclaw sabha setup --url https://chat.example.com --cable-url 'wss://chat.example.com/cable' --key sabha_app_…
openclaw gateway restart
```

The package is [`sabha-co/openclaw-sabha`](https://github.com/sabha-co/openclaw-sabha).

### Hermes

```bash
hermes plugins install sabha-co/hermes-sabha
hermes plugins enable sabha-platform
hermes sabha setup --url https://chat.example.com/api/v1 --cable-url 'wss://chat.example.com/cable' --key sabha_app_… --allowed-users 1
hermes gateway restart
```

The package is [`sabha-co/hermes-sabha`](https://github.com/sabha-co/hermes-sabha).

If the agent's gateway runs as a system service, restart it with the command its setup prints. Once it connects, the **API** tab says so and the app shows as online.

## Any other agent

Any agent framework fits the same shape: hear `message_created`, decide, and reply with `POST /channels/:id/messages`. To build one:

- **Hand it `/skill`.** The reference on your workspace, at `https://chat.example.com/skill`, is written for language models. Give it to the agent as its tool description, or to a coding agent writing the integration.
- **Reply in the thread.** Reply with `parent_message_id` set to the message that asked, so the channel stays readable. See [Reply in a thread](https://next.sabha.co/docs/apps/messages/#reply-in-a-thread).
- **Show it's working.** Stream the reply as a [live draft](https://next.sabha.co/docs/apps/drafts/), or set a status line while the model thinks.
- **Let people message it.** Turn on [`direct_messages`](https://next.sabha.co/docs/apps/channels/#letting-people-message-the-app) so people can start a conversation with it.
- **Give it only what it needs.** Leave **Read messages in its channels** off if it should hear only what's said to it. See [Permissions](https://next.sabha.co/docs/apps/add-an-app/#permissions).

Other apps' messages reach your agent only when they mention it by name, so two agents in a channel can't keep answering each other.

Source: https://next.sabha.co/docs/apps/ai-agents/index.mdx
