VTCode icon indicating copy to clipboard operation
VTCode copied to clipboard

OrcaRouter provider support for VT Code

Open nissrin2020ali-ux opened this issue 2 months ago • 1 comments

Description

VT Code describes itself as a secure, open, universal terminal coding agent in Rust - a harness, not just an LLM wrapper - built for interactive and long-running autonomous coding sessions in the terminal. Its runtime supplies the tools, sandbox, state, and verification, so a model's reasoning becomes safe, reviewable progress rather than raw completions.

The project already treats multi-provider use as a core pattern: 31 built-in providers, gateway entries such as OpenRouter and Vercel AI Gateway, and OpenAI-compatible [[custom_providers]] in vtcode.toml. I'm an engineer on the OrcaRouter team, and I'd like to propose OrcaRouter as one more optional endpoint there: extra routing, failover, and budget visibility for VT Code users, without touching the providers they already rely on.

Motivation

Long autonomous runs are exactly where provider choice pays off: a rate limit or outage at one upstream can stall a session that has been carefully building context. OrcaRouter exposes an OpenAI-compatible API with standard API-key authentication and routes requests across many chat, reasoning, image, and video models behind one endpoint, with automatic routing and failover when an upstream provider degrades. Its per-key usage tracking and budgets also complement the cost guardrails VT Code already emphasizes for autonomous and planning-heavy workflows.

Proposed Solution

Add OrcaRouter as an optional provider rather than a replacement. Following the project's existing extension model, the natural entry point is a [[custom_providers]] entry (a name, base_url, api_key_env, and a curated model list), possibly alongside a short provider guide under docs/providers/ - or a built-in provider if maintainers prefer parity with how OpenRouter is shipped. This is a proposal; no code has been written or tested yet. For reference, OrcaRouter is already integrated by open-source projects such as goose, OpenCode/models.dev, and Dify.

Alternatives

VT Code users can already point a [[custom_providers]] entry at any OpenAI-compatible endpoint themselves, so the alternative is a manual setup with no upstream-maintained model list or guide. An official entry would add verified defaults and documentation in one place.

Additional Context

Transparency disclosure: OrcaRouter runs an optional open-source partner program in which approved OSS projects can receive a 5% revenue share from OrcaRouter usage attributed to their integration. Participation is not a precondition for integration, and I'm happy to follow any disclosure or governance requirements VT Code has for such arrangements. More context: https://www.orcarouter.ai/built-with.

If supporting OrcaRouter as an optional provider sounds useful for VT Code users, I'd welcome your thoughts - and, with maintainer approval, I'd be glad to submit an implementation PR following the contribution guidelines.

nissrin2020ali-ux avatar Sep 06 '26 01:09 nissrin2020ali-ux

Hi @nissrin2020ali-ux, thank you! I love to add new providers to VT Code. I believe, the more the better for all users to have a choice. Feel free to submit a PR and I will merge it right away.

vinhnx avatar Sep 06 '26 07:09 vinhnx