feat: add OrcaRouter as a built-in API agent - #94
Open
Marc-oss-hub wants to merge 1 commit into
Open
Conversation
Mirrors the existing MiniMax built-in cloud API agent pattern: ships an [agents.orca] preset in config.toml (OpenAI-compatible base URL https://api.orcarouter.ai/v1, namespaced model anthropic/claude-sonnet-5, ORCAROUTER_API_KEY), dedicated start_orca.bat / start_orca.sh launchers, a config.local.toml example, and a README section. 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.
What this adds
Adds OrcaRouter as a built-in API agent, mirroring the existing MiniMax cloud API agent pattern. OrcaRouter is an AI gateway that serves OpenAI- and Anthropic-compatible endpoints from one base URL and one API key, so it plugs into agentchattr's existing API-agent wrapper with no code changes. 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.
Key changes
config.toml: ships an[agents.orca]preset alongside[agents.minimax]—base_url = "https://api.orcarouter.ai/v1", namespaced default modelanthropic/claude-sonnet-5, key read fromORCAROUTER_API_KEYwindows/start_orca.bat+macos-linux/start_orca.sh: one-click launchers that check the API key, auto-start the server, and runwrapper_api.py orcaconfig.local.toml.example: documented OrcaRouter example block alongside the MiniMax oneREADME.md: OrcaRouter added to the built-in agents list, launcher lists, @mention lists, and a new "OrcaRouter (cloud gateway)" sectionWhy a named preset
agentchattr already treats MiniMax as a first-class built-in cloud API agent (shipped
[agents.minimax]preset + dedicated launchers + README section). This mirrors that exact pattern so OrcaRouter gets the same discoverable slot — a visible@orcaagent, a working default model, and correct namespaced model IDs (anthropic/claude-sonnet-5,z-ai/glm-4.6, etc.) that the gateway requires. No generic "just edit base_url yourself" documentation.How to use it
export ORCAROUTER_API_KEY=your-key-herewindows\start_orca.bat(orsh macos-linux/start_orca.sh), then mention@orcain the chat.Like MiniMax, the agent degrades gracefully without a key set, and you can switch models by editing
modelin the[agents.orca]block.Verification
config.tomlparses and theorcaagent loads (tomllib)pytest tests/— 80 passed, 1 pre-existing Windows-only failure intest_identity_contract.py(latin-1codec in the proxy test, unrelated; this change touches no Python)POST {base_url}/chat/completionswithanthropic/claude-sonnet-5+ORCAROUTER_API_KEYreturns a model responseI'm an engineer on the OrcaRouter team.