gitagent icon indicating copy to clipboard operation
gitagent copied to clipboard

OrcaRouter provider support for Gitagent

Open martinzudergaming-a11y opened this issue 2 months ago • 1 comments

Gitagent's "agents as repos" model is genuinely useful: identity (SOUL.md), rules (RULES.md), tools, skills, and a git-committed memory/ are version-controlled files inside the agent's own repository. You can fork an agent, branch an alternate personality, git log an agent's memory evolution, and diff rule changes like any other codebase; for people running long-lived personal or embedded agents, that auditable history is a real step beyond frameworks where every change is an untracked edit.

Models are addressed as provider:model-id with a model.preferred plus fallback list in agent.yaml, resolved through pi-ai; the README notes any OpenAI-compatible provider works. Since model choice is a first-class, file-declared decision, a new provider speaking the same protocol adds fallback options without changing how an agent is defined.

I'm an engineer on the OrcaRouter team, and I'd like to propose adding OrcaRouter as an optional provider for Gitagent. This would not replace or alter any existing provider; it would simply be one more choice alongside Anthropic, OpenAI, Google, xAI, Groq, and Mistral.

OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication, so the expected integration point is the existing provider abstraction where Gitagent resolves provider:model strings and routes to OpenAI-compatible endpoints; concretely this could surface as an orca:... model identifier usable in model.preferred or model.fallback. Nothing is implemented or tested yet; this issue is to gauge interest first.

A few OrcaRouter capabilities look especially relevant to Gitagent users:

  • Multiple chat and reasoning models through one endpoint, so an agent can reach different model families with a single API configuration.
  • Automatic model routing and provider failover, complementing the existing preferred + fallback mechanism with retries across upstream providers.
  • Usage tracking and budgets, which pair naturally with Gitagent's built-in cost telemetry (gitagent.cost_usd, gen_ai.chat spans) for per-agent spending visibility.

OrcaRouter is already appearing in the open-source ecosystem, with integrations including goose, Dify, and CAMEL and more listed at https://www.orcarouter.ai/built-with, which may help when judging compatibility and maintenance fit.

One transparent disclosure: OrcaRouter has an optional open-source partner program through which approved OSS projects can receive a 5% revenue share from OrcaRouter usage attributed to their integration. Participation is not a prerequisite for the integration, and I'd be glad to follow any disclosure or governance requirements Gitagent has.

I'd welcome the maintainers' thoughts on whether this fits the project's direction. With approval, I'm happy to submit an implementation PR.

martinzudergaming-a11y avatar Sep 09 '26 00:09 martinzudergaming-a11y

Thanks for the writeup and for disclosing the partner program upfront.

GitAgent already supports custom OpenAI-compatible endpoints via a provider:model@base-url string (or GITAGENT_MODEL_BASE_URL), so this should work today without code changes. We'd rather not add a dedicated orca: registry entry tied to a named provider with a revenue-share arrangement.

Closing for now — feel free to reopen if this doesn't cover it.

Nivesh353 avatar Sep 09 '26 07:09 Nivesh353