docs: Powering Reversa with OmniRoute — 50+ free LLM providers, 15–95% token compression#17
docs: Powering Reversa with OmniRoute — 50+ free LLM providers, 15–95% token compression#17diegosouzapw wants to merge 2 commits into
Conversation
Documents how to point Claude Code, Codex, Gemini CLI, Cursor and the other supported engines at a local OmniRoute instance — giving Reversa users free access to 50+ provider free tiers (Kiro Claude 4.5/4.6, Qoder Kimi K2, Pollinations GPT-5, LongCat 50M tokens/day and 11 free- forever providers), a unified key vault, 14 combo routing strategies, 3-layer resilience and RTK+Caveman token compression. OmniRoute runs entirely on localhost. Reversa itself keeps its zero-LLM-dependency guarantee untouched — only the user-installed coding CLI ever talks to OmniRoute. Files: - README.md: new "Powering Reversa with OmniRoute (optional)" section - docs/integrations/omniroute.md: full EN walkthrough - docs/integrations/omniroute.pt.md: PT-BR translation - docs/integrations/omniroute.es.md: ES translation - mkdocs.yml: nav entry + PT/ES translations
…3k stars - Lead with 50+ free providers (11 free forever) as the killer feature - Promote RTK + Caveman compression to a top-level section with measured per-phase impact (Archaeologist 80-95%, Coding ~89% avg) and concrete consequences for Reversa runs (free-tier viability, effective context window expansion) - Add ⭐ 5.3k+ stars social proof in the intro and repo links - Drop WhatsApp community links from the integration docs (keep the technical surface focused)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f8b85779d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| === "Gemini CLI" | ||
| ```bash | ||
| export GEMINI_API_BASE=http://localhost:20128/v1beta |
There was a problem hiding this comment.
Use Gemini CLI's actual base URL variable
This setup won't route Gemini CLI through OmniRoute: the official Gemini CLI configuration documents GOOGLE_GEMINI_BASE_URL as the Gemini API base URL override and GEMINI_API_KEY as the API-key variable, but not GEMINI_API_BASE. Users following this row (also repeated in the README and translations) will keep sending Gemini CLI traffic to Google's default endpoint instead of localhost, so the documented integration silently fails for that engine.
Useful? React with 👍 / 👎.
| | **Detective** + **Architect** (synthesis) | `priority`: Kiro Opus 4.6 → Anthropic API → AgentRouter Claude | Needs strong reasoning | | ||
| | **Writer** + **Reviewer** (specs) | `weighted` 60% Opus 4.6 / 40% Sonnet 4.5 | High quality, controlled cost | | ||
| | **Coding** (Reversa Forward) | `priority`: Opus 4.6 → Sonnet 4.5 → GPT-5 | Best output with automatic degradation | | ||
| | **Pricing estimate** | Enable *cost tracking* toggle in dashboard | Lets `/reversa-pricing-estimate` read real spend via `GET /api/usage/summary` | |
There was a problem hiding this comment.
Don't claim pricing reads OmniRoute usage
This describes a capability the Reversa pricing agent does not have: agents/reversa-pricing-estimate/SKILL.md explicitly says not to consult network, WebSearch, or external services, and its prerequisites only read local profile.json and size.json. Users who enable OmniRoute cost tracking based on this row will expect /reversa-pricing-estimate to consume GET /api/usage/summary, but that code path cannot run and it contradicts the page's guarantee that Reversa does not call OmniRoute.
Useful? React with 👍 / 👎.
🎯 TL;DR
Adiciona uma seção opcional ao Reversa documentando como apontar Claude Code, Codex, Gemini CLI, Cursor e demais engines para uma instância local do OmniRoute — um gateway de IA open-source com ⭐ 5.3k+ stars no GitHub.
Resultado prático pro usuário do Reversa:
Zero código executável adicionado. Zero dependência nova. Reversa segue sem chamar nenhum SDK de LLM.
🔍 Por que essa integração existe
O Reversa delega 100% da inteligência LLM para a CLI já instalada no ambiente do usuário (Claude Code, Codex, Cursor, Gemini CLI…). Isso é uma das suas garantias centrais: "does not request, store, or transmit API keys".
A consequência prática é que o custo de rodar
/reversanum legado grande é o custo dessas CLIs. Num projeto de 500 módulos, o Archaeologist sozinho pode estourar quota mensal de uma conta Claude / OpenAI.A solução natural — e que não viola nenhuma garantia do Reversa — é apontar a CLI para um proxy local que (a) tem dezenas de provedores grátis embutidos e (b) comprime os prompts antes de enviar. É exatamente o que o OmniRoute faz.
O Reversa em si não muda em nada. Apenas a CLI já instalada passa a falar com
localhost:20128em vez deapi.anthropic.com/api.openai.com.📦 O que muda
README.mddocs/integrations/omniroute.mddocs/integrations/omniroute.pt.mddocs/integrations/omniroute.es.mdmkdocs.ymlIntegrations → OmniRouteno nav + traduções PT/ES via plugin i18nDiff total: 5 arquivos · só markdown e YAML.
🆓 As features que justificam a integração
1. 50+ provedores grátis (11 free forever)
Lista parcial que aparece na seção:
+ Cloudflare Workers AI, AgentRouter (US$100 crédito), Z.ai, Together, Groq, SambaNova, Cerebras, Mistral La Plateforme e outros.
2. Compressão de contexto RTK + Caveman (15–95%)
Tabela de impacto medido por fase Reversa que aparece no doc:
Duas consequências para o Reversa: (a) legados grandes cabem nas quotas free; (b) janela de contexto efetiva fica muito maior — o Architect enxerga mais arquivos por chamada.
3. Combos, resiliência e cofre de chaves
🛡️ Garantias do Reversa preservadas
Esse é o ponto delicado dado o aviso oficial do Reversa. A integração foi desenhada para não violar nenhuma promessa:
api.anthropic.com.reversa/and_reversa_sdd/"~/.omniroute/)package.json, nenhuma chamada de rede a partir do código Reversalocalhost:20128. Seu legado nunca sai da máquina, exceto pela chamada LLM em si (igual hoje)Cada um desses pontos está reafirmado dentro do doc, na seção de FAQ.
🌍 Tradução nos 3 idiomas do projeto
O Reversa mantém docs em EN/PT/ES via plugin
i18n(sufixo.pt.md/.es.md). Esse PR entrega os 3 simultaneamente, comnav_translationsparaIntegrations → Integrações → Integraciones.🧪 Como validar localmente
✅ Checklist
package.jsonintocado)bin/,lib/,agents/,templates/intocados)README.md,mkdocs.ymle arquivos novos emdocs/integrations/💬 Notas para o @sandeco
diegosouzapw). Disclosure feito aqui pra transparência. Aberto a ajustar qualquer tom comercial que pareça forte demais — minha intenção é só documentar um padrão de integração que entrega valor real pro usuário do Reversa rodando em legados grandes.Obrigado pelo trabalho incrível com o Reversa 🙏