feat(manager): add OrcaRouter provider preset - #1824
Open
Marc-oss-hub wants to merge 1 commit into
Open
Conversation
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 provider preset in the Manager's provider picker, mirroring the existing OpenRouter preset. OrcaRouter is an OpenAI-compatible model routing gateway that exposes models from OpenAI, Anthropic, Google, DeepSeek, Qwen and others behind a single endpoint and API key, with namespaced model IDs such as
openai/gpt-5.5andanthropic/claude-sonnet-4.6. 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.Picking the "OrcaRouter" preset fills in the provider name, Base URL (
https://api.orcarouter.ai/v1), Chat Completions protocol, default model (openai/gpt-5.5) and a starter model list, so no manual endpoint typing is needed.What this changes
apps/codex-plus-manager/src/presets.ts: adds anorcarouterpreset in the aggregator section, alongside OpenRouter and the other gateway presets. The preset selector auto-derives the provider patch (name / base URL / protocol / model / model list / relay mode) from the existingPRESETSentries, so no other wiring is required.Why a separate preset rather than the OpenAI-compatible escape hatch
This mirrors how OpenRouter is already wired in this repo — a named aggregator preset that users can discover and pick directly, with its model list pre-filled. OrcaRouter requires namespaced model IDs (bare names are rejected by the gateway with
503 No available channel), so the preset setsopenai/gpt-5.5as the default and lists namespaced models inmodelList.How to use it
sk-orca-).openai/gpt-5.5,anthropic/claude-sonnet-4.6,google/gemini-3.1-pro-previewanddeepseek/deepseek-v4-flashare pre-listed;orcarouter/autois an adaptive router that picks an upstream model per request.Verification
npm run check(tsc --noEmit) passes.npm testpasses: 36 tests / 36 pass.npm run vite:buildpasses.https://api.orcarouter.ai/v1/chat/completionswith modelopenai/gpt-5.5and ansk-orca-key returnedHTTP 200with the expected reply.I'm an engineer on the OrcaRouter team.