9router-chat
9router-chat lets you send chat and code generation requests through 9Router's multi-provider routing layer, supporting both OpenAI and Anthropic API formats with streaming enabled. Built-in fallback combos automatically switch between providers, letting you discover available models and their capabilities on demand.
9router-chat routes chat and code generation requests through 9Router to multiple LLM providers with streaming and automatic fallback.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-20
9router-chat routes chat and code generation requests through 9Router to multiple LLM providers with streaming and automatic fallback. 9router-chat lets you send chat and code generation requests through 9Router's multi-provider routing layer, supporting both OpenAI and Anthropic API formats with streaming enabled. Built-in fallback combos automatically switch between providers, letting you discover available models and their capabilities on demand.
Use it when
- Yes.
- 9router-chat integrates OpenAI SDK or Anthropic API format into applications through 9Router.
Verify before relying
Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.
Install
decolua/9router/9router-chat · repository language: JavaScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is 9router-chat and how does it route requests?
9router-chat is an MIT-licensed skill that lets you send chat and code generation requests through 9Router's multi-provider routing layer. It supports both OpenAI and Anthropic API formats with streaming enabled, automatically routing your prompts to available LLM providers and handling fallback between them when needed.
Can I stream responses from multiple LLMs using 9router-chat?
Yes. 9router-chat streams LLM responses with automatic fallback between OpenAI and Anthropic. When your primary provider is unavailable or slow, 9router-chat seamlessly switches to an alternative provider, ensuring your streaming chat completions continue without interruption.
How do I send prompts to OpenAI via 9router-chat?
9router-chat integrates OpenAI SDK or Anthropic API format into applications through 9Router. You can send prompts using the standard chat completions format, and 9router-chat routes them to OpenAI or other configured providers. The skill handles authentication and provider selection automatically.
What models and capabilities can 9router-chat discover?
9router-chat lets you discover available models and their capabilities via 9Router metadata. You can query which LLM providers are active, what models they offer (like GPT-4o or Claude Opus), and their current status—enabling you to choose the best provider for your use case dynamically.
Can 9router-chat generate code with provider redundancy?
Yes. 9router-chat supports code generation using combo models with provider redundancy. You can summarize text or generate code through multiple providers simultaneously or sequentially, with built-in fallback ensuring your requests complete even if one provider fails.
How do I integrate 9router-chat into my application?
9router-chat integrates into applications via the 9Router endpoint using OpenAI SDK or Anthropic API format. Configure your app to point requests to 9router-chat's chat completions API, and it handles multi-provider routing, streaming, and automatic fallback setup transparently.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
9Router — Chat
Requires NINEROUTER_URL (and NINEROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
Endpoints
POST $NINEROUTER_URL/v1/chat/completions— OpenAI formatPOST $NINEROUTER_URL/v1/messages— Anthropic format
Discover
curl $NINEROUTER_URL/v1/models | jq '.data[].id'
# Per-model metadata (contextWindow, params)
curl "$NINEROUTER_URL/v1/models/info?id=openai/gpt-4o"
Combos (e.g. vip, mycodex) auto-fallback through multiple providers.
OpenAI format
curl -X POST $NINEROUTER_URL/v1/chat/completions \
-H "Authorization: Bearer $NINEROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-5","messages":[{"role":"user","content":"Hi"}],"stream":false}'
JS (OpenAI SDK):
```js import OpenAI from "openai"; const client = new OpenAI({
(truncated - see the full file via the links below)
File tree — 1 file
skills/9router-chat/SKILL.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Route chat and code generation requests through 9Router to multiple LLM providers”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill routes web content extraction through multiple providers—Firecrawl, Jina Reader, Tavily, and Exa—returning structured markdown, text, or HTML output. Configure your preferred provider or use auto-fallback chaining to ensure reliable scraping and article parsing.
Access vector embeddings through a unified 9Router endpoint supporting OpenAI, Gemini, Mistral, Voyage, Nvidia, GitHub, and other embedding models. Configure your preferred provider and send text to receive embeddings in standard OpenAI format, with optional base64 encoding and dimension control for compatible models.
9router-stt converts speech to text by routing requests through 9Router's unified /v1/audio/transcriptions endpoint, supporting multiple STT providers including OpenAI Whisper, Groq, Gemini, Deepgram, AssemblyAI, NVIDIA, and HuggingFace. Configure your model choice, audio file, and optional parameters like language, prompt, and response format (json, text, verbose_json, srt, or vtt) to get transcriptions with timestamps or subtitles.
9router-tts routes text-to-speech requests to your choice of seven major providers—OpenAI, ElevenLabs, Deepgram, Edge TTS, Google TTS, Hyperbolic, and Inworld—through a unified API endpoint. Query available models and voices per provider, then POST your text with a voice ID to receive MP3 audio or base64-encoded JSON. Each provider has its own authentication and voice naming scheme, all abstracted behind a single interface.
Dialogue Manager is a Godot addon that lets you write branching conversations in a readable `.dialogue` text format instead of Inspector-edited data structures. It handles conditions, state mutations, random lines, and built-in translation workflows (CSV/PO), with both GDScript and C# support. Use it when writers need script-like authoring; for full adventure-game frameworks with rooms and inventory, pair it with a larger system.
Pywayne Lark Bot is a comprehensive wrapper for Feishu's bot API, enabling you to send all message types—text, images, audio, files, rich text, and interactive cards—plus manage the complete message lifecycle with editing, forwarding, and recall. It includes helpers for formatting text, building rich posts with Markdown and tables, and constructing schema 2.0 cards, alongside chat administration, file handling, and batch messaging.