Skip to content

channel

Terminal window
snippbot channel start # Start the channel adapter server
snippbot channel stop # Stop the adapter server
snippbot channel status # Check adapter server status
snippbot channel list # List configured channels

The channel adapter server receives webhooks from messaging platforms (Slack, Discord, Telegram, etc.) and routes messages to the appropriate agents based on your channel bindings.

These commands sign in to the daemon. Each time the daemon starts it writes a token for the CLI to cli_key inside your data folder (readable by you only), and the CLI uses it automatically. The token works only on this machine and only for the device and channel commands; it is not an API key and does not appear under Settings → API keys.

If a command says the daemon refused the request, restart the daemon (the token changes at every start). To reach a daemon on another machine, or to use your own key in a script, set SNIPPBOT_API_KEY to a key from snippbot auth create-key.


Start the channel adapter server.

Terminal window
snippbot channel start
# Adapter server started.
# Listening on port 18790

The adapter server runs independently from the main daemon on port 18790.


Stop the channel adapter server.

Terminal window
snippbot channel stop
# Adapter server stopped.

Check if the adapter server is running.

Terminal window
snippbot channel status # Human-readable
snippbot channel status --json # JSON output

Example output:

● Running Port 18790

List all configured messaging channels.

Terminal window
snippbot channel list
snippbot channel list --json

Example output:

┌──────────────┬─────────────┬──────────┬─────────┐
│ Platform │ Credentials │ Bindings │ Enabled │
├──────────────┼─────────────┼──────────┼─────────┤
│ Discord │ ✓ │ 1 │ yes │
│ Telegram │ ✓ │ 2 │ yes │
│ Slack │ — │ 0 │ no │
└──────────────┴─────────────┴──────────┴─────────┘

Channel credentials (bot tokens, webhook URLs, OAuth secrets) are configured via the Settings → Channels page in the web UI, or via the /api/channels REST API.

See the channel-specific setup guides: