Keirouter
mydisha/keirouter
Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.
Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.
$ npx skills add decolua/9router --skill 9router-embeddings -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install decolua/9router 9router-embeddings --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/9router-embeddings .claude/skills/9router-embeddings && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .claude/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/decolua/9router/tree/master/skills/9router-embeddingsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add decolua/9router --skill 9router-embeddings -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install decolua/9router 9router-embeddings --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/9router-embeddings .agents/skills/9router-embeddings && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .agents/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add decolua/9router --skill 9router-embeddings -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install decolua/9router 9router-embeddings --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/9router-embeddings .cursor/skills/9router-embeddings && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .cursor/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/decolua/9router.git --path skills/9router-embeddings--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add decolua/9router --skill 9router-embeddings -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install decolua/9router 9router-embeddings --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/9router-embeddings .gemini/skills/9router-embeddings && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .gemini/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install decolua/9router 9router-embeddingsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add decolua/9router --skill 9router-embeddings -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/9router-embeddings .github/skills/9router-embeddings && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .github/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add decolua/9router --skill 9router-embeddings -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install decolua/9router 9router-embeddings --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/decolua/9router.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/9router-embeddings .opencode/skills/9router-embeddings && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "9router-embeddings" agent skill from https://github.com/decolua/9router/tree/master/skills/9router-embeddings into .opencode/skills/9router-embeddings/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "9router-embeddings", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
9router-embeddingsGenerates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.
The skill needs `NINEROUTER_URL`, plus `NINEROUTER_KEY` when authentication is enabled. Embedding models are discovered at `/v1/models/embedding`, and per-model dimensions at `/v1/models/info`. The embeddings call is a POST to `/v1/embeddings` with a required `model` and `input`, which can be one string or an array, an optional `encoding_format` of `float` or `base64`, and `dimensions`, which works only on OpenAI v3 models. Examples are given in curl and JavaScript, and the response follows the OpenAI list shape with one embedding per input.
A provider table lists quirks: OpenAI, OpenRouter, Mistral, Voyage, Fireworks, Together, Nebius, GitHub, NVIDIA and Jina use the native OpenAI shape, Gemini requests are converted on the server to its embed calls, and OpenAI-compatible or custom providers take a base URL from stored credentials. Sending an array in one request is faster, though some providers cap the batch size.
Read from SKILL.md and the folder at commit ce4460e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curljqFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
NINEROUTER_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Embeddings via 9Router loads about 604 tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 95 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from decolua/9router at commit ce4460e, republished under its MIT licence (© decolua). 95 words, ~604 tokens.
.claude/skills/9router-embeddings/SKILL.md (or your agent's skills folder).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.
curl $NINEROUTER_URL/v1/models/embedding | jq '.data[].id'
# Per-model dimensions
curl "$NINEROUTER_URL/v1/models/info?id=openai/text-embedding-3-small"POST $NINEROUTER_URL/v1/embeddings
| Field | Required | Notes |
|---|---|---|
model | yes | from /v1/models/embedding |
input | yes | string OR array of strings |
encoding_format | no | float (default) / base64 |
dimensions | no | OpenAI v3 only |
curl -X POST $NINEROUTER_URL/v1/embeddings \
-H "Authorization: Bearer $NINEROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/text-embedding-3-small","input":["hello","world"]}'JS:
const r = await fetch(`${process.env.NINEROUTER_URL}/v1/embeddings`, {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "gemini/text-embedding-004", input: "RAG chunk text" }),
});
const { data } = await r.json();
console.log(data[0].embedding.length); // dimension{ "object": "list", "model": "openai/text-embedding-3-small",
"data": [
{ "object": "embedding", "index": 0, "embedding": [0.0123, -0.045, ...] },
{ "object": "embedding", "index": 1, "embedding": [...] }
],
"usage": { "prompt_tokens": 5, "total_tokens": 5 } }| Provider | Notes |
|---|---|
openai, openrouter, mistral, voyage-ai, fireworks, together, nebius, github, nvidia, jina-ai | Native OpenAI shape — dimensions works only on OpenAI v3 (text-embedding-3-*) |
gemini, google_ai_studio | Server auto-converts to embedContent/batchEmbedContents — send OpenAI shape |
openai-compatible-*, custom-embedding-* | Custom baseUrl from credentials |
Batch (input as array) is faster; some providers cap batch size.
© decolua, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/9router-embeddings of decolua/9router.
Open the folder on GitHubat commit ce4460e
Embeddings via 9Router next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Embeddings via 9Router this skilldecolua/9router | 30k | — | ~604 | Automated safety check: Pass | MIT | |
| Keiroutermydisha/keirouter | 147 | — | ~995 | Automated safety check: Pass | MIT | |
| Using Ccproxy APIstarbaser/ccproxy | 350 | — | ~4k | Automated safety check: Pass | Custom licence | |
| Using Ccproxy Inspectorstarbaser/ccproxy | 350 | — | ~2.7k | Automated safety check: Pass | Custom licence | |
| Provider Integrationhex/claude-council | 851 | — | ~635 | Automated safety check: Pass | MIT | |
| Keirouter Embeddingsmydisha/keirouter | 147 | — | ~577 | Automated safety check: Pass | MIT |
mydisha/keirouter
Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.
starbaser/ccproxy
Guides users through ccproxy as an OpenAI-compatible and Anthropic-compatible LLM API server with SDK integration, OAuth authentication, sentinel key substitution, model routing, and troubleshooting.
starbaser/ccproxy
Operates the ccproxy inspector MITM system for intercepting, inspecting, and transforming LLM API traffic.
hex/claude-council
Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface.
mydisha/keirouter
Generate vector embeddings via KeiRouter /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia embedding models for RAG, semantic search, similarity.
jeremylongshore/tons-of-skills-marketplace
Use multiple AI providers (OpenAI, Anthropic, Google, Meta) through OpenRouter's unified API.
decolua/9router
Sets up access to the 9Router AI gateway, an OpenAI-compatible REST endpoint for chat, images, speech, embeddings, web search and web fetch, and indexes its capability skills.
decolua/9router
Sends chat and code-generation requests through a 9Router gateway using OpenAI or Anthropic message formats, with streaming and auto-fallback combos.
decolua/9router
Generates images through a 9Router gateway's image endpoint, with model discovery, the request fields and per-provider quirks for OpenAI, Gemini, MiniMax and others.
decolua/9router
Transcribes audio files into text or subtitles through 9Router's Whisper-compatible endpoint, using models from OpenAI, Groq, Gemini, Deepgram and others.
decolua/9router
Turns text into spoken audio through a 9Router server, choosing among voices from OpenAI, ElevenLabs, Deepgram, Edge TTS and other providers.
decolua/9router
Submits text-to-video or image-to-video jobs to xAI Grok Imagine through 9Router, then polls the job and downloads the finished MP4.
Categories
Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search. The skill needs `NINEROUTER_URL`, plus `NINEROUTER_KEY` when authentication is enabled. Embedding models are discovered at `/v1/models/embedding`, and per-model dimensions at `/v1/models/info`.
Embeddings via 9Router fits situations like: embedding text for RAG or semantic search through 9Router; listing the embedding models a 9Router instance offers; checking an embedding model's dimensions before building an index; batching many strings into one embeddings request.
Run `npx skills add decolua/9router --skill 9router-embeddings -a claude-code`. Or copy the skill folder (skills/9router-embeddings in decolua/9router) into .claude/skills/9router-embeddings in your project. Claude Code loads it when a task matches its description.
Run `npx skills add decolua/9router --skill 9router-embeddings -a codex`. Or copy the skill folder (skills/9router-embeddings in decolua/9router) into .agents/skills/9router-embeddings in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add decolua/9router --skill 9router-embeddings -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/9router-embeddings, .gemini/skills/9router-embeddings, .github/skills/9router-embeddings and .opencode/skills/9router-embeddings in your project.
Going by SKILL.md and its folder, Embeddings via 9Router needs the command-line tools its instructions call (curl and jq) and credentials named NINEROUTER_KEY. Our summary lists: A running 9Router instance with `NINEROUTER_URL` set, and `NINEROUTER_KEY` when authentication is on.
SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Embeddings via 9Router is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 604 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Embeddings via 9Router: Keirouter (mydisha/keirouter, 147 stars), Using Ccproxy API (starbaser/ccproxy, 350 stars), Using Ccproxy Inspector (starbaser/ccproxy, 350 stars) and Provider Integration (hex/claude-council, 851 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
decolua (a GitHub user) maintains it in decolua/9router, which has 30,491 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.
Source: decolua/9router on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.