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:
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 in
BOT_ID.BOT_SECRET format.Example: "123.abc456def789"Environment Variables
Store the token in an environment variable instead of the config file:Behavior
- Connects to
/api/bot-gatewayvia WebSocket withAuthorization: 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
| Setup | URL format |
|---|---|
| Same machine | ws://localhost:8091/api/bot-gateway |
| Local network | ws://192.168.1.50:8091/api/bot-gateway |
| Tailscale | wss://chat.your-tailnet/api/bot-gateway |
| Public domain | wss://chat.example.com/api/bot-gateway |
| Docker network | ws://meepachat:8091/api/bot-gateway |
