Back to AI Q&A
How does Hermes Agent connect to Open WebUI?

How does Hermes Agent connect to Open WebUI?

AI Q&A Admin 311 views

Hermes Agent connects to Open WebUI, essentially populating Hermes' API Server as an OpenAI-compatible interface into Open WebUI. For those who want to use a web chat interface, but know that Open WebUI and CLI sessions are usually separate.

Basic steps

  1. Turn on API_SERVER_ENABLED=true on ~/.hermes/.env.
  2. Set up API_SERVER_KEY=your-secret-key.
  3. Start hermes gateway.
  4. Add OpenAI-compatible connection to Open WebUI.
  5. Fill in the Base URL http://host.docker.internal:8642/v1 or your server address, and the Key in API_SERVER_KEY.

Common limitations

File uploads, cross-interface history, cron proactive messaging don't necessarily work the way a normal chat product does. Open WebUI is primarily a chat portal and is not a complete replacement for the Hermes CLI and gateway.

In a word: Open WebUI connects to Hermes, the key is API Server, /v1 address, and API_SERVER_KEY.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More