feat: add OrcaRouter as a named model provider - #503
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
Conversation
Registers OrcaRouter (https://www.orcarouter.ai) as a first-class OpenAI-compatible provider, mirroring the existing OpenRouter wiring: prefilled endpoint, ORCAROUTER_API_KEY (sk-orca- keys), server + GUI key detection, verify support, three curated matrix models (Claude Sonnet 5, GPT-5.5, DeepSeek V4 Pro), a GUI logo and keys link, and tests. 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.
Summary
Adds OrcaRouter as a named model provider, wired the same way the existing OpenRouter and other OpenAI-compatible aggregator providers are registered — so the model picker, config reference, and docs stay consistent.
Changes
coworker/providers/registry.py— neworcarouterdescriptor: prefilledhttps://api.orcarouter.ai/v1endpoint,ORCAROUTER_API_KEYenv var, andsk-orca-key detection (ordered before thesk-or-OpenRouter check, server-side).coworker/providers/matrix.py— curatedorcarouter:matrix entries for Claude Sonnet 5, GPT-5.5, and DeepSeek V4 Pro (context windows verified against the OrcaRouter pricing API).coworker/server/manager.py— suggested models for the add-model form.orcarouter.svg), provider gallery keys link, and client-sidesk-orca-key detection inapi.ts.README.md— OrcaRouter added to the supported-provider line.test_providers.pyandtest_provider_verify.py.OrcaRouter is an OpenAI-compatible model routing gateway that brings 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax and xAI behind a single endpoint and API key. Beyond routing, it 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. This PR registers it as a named provider so users can opt in directly.
I'm an engineer on the OrcaRouter team.
QA
pytest tests/test_providers.py tests/test_provider_router.py tests/test_provider_verify.py— 77 passed.boto3/slack-boltand Windows-permission checks).npx tsc --noEmitclean;npx vitest run— 111 passed.complete(),stream(), and a tool round-trip all pass through the new provider path.