Add OrcaRouter pre-configured provider#362
Open
jinhaosong-source 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.
Description of the Change
Problem
PentAGI reaches OpenAI-compatible aggregators (OpenRouter, DeepInfra, Novita) through the
custom LLM endpoint with a pre-built provider config, but has none for OrcaRouter.
OrcaRouter is an OpenAI-compatible model-routing gateway — one
endpoint and API key fronting 150+ models with adaptive per-request routing, plus optional
gateway-level security controls for AI agents.
Solution
Add a pre-configured provider file
examples/configs/orcarouter.provider.yml, modeled on theexisting
openrouter.provider.yml, mapping each agent role to namespaced OrcaRouter models(e.g.
openai/gpt-5.5,google/gemini-3.5-flash,anthropic/claude-sonnet-4.6). It is usedthrough the existing custom LLM endpoint — no code changes:
README is updated to list OrcaRouter alongside the other pre-configured aggregators (usage
example,
.envsnippet, and the LiteLLM*_PROVIDERprefix list).Closes #
Type of Change
Areas Affected
Testing and Verification
Test Configuration
Test Steps
.env(with a realsk-orca-key).ctester -config /opt/pentagi/conf/orcarouter.provider.ymlTest Results
openrouter.provider.yml(same agent-role keys and value schema).
ctesterverification requires an OrcaRouter API key and is expected to be run in alive environment.
Security Considerations
as the existing OpenRouter/DeepInfra/Novita configs).
LLM_SERVER_KEY; no key material is committed.Performance Impact
None. This is a configuration file plus documentation; no code paths change.
Documentation Updates
.envexample, LiteLLM prefix list)examples/configs/orcarouter.provider.yml)Deployment Notes
No new first-class provider or migration. OrcaRouter is consumed via the existing custom LLM
endpoint variables:
LLM_SERVER_URL,LLM_SERVER_KEY,LLM_SERVER_CONFIG_PATH, and(optionally)
LLM_SERVER_PROVIDER=orcarouterfor LiteLLM model prefixing.Checklist
Code Quality
go fmtandgo vet(for Go code)pnpm run lint(for TypeScript/JavaScript code)Security
Compatibility
Documentation
Additional Notes
Disclosure: I'm an engineer on the OrcaRouter team.
Notes for reviewers:
*.provider.ymlused via the custom endpoint) ratherthan adding a first-class provider.
before relying on cost figures. OrcaRouter also returns per-request upstream cost.
orcarouter/autois a virtual adaptive router. For tool-calling(agentic) use, pin explicit tool-capable models — which this config does.