Skip to main content

Overview

Open WebUI is an open-source, self-hosted chat interface. It supports OpenAI-compatible endpoints directly in the UI, so adding the AI Gateway as a connection routes every chat through Orq.ai with the full model catalog, unified tracing, and cost tracking. This page covers model routing, tracing and MCP tool servers.

Prerequisites

Setup

1

Start Open WebUI

Run the container, then open http://localhost:3000 and create the admin account (the first user to sign up becomes the admin):
For other install methods, see the Open WebUI quick start.
2

Add the AI Gateway as an OpenAI connection

Go to Settings → Admin Settings → Connections, then add a connection under OpenAI API:
  • URL: https://my.orq.ai/v3/router exactly, with no trailing path
  • Auth: Bearer
  • API Key: the Orq.ai API key
Leave Model IDs empty to include every enabled model from the AI Gateway, then Save.
Open WebUI Edit Connection panel with the URL set to the Orq.ai v3 router endpoint and Auth set to Bearer with an API Key field

Adding the AI Gateway as an OpenAI connection in Open WebUI

3

Select a model

Enabled Orq.ai models appear in the selector at the top of a new chat. To curate the list, go to Admin Settings → Models and add provider-prefixed IDs (for example openai/gpt-5.6-sol, anthropic/claude-sonnet-5) from Workspace Settings → Models.

MCP Gateway

The MCP Gateway serves the tools, resources and prompts of the MCP Servers linked to it. Open WebUI registers external tool servers in the admin panel, with no configuration file:
  1. Open Settings → Integrations → External Tool Servers and select + Add Connection.
  2. Set the type to MCP (Streamable HTTP) and the URL to https://my.orq.ai/v3/mcp/<gateway-key>.
  3. Choose OAuth 2.1, register the client, then have each user authorize it from the chat + menu.
To authenticate with an API key instead, choose Bearer and add an Authorization header with the key. Keep WEBUI_SECRET_KEY stable, or stored OAuth tokens fail to decrypt after a restart.

Troubleshooting

The connection URL has an extra or trailing path, or the model fetch did not run. Confirm the URL is exactly https://my.orq.ai/v3/router, or add models manually under Admin Settings → Models.
A different connection is handling the request. Make sure the AI Gateway connection is selected, and disable any direct OpenAI connection to route exclusively through Orq.ai.
Confirm the API Key is a valid Orq.ai API key, not an OpenAI key.

Verification

Start a new chat, choose an Orq.ai model, and send a message. The response appears in the chat, and the request appears in Orq.ai Traces with the selected model identifier.