feat(open-webui): add OrcaRouter as OpenAI-compatible provider - #333
Open
bangla24bdrang-lab wants to merge 1 commit into
Open
feat(open-webui): add OrcaRouter as OpenAI-compatible provider#333bangla24bdrang-lab wants to merge 1 commit into
bangla24bdrang-lab wants to merge 1 commit into
Conversation
Pre-wire Open WebUI's OpenAI connection to OrcaRouter (https://api.orcarouter.ai/v1), mirroring the existing Ollama configuration. Add OPENAI_API_BASE_URL / OPENAI_API_KEY env vars to compose.yaml and document the default provider in README. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open WebUI: OrcaRouter as the default OpenAI-compatible provider
Description
ScaleTail's
open-webuiservice already wires the app container to a local Ollama instance. This PR adds the other half of Open WebUI's provider story — its OpenAI-compatible connection — and pre-wires it to OrcaRouter, fully parallel to how the service documents the OllamaOLLAMA_BASE_URLwiring and how Open WebUI's own docs describe an OpenRouter setup.The wiring mirrors the existing per-service
.envpattern:services/open-webui/compose.yaml— passesOPENAI_API_BASE_URLandOPENAI_API_KEYthrough to theapplicationcontainer, right next toOLLAMA_BASE_URL, with the same${VAR:-default}style already used elsewhere in the repo.services/open-webui/.env— newOpenAI-compatible provider (defaults to OrcaRouter)section declaringOPENAI_API_BASE_URL=https://api.orcarouter.ai/v1and an emptyOPENAI_API_KEY, with comments explaining how to switch to OpenAI or another provider.services/open-webui/README.md— documents the default connection under "What to document for users" and updates the.envvariable checklist.Why OrcaRouter as the named default rather than a generic custom base URL: OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding orcarouter as a first-class provider means this project's users can use that stack directly, without treating OrcaRouter as an anonymous custom base URL. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.
Related Issues
Verification
ORCAROUTER_API_KEY:GET https://api.orcarouter.ai/v1/models→HTTP 200, 204 models listed (e.g.orcarouter/auto,orcarouter/fusion).POST https://api.orcarouter.ai/v1/chat/completionswithmodel: orcarouter/auto→HTTP 200, auto-routed toMiniMax-M2.7.docker compose confignot run (Docker unavailable in this environment), but the Compose YAML parses cleanly and the new env passthrough uses the same${VAR:-default}interpolation already present in the repo.markdownlint(same config as.github/workflows/linting.yml) passes on the updatedREADME.md.Checklist
Additional Context
Switch to another OpenAI-compatible provider (e.g. OpenAI) by changing
OPENAI_API_BASE_URLin.env, or add more connections in the UI via Settings → Connections.Contact: Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.