Skip to main content
Connects to a self-hosted or hosted MeepaChat instance via the Bot Gateway WebSocket.

Prerequisites

  • A running MeepaChat instance
  • A bot account with a token (BOT_ID.BOT_SECRET) — see Bot Gateway for how to create one

Configuration

In ~/.meepagateway/agents/<id>/agent.yaml:
connectors:
  - type: meepachat
    url: "wss://chat.example.com/api/bot-gateway"
    bot_token: "123.abc456def789"
url
string
required
WebSocket URL for the MeepaChat Bot Gateway. Use wss:// for TLS, ws:// for local instances.Example: "wss://chat.example.com/api/bot-gateway"
bot_token
string
required
Bot token in BOT_ID.BOT_SECRET format.Example: "123.abc456def789"

Environment Variables

Store the token in an environment variable instead of the config file:
export MEEPA_BOT_TOKEN="YOUR_BOT_ID.YOUR_BOT_SECRET"
Then reference it in the config:
connectors:
  - type: meepachat
    url: "wss://chat.example.com/api/bot-gateway"
    bot_token: "$MEEPA_BOT_TOKEN"

Behavior

  • Connects to /api/bot-gateway via WebSocket with Authorization: Bot <token> header
  • Auto-subscribes to all channels the bot belongs to on connect
  • Reconnects automatically on disconnect
  • Bot’s own messages are filtered to prevent self-loops

Self-Hosted URL Examples

SetupURL format
Same machinews://localhost:8091/api/bot-gateway
Local networkws://192.168.1.50:8091/api/bot-gateway
Tailscalewss://chat.your-tailnet/api/bot-gateway
Public domainwss://chat.example.com/api/bot-gateway
Docker networkws://meepachat:8091/api/bot-gateway

Self-Signed Certificates

For instances with a private CA:
export SSL_CERT_FILE=/path/to/ca.crt
meepagateway start
Or disable TLS verification (not recommended for production):
connectors:
  - type: meepachat
    url: "wss://chat.internal/api/bot-gateway"
    bot_token: "$MEEPA_BOT_TOKEN"
    tls_verify: false