OpenClaw
Connect the OpenClaw autonomous agent framework to Open WebUI.
OpenClaw is an open-source, self-hosted autonomous AI agent framework. It gives your AI "hands": the ability to execute shell commands, read and write files, browse the web, and connect to messaging platforms like Telegram, Slack, and WhatsApp.
OpenClaw provides an OpenAI-compatible API endpoint, making Open WebUI a natural choice for a polished chat frontend. There are two distinct ways to integrate:
| Method | Best For |
|---|---|
| API Connection | Using Open WebUI as the full chat frontend for your OpenClaw agents |
| Channels Plugin | Having an OpenClaw bot participate alongside humans in Open WebUI Channels |
- OpenClaw installed on your machine (getting started)
- Node.js 22+ (24 recommended)
- An API key from a supported LLM provider (Anthropic, OpenAI, etc.)
- Open WebUI running (via Docker, pip, or desktop app)
- ~15 minutes to complete this setup
Method 1: API Connection
Use Open WebUI as the primary chat interface for your OpenClaw agent. This is the simplest and most common approach.
Step 1: Install OpenClaw
If you haven't installed OpenClaw yet:
# macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iexOr install via npm:
npm install -g openclaw@latestThen run the onboarding wizard to configure your LLM provider and name your agent:
openclaw onboardStep 2: Enable the OpenAI-Compatible API
By default, the OpenAI-compatible endpoint is disabled for security. Enable it in your OpenClaw configuration file:
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": {
"enabled": true
}
}
}
}
}If the gateway is already running, restart it for changes to take effect.
Step 3: Start the Gateway
openclaw gatewayThe gateway starts on port 18789 by default. Verify it's running:
openclaw gateway statusStep 4: Add the Connection in Open WebUI
- Open Open WebUI in your browser.
- Go to ⚙️ Admin Settings → Connections → OpenAI.
- Click ➕ Add Connection.
- Enter the following:
| Setting | Value |
|---|---|
| URL | http://localhost:18789/v1 |
| API Key | Your OpenClaw Gateway bearer token |
- Click the ✅ checkmark to verify, then Save.
Replace localhost with host.docker.internal:
http://host.docker.internal:18789/v1
Step 5: Start Chatting!
Your OpenClaw agent should now appear in the model dropdown. Select it and start chatting. The agent has full access to all its configured tools through Open WebUI's interface.
OpenClaw uses the model field to route to different agents:
| Model ID | Routes To |
|---|---|
openclaw/default | Your configured default agent |
openclaw/<agentId> | A specific named agent |
If you have multiple agents configured, they'll each appear as separate "models" in the dropdown.
Method 2: Channels Plugin
The Channels plugin is a community-contributed integration and is not maintained by the Open WebUI or OpenClaw teams. Use at your own discretion and refer to the plugin repository for support.
Want your OpenClaw agent to participate in Open WebUI Channels as a bot user, reading messages, replying, and interacting alongside human users? Use the community Channels plugin.
Step 1: Create a Bot Account in Open WebUI
- Log into Open WebUI as an Administrator.
- Go to Admin Panel → Users.
- Create a new user account for the bot (e.g.,
openclaw-bot@yourdomain.com). - Add this bot user to the channels you want it to monitor.
Make sure Channels are enabled in your Open WebUI instance (Admin Settings → General).
Step 2: Install the Plugin
In a secure chat session with your OpenClaw agent (via its built-in dashboard or terminal), say:
"I want to use the Open WebUI Channels plugin:
https://github.com/skyzi000/openclaw-open-webui-channels"
OpenClaw will automatically download and install the plugin.
Step 3: Configure the Connection
Tell your OpenClaw agent:
"I want to connect to Open WebUI Channels."
It will prompt you for the following:
| Setting | What to Enter |
|---|---|
| Base URL | Your Open WebUI URL (e.g., http://localhost:3000) |
| The bot account email from Step 1 | |
| Password | The bot account password |
| Channel IDs | (Optional) Specific channel IDs to monitor, or leave blank for all |
Always configure credentials in a private chat environment. The plugin stores them in ~/.openclaw/openclaw.json under the channels.open-webui section.
Step 4: Verify
Open a connected channel in Open WebUI and mention the bot by username (e.g., @openclaw-bot). If it responds, you're all set!
OpenClaw's Built-In Dashboard
OpenClaw also includes its own zero-installation web dashboard for managing agents, viewing logs, and monitoring system resources:
openclaw dashboardThis opens at http://localhost:18789 by default. It's a great companion to Open WebUI. Use the dashboard for agent management and Open WebUI for conversations.
Troubleshooting
Connection refused
- Ensure the gateway is running:
openclaw gateway status - Verify the port (default is
18789, not8000or11434) - Confirm you appended
/v1to the URL
Verification fails but models don't load
The URL must be exactly http://localhost:18789/v1. The /v1 suffix is required for model discovery.
Docker networking issues
If Open WebUI runs in Docker, localhost points to the container itself. Use host.docker.internal instead. On Linux without Docker Desktop:
docker run --add-host=host.docker.internal:host-gateway ...Channels bot not responding
- Verify the bot user has been added to the target channel
- Check that Channels are enabled in Admin Settings → General
- Ensure the bot credentials are correct in the OpenClaw plugin config (
~/.openclaw/openclaw.json)
Learn More
- OpenClaw Documentation - Full docs, skills, and agent configuration
- Channels Plugin (Community) - Plugin source and issues
- Open WebUI Channels - Learn more about the Channels feature