OrcaRouter provider support for Parallel Code

Aperta
#269 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

First get maintainer guidance on the provider enum, Settings entry, and key storage, as the issue explicitly leaves those decisions open. Then read electron/ipc/ask-code.ts and ask-code-minimax.ts to understand the existing provider flow. Done means an optional OrcaRouter provider is implemented and tested without changing the existing providers.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

help wanted

Why Parallel Code is a great home for more model choice

Parallel Code runs AI coding CLIs — Claude Code, Codex, Gemini, Copilot, Antigravity — side by side, each task in its own git worktree and branch. That automatic isolation removes the merge conflicts that normally cap how many parallel agents one developer can safely run; the reviewable diffs you merge or toss are the payoff.

Ask Code already makes the model behind a question configurable — Claude Code by default or MiniMax M2.7, called as a direct chat/completions endpoint with a Bearer API key set in Settings. A gateway serving many models through one endpoint would let those users pick the right model per question instead of re-pointing provider config each time.

Proposal: OrcaRouter as an optional Ask Code provider

I'm an engineer on the OrcaRouter team. This is a proposal for maintainer feedback, not finished code — nothing is implemented or tested yet.

The seam is electron/ipc/ask-code.ts, where AskCodeProvider is currently 'claude' | 'minimax', and the MiniMax backend (ask-code-minimax.ts) is a fetch to https://api.minimax.io/v1/chat/completions with an Authorization: Bearer header, the API key held in the main process. OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication, so an option could follow the same shape as the MiniMax backend. I'd want your call on where the provider enum, Settings entry, and key storage should live before writing code. Adding it would be purely optional and would not replace or change the Claude Code, MiniMax, or per-agent CLI setups you already ship.

Capabilities most relevant to Parallel Code's users:

  • Multiple chat and reasoning models through one endpoint — one OrcaRouter key and base URL lets Ask Code reach models beyond today's two backends.
  • Automatic routing and provider failover — if an upstream model is rate-limited or degraded, a routed request falls back to another capable model instead of failing the Q&A.
  • Usage tracking — per-project request and spend visibility for teams that share the app.

OrcaRouter already has open-source integrations including Dify, goose, promptfoo, and OpenCode — the last an agent Parallel Code can itself dispatch. For a project that highlights being free, open source, and without an extra platform fee, an optional gateway only adds a choice.

One transparent note: OrcaRouter's optional open-source partner program gives approved OSS projects a 5% revenue share from OrcaRouter usage attributed to their integration. That is not a condition of integration, and I'd gladly follow whatever disclosure or governance rules Parallel Code prefers.

Existing integrations are listed at https://www.orcarouter.ai/built-with. If this direction seems useful, I'd welcome your thoughts — and, with your go-ahead, I'd be glad to submit an implementation PR.

Lingua principale
TypeScript
Stelle
1k
Fork
144
Merge medio
4g 19h
PR unite (30g)
28

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di johannesjo/parallel-code

Tutte le issue di johannesjo/parallel-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.