Add MagmaRouter to Open WebUI

Add MagmaRouter to Open WebUI

Open WebUI is protocol-first: it treats any OpenAI-compatible endpoint as an OpenAI connection. Add MagmaRouter in the admin UI or through environment variables.

Base URL
https://api.magmarouter.com/v1
API key
Get one, starts sk-mr-
Example model
glm-5.3-xploded

Admin Settings, Connections

Go to Settings, then Admin, then Connections. Next to "Manage OpenAI API Connections", add a connection:

  • URL: https://api.magmarouter.com/v1
  • API Key: your sk-mr-... key

Leave Model IDs empty to auto-detect the catalogue, or set an allowlist to show only the models you want. Save, and the models appear in the selector.

Or environment variables

Shell
OPENAI_API_BASE_URL=https://api.magmarouter.com/v1
OPENAI_API_KEY=sk-mr-...

Open WebUI's default base URL is https://api.openai.com/v1, so keep the /v1 on the MagmaRouter URL. It caches the model list; saving the connection refreshes it immediately.

Pick a model

Each page has the Open WebUI setup with that model's id and limits filled in, and what a session costs.

Related guides