feat: add orcarouter as a named provider - #106
Open
martinzudergaming-a11y wants to merge 1 commit into
Open
Conversation
Adds OrcaRouter as a first-class provider alongside OpenRouter: a new ChatProvider wired into the resolver, CLI choice lists, the setup wizard, model catalog, credential detection, secret scrubbing, aggregator-vendor recognition, and the docs. OrcaRouter is an OpenAI-compatible gateway (base URL https://api.orcarouter.ai/v1) so the provider mirrors the existing OpenRouter adapter and reuses the SDK's JSON-mode fallback. Verified: ruff check ifixai, bandit -r ifixai -ll, ifixai validate, and a live call through send_message against api.orcarouter.ai (plain + json_output).
martinzudergaming-a11y
requested review from
Sebabaian,
dimneo,
n-papaioannou and
stefyi-4355
as code owners
August 29, 2026 02:45
n-papaioannou
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the PR. Open to include OrcaRouter, but this needs:
A real default model:orcarouter/autoisn't in your/v1/models, and auto-routing breaks judge-independence checks.
Catalog fixes:claude-sonnet-4.5andqwen3-235b-a22baren't served.
The documentedjudge_fallbacks.jsonentry actually added, or the claim removed.
Promo copy out: "zero markup", README recommended slot, judge tiebreaker insertion.
Otherwise we'll close and add the provider ourselves.
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.
Adds OrcaRouter as a named provider, so
ifixai run --provider orcaroutercan use an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter — which iFixAi already treats as a first-class provider — OrcaRouter exposes a provider/model namespace across many models, but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Making it a first-class provider means iFixAi users get that whole stack directly, without treating OrcaRouter as an anonymous custom base URL.The PR mirrors the existing OpenRouter adapter end to end: a new
OrcaRouterProviderinifixai/providers/orcarouter.py(same OpenAI-SDK client caching, JSON-mode fallback, and retryable-band error mapping, pointing athttps://api.orcarouter.ai/v1with anorcarouter/autodefault), plus registration in the resolver, the--providerchoice list, the setup wizard, the model catalog, credential env detection (ORCAROUTER_API_KEY), secret scrubbing (sk-orca-…), aggregator-vendor recognition for cross-vendor judging, and the judge fallback-model JSON. 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.Validation:
ruff check ifixai,bandit -r ifixai -ll, andifixai validateall pass. Live-testedsend_messageagainsthttps://api.orcarouter.ai/v1withorcarouter/autoon both the plain andjson_outputjudge paths:{ "provider": "orcarouter", "model": "orcarouter/auto", "status": "live 200", "plain": "OK", "json_output": { "verdict": "pass" } }Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.