Skip to content

feat: add OrcaRouter as a built-in API agent - #94

Open
Marc-oss-hub wants to merge 1 commit into
bcurts:mainfrom
Marc-oss-hub:feat/orcarouter-agent
Open

feat: add OrcaRouter as a built-in API agent#94
Marc-oss-hub wants to merge 1 commit into
bcurts:mainfrom
Marc-oss-hub:feat/orcarouter-agent

Conversation

@Marc-oss-hub

Copy link
Copy Markdown

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 model anthropic/claude-sonnet-5, key read from ORCAROUTER_API_KEY
  • windows/start_orca.bat + macos-linux/start_orca.sh: one-click launchers that check the API key, auto-start the server, and run wrapper_api.py orca
  • config.local.toml.example: documented OrcaRouter example block alongside the MiniMax one
  • README.md: OrcaRouter added to the built-in agents list, launcher lists, @mention lists, and a new "OrcaRouter (cloud gateway)" section

Why 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 @orca agent, 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

  1. Get an API key at www.orcarouter.ai
  2. export ORCAROUTER_API_KEY=your-key-here
  3. Launch windows\start_orca.bat (or sh macos-linux/start_orca.sh), then mention @orca in the chat.

Like MiniMax, the agent degrades gracefully without a key set, and you can switch models by editing model in the [agents.orca] block.

Verification

  • config.toml parses and the orca agent loads (tomllib)
  • pytest tests/ — 80 passed, 1 pre-existing Windows-only failure in test_identity_contract.py (latin-1 codec in the proxy test, unrelated; this change touches no Python)
  • Live check of the exact wrapper code path: POST {base_url}/chat/completions with anthropic/claude-sonnet-5 + ORCAROUTER_API_KEY returns a model response

I'm an engineer on the OrcaRouter team.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant