OrcaRouter provider support for ShellSage
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia tracciando la risoluzione del provider fastllm e il flusso esistente di base_url/api_key verso AsyncChat, quindi confronta i prefissi dei vendor attuali e le opzioni dei modelli CLI. Il lavoro è completato quando è integrato un provider opzionale compatibile con OrcaRouter senza modificare i provider esistenti, e il comportamento del provider è coperto dai check esistenti del progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
ShellSage's tmux integration is what makes it click: because it reads your pane history (or a named pane via --pid) and accepts piped input, a line like journalctl --since "1 hour ago" | ssage explain this error turns a stack trace into a plain-language diagnosis without leaving the terminal. The ssage_clear binding is a thoughtful design choice too — Ctrl-L gains real clear semantics for the assistant while your own scrollback stays intact.
That matters because people who live in a shell want answers where they already are, and model choice is part of that. ShellSage already resolves models through fastllm and accepts a custom base_url/api_key, so OrcaRouter would slot in as one more optional provider alongside Claude, GPT, and Ollama.
Proposal
I'd like to propose adding OrcaRouter as an optional provider. It would not replace or change any existing provider — Claude, GPT, Gemini, Ollama, OpenRouter, and the rest would keep working exactly as they do today.
I'm an engineer on the OrcaRouter team, so I'll be upfront about my angle here.
What this would give ShellSage users
- One endpoint, many models — chat, reasoning, image, and video models behind a single OpenAI-compatible API, so
--modelcan point at a much wider catalog. - Automatic routing and provider failover — if a provider degrades mid-session, a request routes to a healthy equivalent instead of dropping your question.
- Prompt caching — especially relevant here, since
history_lines = -1ships the whole terminal history on every call; caching makes that repeated context cheaper and faster. - Usage tracking and budgets — visibility into what a long-running shell session actually costs.
Integration
OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication. Concretely, this fits the abstraction you already have: an orcarouter-style prefix resolved by fastllm next to the current vendor prefixes, or simply the existing base_url / api_key config and CLI options, both of which already flow through to AsyncChat. To be clear, I haven't written or tested any code for this — it's a proposal for your consideration.
OrcaRouter is already part of the open-source ecosystem, with integrations such as goose, promptfoo, and models.dev / OpenCode.
One disclosure: we run an optional open-source partner program where approved OSS projects can receive a 5% revenue share from OrcaRouter usage attributed to their integration. Taking part is not a prerequisite for the integration, and I'm glad to follow whatever disclosure or governance rules you'd prefer.
Details: https://www.orcarouter.ai/built-with
Would you be open to this? If so, I'd be happy to prepare an implementation PR once you've had a chance to weigh in.
- Lingua principale
- Jupyter Notebook
- Stelle
- 409
- Fork
- 44
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AnswerDotAI/shell_sage
-
Sassy `mode` from config file is ignored (only CLI `--mode` works)Forse già presa @galopyz l’ha presa 66 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AnswerDotAI/shell_sage#97 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AnswerDotAI/shell_sage#79 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
AnswerDotAI/shell_sage#98 ·
-
Add terminal history capture for GhosttyForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
AnswerDotAI/shell_sage#94 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
AnswerDotAI/shell_sage#77 · 1 commento ·
Tutte le issue di AnswerDotAI/shell_sage
Issue simili
-
effort:low model:light plan planner:fable-5-1 test-quality tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
agent duplicate providers tool triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] POST /revoke with a FastMCP access token is a silent no-op (ownership gate never matches)Apertaauth bug high-priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Navbar shows fake notifications to every user; Notifications and Audit pages are placeholdersApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
KaiqueCarvalho01/LinkAuto-APP#86 ·
I maintainer di solito rispondono entro 1 giorno