9router / open-sse
AGENTS.md30k starsChanged 2 months agoMITView on GitHub
Provider-agnostic SSE engine: one OpenAI-style request → any provider (LLM chat, image, embedding, tts, stt, search), streamed back in the client's format. handlers/chatCore.js → services/model.js parseModel (resolve provider/model) → RTK for cursor (rtk/ compresses the source-format tool_result / role:tool in-place — its translator rewrites those shapes, so this one provider must run before translate) → translator/index.js translateRequest (client format → provider format) → post-translate savers (rtk/ compress for every other provider, rtk/headroom.js proxy compress, rtk/caveman.js / rtk/ponytail.js system inject —…
1 other project uses a version of this; 0 new projects in the last 4 weeks, against 1 the 4 before.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- theRizwan/FlagshipRouterword for word, first seen Oct 4, 2026
Who's talking about decolua/9router
- cheaper-inference/OmniRoute“docs(readme): restore 9router acknowledgment”GitHub · May 19, 2026 · 4 reactions
- cheaper-inference/OmniRoute“[Feature] Add support for CommandCode”GitHub · May 8, 2026 · 4 reactions
- @github-trending-js.bsky.social“📦 decolua / 9router ⭐ 1,342 (+31) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor, …”Bluesky · Mar 28, 2026 · 4 likes
- @github-trending-js.bsky.social“📦 decolua / 9router ⭐ 982 (+37) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor, Antigravity, …”Bluesky · Mar 16, 2026 · 3 likes
- cheaper-inference/OmniRoute“fix(opencode): send canonical free-tier identity headers”GitHub · Sep 17, 2026 · 2 reactions
The biggest 5 of 72 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 72
Talked about on GitHub and Bluesky (72 times).
On GitHub · 50
- May 19, 2026docs(readme): restore 9router acknowledgment — cheaper-inference/OmniRoute4 reactions · 1 comment
- May 8, 2026[Feature] Add support for CommandCode — cheaper-inference/OmniRoute4 reactions · 1 comment
- Sep 17, 2026fix(opencode): send canonical free-tier identity headers — cheaper-inference/OmniRoute2 reactions · 4 comments
- Jul 9, 2026Feature Request: Integrate 9router as an API Gateway for seamless multi-provider management and failover support. — praveen-ks-2001/hermes-agent-template2 reactions · 12 comments
- Oct 6, 2026fix(codex): gate models on the Codex CLI floor before the ChatGPT backend rejects them — paperclipai/paperclip1 reaction · 4 comments
45 more on GitHub
- Sep 17, 2026fix(opencode): resolve 403 FreeTierError (cherry-pick decolua#4105) — lehuygiang28/9router1 reaction · 1 comment
- Sep 1, 2026port(upstream): #3665 - normalize OpenRouter tool schemas — bloodf/durindoor1 reaction · 2 comments
- Jul 16, 2026port(upstream): #2558 - add reorder connections by availability button — bloodf/durindoor1 reaction
- Jul 16, 2026port(upstream): #2291 - verify fltmc Windows elevation probe via injectable isAdmin test — bloodf/durindoor1 reaction
- Jul 8, 2026port(upstream): #2454 — feat(keys): add daily token limits — bloodf/durindoor1 reaction · 3 comments
- Jul 8, 2026port(upstream): #2422 — fix: keep usage api key groups distinct — bloodf/durindoor1 reaction · 5 comments
- Jul 8, 2026port(upstream): #2443 — fix: prevent duplicate system prompt injection in multi-turn conversations — bloodf/durindoor1 reaction · 4 comments
- Jul 8, 2026port(upstream): #2452 — fix(codex): handle fast tier and capacity SSE — bloodf/durindoor1 reaction · 4 comments
- Jul 8, 2026port(upstream): #2453 — fix(usage): preserve provider-reported cost — bloodf/durindoor1 reaction · 4 comments
- Jul 8, 2026port(upstream): #2459 — perf(v1/models): resolve provider catalogs concurrently instead of serially — bloodf/durindoor1 reaction · 5 comments
- Jul 8, 2026port(upstream): #2463 — fix(minimax): resolve runtimeTransport/modelTargetFormat conflict and extract <think> for M3 — bloodf/durindoor1 reaction · 5 comments
- Jul 8, 2026port(upstream): #2470 — fix(kiro): preserve Claude session conversation id — bloodf/durindoor1 reaction · 2 comments
- Jul 8, 2026port(upstream): #2466 — fix(translator): clamp thinking effort max->xhigh for OpenAI provider (fixes 400 max effort not support) — bloodf/durindoor1 reaction
- Jul 6, 2026port(upstream): #2409 - feat(proxy-pools): auto-rotate strategy for no-auth providers — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2402 - fix(build): isolate Windows HOME/AppData during next build — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2345 - fix(codex): parse reset credit expiry details — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2403 - feat(headroom): add extras detection and install UI — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2392 - fix(stream): decloak tool names in claude to claude streaming passthrough — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2389 - fix: align Antigravity with IDE request shape — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2396 - fix(translator): make commandcode ensureState idempotent regardless of pre-s — bloodf/durindoor1 reaction · 3 comments
- Jul 6, 2026port(upstream): #2350 - feat(cli): add auto-ping toggle to TUI — bloodf/durindoor1 reaction · 2 comments
- Jul 6, 2026port(upstream): #2408 - fix(deps): remove fs placeholder package — bloodf/durindoor1 reaction · 2 comments
- Jun 24, 2026fix(translator): provider thinking compatibility (DeepSeek/Gemini) — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 24, 2026feat(combo): task-aware routing strategy — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 24, 2026fix(usage): dedupe request-usage logging and debounce stats — cheaper-inference/OmniRoute1 reaction · 3 comments
- Jun 22, 2026fix(combo): flatten Anthropic tool messages + tool history to prevent upstream 503 — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 22, 2026feat(proxy-pool): Deno Deploy relays + group action buttons — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 22, 2026fix(copilot,antigravity): cap maxOutputTokens at 16384 to stop "Invalid Argument" 400 — cheaper-inference/OmniRoute1 reaction · 2 comments
- Jun 22, 2026fix(opencode): preserve DeepSeek reasoning content in streamed responses — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 22, 2026fix(cli): harden the systray2 tray runtime — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 22, 2026fix(copilot): never route Gemini/Claude variants to /responses — cheaper-inference/OmniRoute1 reaction · 1 comment
- Jun 21, 2026fix(usage): clear auth-expired message for Kiro social-auth (Google/GitHub) accounts — cheaper-inference/OmniRoute1 reaction · 1 comment
- Feb 23, 2026iflow throws 406 error with OmniRoute — cheaper-inference/OmniRoute1 reaction · 3 comments
- Nov 18, 2026Live conformance tests pass, not skip, when no model is available — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Responses API: accept freeform `custom` tools — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Routing: a failed upstream credential (401/403) is retried on every request — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Upstream 402 (billing, credit exhausted) has no class and answers 502 — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Upstream 404 answers 502 upstream_error, not 404 model_not_found — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Cooldowns: should a provider's stated wait be capped? — vx-daniel/pi-switchboard0 reactions
- Nov 18, 2026Deck: central per-operation model config, route non-harness calls through 9Router — simon-inkie/inkie-deck0 reactions
- Nov 13, 2026fix(thinking): nest reasoning effort for OpenAI-compatible /responses nodes — luqman-v1/9router-go0 reactions · 1 comment
- Nov 13, 2026fix(translator): extract in-body system messages to top-level system for Claude Messages — luqman-v1/9router-go0 reactions · 1 comment
- Nov 13, 2026feat(providers): add DeepSeek V4 Pro effort aliases (-max and -none) — luqman-v1/9router-go0 reactions
- Nov 13, 2026feat(claude): advertise Claude Code 2.1.322 and live model list via OAuth — luqman-v1/9router-go0 reactions
- Nov 13, 2026chore(providers): advertise Codex CLI 0.167.1 — luqman-v1/9router-go0 reactions
On Bluesky · 22
- Mar 28, 2026📦 decolua / 9router ⭐ 1,342 (+31) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini,… — @github-trending-js.bsky.social4 likes and reposts
- Mar 16, 2026📦 decolua / 9router ⭐ 982 (+37) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini,… — @github-trending-js.bsky.social3 likes and reposts
- Aug 3, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 24,415 (+157) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Jul 24, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 23,371 (+169) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending-js.bsky.social2 likes and reposts
- May 12, 20269router looks useful https://github.com/decolua/9router #opensource #github #trending — @adityamitra.bsky.social2 likes and reposts
17 more on Bluesky
- Oct 1, 2026📦 decolua / 9router ⭐ 30,078 (+71) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex, Cursor, Cline, Copilot, Antigravity… — @github-trending-js.bsky.social1 likes and repost
- Aug 22, 2026📦 decolua / 9router ⭐ 26,048 (+69) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex, Cursor, Cline, Copilot, Antigravity… — @github-trending-js.bsky.social1 likes and repost
- Jul 11, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 decolua / 9router ⭐ 21,587 (+287) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code,… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- May 8, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 4,112 (+130) 🗒 JavaScript 🆓 Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending.bsky.social1 likes and repost
- May 6, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 3,961 (+133) 🗒 JavaScript 🆓 Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending-js.bsky.social1 likes and repost
- Apr 22, 2026📦 decolua / 9router ⭐ 2,886 (+77) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini,… — @github-trending-js.bsky.social1 likes and repost
- Apr 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 2,135 (+155) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor,… — @github-trending-js.bsky.social1 likes and repost
- Apr 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 decolua / 9router ⭐ 1,583 (+116) 🗒 JavaScript Connect All AI Code Tools (Claude Code, Cursor,… — @github-trending-js.bsky.social1 likes and repost
- Mar 10, 2026📦 decolua / 9router ⭐ 786 (+52) 🗒 JavaScript Universal AI Proxy for Claude Code, Codex, Cursor | OpenAI, Claude, Gemini, Copilot — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Sep 8, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 decolua / 9router ⭐ 27,896 (+565) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code,… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jul 7, 2026しかも README は Kiro を『free Claude unlimited』と書く一方、公式ガイドでは『~50 credits/mo』。ここ、かなり気になります。『無制限』というより、“無料枠が尽きたら次へ回す設計”と読む方が筋がいいです。無料側の持続性まで一息で読まない… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jul 7, 2026一次ソースで見えた実体は、無限の新能力じゃなくて“購読枠→安価API→無料枠”の 3-tier fallback を 1 endpoint に束ねるローカル gateway です。9Router 自体は MIT で無料。でもコストは消えず、払う先が外部 provider… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jul 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 decolua / 9router ⭐ 20,164 (+305) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code,… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jun 20, 2026📦 decolua / 9router ⭐ 18,048 (+81) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex, Cursor, Cline, Copilot, Antigravity… — @github-trending-js.bsky.social0 likes and reposts · 2 replies
- Jun 2, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 decolua / 9router ⭐ 15,892 (+287) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code,… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- May 12, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 decolua / 9router ⭐ 7,938 (+942) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending.bsky.social0 likes and reposts · 1 reply
- May 10, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 decolua / 9router ⭐ 6,978 (+806) 🗒 JavaScript Unlimited FREE AI coding. Connect Claude Code, Codex,… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
Other versions1 project uses a version of this.
Word for word · 1
- theRizwan/FlagshipRouter★ 12100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 9router-chatSkill
- 9router-embeddingsSkill
- 9router-imageSkill
- 9routerSkill
- 9router-sttSkill
- 9router-ttsSkill
- 9router-videoSkill
- 9router-web-fetchSkill
- 9router-web-searchSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Translator: add request|response/<from>-to-<to>.js calling register(...), then import it in translator/index.js.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
open-sse
Provider-agnostic SSE engine: one OpenAI-style request → any provider (LLM chat, image, embedding, tts, stt, search), streamed back in the client's format.
Request lifecycle (chat)
handlers/chatCore.js → services/model.js parseModel (resolve provider/model) → RTK for cursor (rtk/ compresses the source-format tool_result / role:tool in-place — its translator rewrites those shapes, so this one provider must run before translate) → translator/index.js translateRequest (client format → provider format) → post-translate savers (rtk/ compress for every other provider, rtk/headroom.js proxy compress, rtk/caveman.js / rtk/ponytail.js system inject — all fail-open) → executors/index.js getExecutor(provider) → executor.execute() (streams upstream) → translateResponse (provider chunks → client format) → SSE out.
Directory map
config/— ALL constants/config (no hardcode elsewhere).providers.js/registry/(provider defs),providerModels.js(alias→models matrix),runtimeConfig.js(timeouts, token limits),*Constants.js.translator/— format conversion.request/<from>-to-<to>.js,response/<from>-to-<to>.js,schema/(enums: ROLE, CLAUDE_BLOCK…),concerns/(shared logic),formats.js+formats/(per-format).index.jsis the registry/entry.executors/— per-provider upstream call.base.js(BaseExecutor), one file per special provider,index.jsmap.providers/— registry build +capabilities.js+pricing.js. Entry:index.js(PROVIDERS).handlers/— per-modality cores (chat/image/embedding/tts/stt/search) + sub-provider folders.chatCore/has the streaming/non-streaming/sse-to-json handlers.rtk/— request token-killer.index.jscompressestool_resultcontent in-place (OpenAI/Claude/Kiro shapes);filters/per-tool compressors +autodetect.js;headroom.jsexternal compress proxy;caveman.jssystem-prompt injector.transformer/—responsesTransformer.js(Chat Completions SSE → Codex Responses API SSE),streamToJsonConverter.js.shared/— cross-provider auth/identity:clineAuth.js,machineId.js,qoder/.services/—model.js,provider.js,accountFallback.js,combo.js,compact.js,tokenRefresh/+tokenRefresh.js,oauthCredentialManager.js,usage/,projectId.js,kiroModels.js/qoderModels.js.utils/— streamHandler, stream, sse, error, sessionManager, claudeCloaking, clientDetector, proxyFetch (patches global fetch), cursorProtobuf/cursorChecksum, ollamaTransform.
Conventions
- Config-driven, DRY, camelCase. NEVER hardcode values, models, or block/role strings — use
config/+schema/constants. - Translator pipeline pivots through OpenAI as the intermediate format. A translator registered on the exact
source:targetpair (e.g.claude:kiro) runs as a direct route, skipping the lossy double-hop. - Translators self-register via
register(from, to, reqFn, resFn)as an import side-effect — new files MUST be imported intranslator/index.js.
How to add
- Provider: copy
providers/REGISTRY_TEMPLATE.js→providers/registry/{id}.js; add models toconfig/providerModels.js. Generic providers need no executor (DefaultExecutor handles OpenAI-compatible APIs). - Executor (only for non-standard upstream): subclass
BaseExecutor(overridegetBaseUrls/buildHeaders/buildUrl/execute), register inexecutors/index.jsmap.getExecutorfalls back toDefaultExecutorwhen absent. - Translator: add
request|response/<from>-to-<to>.jscallingregister(...), then import it intranslator/index.js. Reuseschema/+concerns/— don't re-implement parsing.
Pitfalls
- OpenAI bridge is lossy (thinking, non-base64 images, tool ids, is_error) — prefer a direct route for fragile pairs.
registry/index.jsis an auto-generated static import list; regenerate it (don't hand-edit) after adding aregistry/{id}.js. REGISTRY_TEMPLATE is excluded by design.- Special binary/protobuf formats (kiro EventStream, cursor protobuf, commandcode NDJSON) don't round-trip through OpenAI — handle in their executor.
rtk/+headroom.jsmutate the request body in-place and are fail-open: any error returns null and leaves the body untouched — never throw out of them. RTK skipsis_error/status:"error"tool results to preserve traces.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

