OrcaRouter provider support for SWE-AF
Thanks for building SWE-AF and for the engineering detail in the README. The factory model, decomposing a goal into scoped issues, fanning coders out across isolated worktrees, then letting reviewers, QA, and governance agents reshape the plan when a task is harder than expected, reads like a real path to shipping production PRs. PR #179 is concrete evidence: 10/10 issues, 217 passing tests, 34/34 acceptance criteria, 79 agent invocations, for $19.23.
SWE-AF already makes models a per-role knob, coder: opus, qa: haiku, across Claude, OpenRouter, OpenAI, and Google. Teams running autonomous agent fleets are exactly the users who gain from more model options: they want to match capability and cost per role, and keep builds moving when a provider rate-limits or degrades.
Problem
Each new vendor today means more key management, and builds spanning thousands of agent invocations inherit a single provider's risk.
Proposed Solution
I'm an engineer on the OrcaRouter team, and I'd like to propose OrcaRouter as an optional provider; it would not replace or alter any existing provider. OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication, so the expected integration point is the existing runtime/provider resolution: another OpenAI-compatible endpoint behind an env key that the per-role model fields can point at, like OpenRouter today. This is a proposal only, nothing is implemented or tested yet.
The most relevant capabilities for SWE-AF users:
- Many models through one endpoint: chat, reasoning, image, and video models from multiple vendors, widening the per-role model choices in SWE-AF's
modelsmap. - Automatic routing and provider failover for fleets that adapt to degraded runs.
- Usage tracking and budgets to attribute and cap spend per role or build.
OrcaRouter is already part of the open-source ecosystem: OpenCode (which powers the open_code runtime) can point at it, and Dify and RAGFlow integrate it as a provider. Full disclosure: OrcaRouter runs an optional open-source partner program where approved OSS projects can receive a 5% revenue share from usage attributed to their integration. Participation is not a precondition for integrating, and I would follow whatever disclosure or governance requirements SWE-AF prefers.
Alternatives Considered
Sticking with current providers and adding vendor keys directly, or self-hosting a router. An optional provider adds choice without migration; it is complementary, not a replacement.
Acceptance Criteria
- [ ] Maintainers confirm an optional OrcaRouter provider is in scope.
- [ ] A documented config path to select OrcaRouter.
- [ ] Existing providers (
claude_code,open_code,codex) remain unchanged. - [ ] Docs updated; provider architecture unchanged.
Projects built with OrcaRouter are listed at https://www.orcarouter.ai/built-with. I'd welcome your thoughts on fit, and with your go-ahead I'd be glad to submit an implementation PR.