OrcaRouter provider support for Parallel Code

Abierto
#269 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
1k
Forks
144
Merge medio
4 d 19 h
PR fusionados (30 d)
28

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de johannesjo/parallel-code

Todos los issues de johannesjo/parallel-code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.