π€ Connect an Agent
Use Open WebUI as the chat frontend for autonomous AI agents.
AI agents go beyond simple model providers. They can execute terminal commands, read and write files, search the web, manage memory, and chain complex workflows. Because many agent frameworks expose an OpenAI-compatible API, Open WebUI can serve as a polished, full-featured chat interface for them with minimal setup.
How Is This Different from a Provider?β
When you connect a provider, you're connecting to a model. It receives your message and returns a response. That's it.
When you connect an agent, you're connecting to an autonomous system that can:
- π₯οΈ Run terminal commands on your machine
- π Read and write files in your workspace
- π Search the web for real-time information
- π§ Maintain memory across conversations
- π§© Use skills and plugins to extend its capabilities
- π Chain multiple tool calls to solve complex tasks
The agent decides when and how to use these tools based on your message, and Open WebUI displays the results in a familiar chat interface.
Available Agentsβ
| Agent | Description | Guide |
|---|---|---|
| Hermes Agent | Autonomous agent by Nous Research with terminal, file ops, web search, memory, and extensible skills | Set up Hermes Agent β |
| OpenClaw | Open-source self-hosted agent framework with shell access, file operations, web browsing, and messaging channel integrations | Set up OpenClaw β |
How It Worksβ
Regardless of which agent you connect, the architecture is the same:
ββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββ
β β HTTP β β Tools β β
β Open WebUI ββββββββββΆβ Agent Gateway ββββββββββΆβ Terminal, β
β (frontend) βββββββββββ (API server) βββββββββββ Files, Web β
β β Stream β β Resultsβ β
βββββββ βββββββββ ββββββββββββββββββββ ββββββββββββββββ
- You type a message in Open WebUI
- Open WebUI sends it to the agent's API server (just like it would to OpenAI)
- The agent decides which tools to use, executes them, and reasons about the results
- The final response streams back to Open WebUI with optional progress indicators
- You see the response in the familiar chat interface, with full conversation history, user accounts, and all Open WebUI features
Because agents speak the standard OpenAI Chat Completions protocol, adding one is as simple as adding the URL and API key in Admin Settings β Connections β OpenAI. No plugins, no pipes, no middleware required.