Multi-Channel Companions
BonzAI integrates with two orchestration backends that extend companion capabilities beyond the desktop app: OpenClaw and Hermes Agent. These let your companions respond to messages on WhatsApp, Telegram, Discord, and Mattermost — using the same AI pipelines as the desktop UI.
How It Works
External message (WhatsApp/Telegram/Discord/Mattermost)
→ OpenClaw Gateway (port 18789)
→ BonzAI webhook handler
→ Companion response (text + image + audio + video)
→ Reply sent back to channelMessages from external platforms are forwarded to the BonzAI renderer via IPC, processed through the same companion response pipeline as the desktop app, and sent back. Your companion's personality, voice, and visual style are consistent across all channels.
OpenClaw
The local language-model service provides:
OpenAI-compatible LLM API at
/v1/chat/completionsMulti-channel webhook gateway on port 18789
SKILL.md-based skill system for registering BonzAI capabilities
How BonzAI Integrates with OpenClaw
When you enable OpenClaw in BonzAI, the app:
Updates
~/.openclaw/agents/main/agent/models.jsonwith a BonzAI provider:Base URL:
http://127.0.0.1:3002/v1API format:
openai-completionsModel ID:
bonzai/bonzai-sovereign
Sets BonzAI as the default model in
~/.openclaw/openclaw.jsonConfigures Claude Sonnet as a fallback model
This means any LLM request through OpenClaw (from any channel) routes to your local BonzAI inference engine.
Supported Channels
QR code pairing via OpenClaw
Telegram
Bot token configuration
Discord
Bot token + server invite
Mattermost
Plugin installation
Each connected channel routes messages through BonzAI's local gateway and companion handler.
Hermes Agent
Hermes Agent by Nous Research is an alternative orchestrator with the same capabilities.
How BonzAI Integrates with Hermes
When you enable Hermes in BonzAI, the app:
Creates the directory
~/.hermes/skills/ai/bonzai/Installs a SKILL.md file that registers all BonzAI capabilities:
All LLM model endpoints
Image, audio, video, and vision pipeline access
Companion management commands
Webhook command routing
Adds environment variables to
~/.hermes/.env:BONZAI_BASE_URL— Flask server endpointBONZAI_API_KEY— Local API key
Enabling Orchestration
Step 1: Install OpenClaw or Hermes
Install either orchestrator on your system:
OpenClaw: Follow the OpenClaw installation guide
Hermes: Follow the Hermes Agent docs
Step 2: Enable in BonzAI
Open Network Settings (gear icon in the bottom bar)
Scroll to Agentic Orchestration
You'll see status indicators for each orchestrator:
"Not installed" — The orchestrator isn't detected on your system
Enable / Disable toggle — Click to activate or deactivate
Click Enable on your preferred orchestrator
Both orchestrators can run side by side without conflict.
Step 3: Connect a Channel
Follow your orchestrator's docs to connect a messaging platform (WhatsApp, Telegram, etc.). Once connected, messages from that platform flow through BonzAI automatically.
Webhook Commands
When messaging a BonzAI-connected channel, these commands are available:
Companion Chat
Once a companion is selected, any unprefixed message triggers a companion response with text, optional voice audio, and optional generated images.
Generation Commands
Companion Minting
!mint bare is instant — no AI generation needed. !mint companion requires BonzAI Desktop to be running for portrait and personality generation.
Minting uses the configured BonzAI companion contract and app chain.
Skills
Model Management
Provider Discovery
Message Formatting
Companion responses are formatted per-platform:
4,096 chars
Yes (file path)
Yes (file path)
Discord
2,000 chars
Yes (embed)
Yes (attachment)
Telegram
4,096 chars
Yes (file)
Yes (voice)
Mattermost
4,000 chars
Yes (file)
Yes (file)
Emotion tags in companion responses are mapped to emoji/color indicators automatically.
Architecture
Last updated