Learn / How to use Netra Runtime with Open WebUI

How to use Netra Runtime with Open WebUI

Open WebUI is the most popular self-hosted chat interface: a ChatGPT-style UI you run yourself, with users, chat history, RAG, and multi-model support. It connects to any OpenAI-compatible backend, so pointing it at a Netra Runtime deployment gives your team a private chat UI on top of a model you own. Setup is one connection form.

What you need

  • Open WebUI running (typically via Docker) with admin access; the Open WebUI docs cover installation.
  • A Netra Runtime API key from your dashboard at app.netraruntime.com. The API base URL is https://api.netraruntime.com/v1 (self-hosted deployments use their own endpoint URL instead).

Step 1: add the connection

Open the Admin Panel → Settings → Connections, and under OpenAI API add a connection:

Field Value
API Base URLhttps://api.netraruntime.com/v1
API KeyYour Netra API key

Save, and Open WebUI queries the connection's models endpoint. Every model your Netra deployment serves appears in the model picker automatically; there is no manual model registration.

Alternative: environment variables

For infrastructure-as-code setups, pass the connection at container start instead of clicking through the UI:

docker run -d -p 3000:8080 \
  -e OPENAI_API_BASE_URL="https://api.netraruntime.com/v1" \
  -e OPENAI_API_KEY="your-netra-api-key" \
  -v open-webui:/app/backend/data \
  ghcr.io/open-webui/open-webui:main

Step 2: chat

Pick your Netra model in the model selector and start chatting. Responses stream token by token, and every Open WebUI feature that layers on top of the model (document uploads and RAG, system prompts per model, usage controls for team members) works against your Netra endpoint unchanged.

Troubleshooting

  • No models in the picker. The connection URL must end at /v1, and the container must be able to reach your endpoint. Verify from inside the container if unsure.
  • Endpoint on the same host as Docker. Use host.docker.internal instead of localhost in the base URL; inside the container, localhost is the container itself.
  • Connection verified but chats fail. Usually an expired or scoped-down API key. Generate a fresh key in the Netra dashboard and update the connection.

Frequently asked questions

Why don't my Netra models show up in Open WebUI?

Open WebUI fills its model picker from the connection's /v1/models endpoint. Check that the connection URL ends in /v1, the API key is valid, and the Open WebUI container can reach the endpoint over the network.

Can Open WebUI use several providers at once?

Yes. You can add multiple OpenAI API connections, and models from every connection appear together in the model picker, so a Netra deployment can sit alongside Ollama or any other backend.

Does streaming work through Open WebUI on Netra Runtime?

Yes. Open WebUI streams responses by default and Netra Runtime supports token streaming over its OpenAI-compatible API, so replies render token by token.

Related