Agent skill

Keirouter

by mydisha in mydisha/keirouter

Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.

MITAuto-check passedAI & LLM Engineering

Install Keirouter

skills CLI
$ npx skills add mydisha/keirouter --skill keirouter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mydisha/keirouter keirouter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/keirouter .claude/skills/keirouter && rm -rf skills-src

Use ~/.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/

Facts

Skill name
keirouter
GitHub stars
147
Token cost
~995 tokens
SKILL.md length
222 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.

  • The user mentions KeiRouter
  • SKILL.md covers Setup, Discover models, Capability skills and Supported providers (highlights), plus 1 more section
  • Calls curl; needs KEIROUTER_KEY
  • Wants AI without writing provider boilerplate

What it does

Keirouter is an agent skill from mydisha/keirouter. Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions KeiRouter, KEIROUTERURL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.

Its SKILL.md is about 1000 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Text to speech and voice, Embeddings and Web search. It works with OpenAI, DeepSeek, NVIDIA AI Platform and Mistral AI. The repository describes itself as: Your friendly, blazing-fast, self-hostable AI gateway. The licence is MIT.

When your agent uses it

  • The user mentions KeiRouter
  • Wants AI without writing provider boilerplate

Example prompts

  • “/keirouter”

Requirements

  • A credential in KEIROUTER_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 3d8b702. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KEIROUTER_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Keirouter loads about 995 tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 222 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~995

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from mydisha/keirouter at commit 3d8b702, republished under its MIT licence (© mydisha). 222 words, ~995 tokens.

Download SKILL.mdSave it as .claude/skills/keirouter/SKILL.md (or your agent's skills folder).
name
keirouter
description
Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions KeiRouter, KEIROUTER_URL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.

KeiRouter

Local/remote AI gateway exposing OpenAI-compatible REST. One key, many providers, auto-fallback.

Setup

bash
export KEIROUTER_URL="http://localhost:20180"      # or VPS / tunnel URL
export KEIROUTER_KEY="sk-..."                      # from Dashboard → Keys (only if auth enabled)

All requests: ${KEIROUTER_URL}/v1/... with header Authorization: Bearer ${KEIROUTER_KEY} (omit if auth disabled).

Verify: curl $KEIROUTER_URL/healthz → {"ok":true}

Discover models

bash
curl $KEIROUTER_URL/v1/models                  # chat/LLM (default)
curl $KEIROUTER_URL/v1/models/image            # image-gen
curl $KEIROUTER_URL/v1/models/tts              # text-to-speech
curl $KEIROUTER_URL/v1/models/embedding        # embeddings
curl $KEIROUTER_URL/v1/models/web              # web search + fetch (entries have `kind` field)
curl $KEIROUTER_URL/v1/models/stt              # speech-to-text

Use data[].id as model field in requests. Combos appear with owned_by:"combo".

Response shape:

json
{ "object": "list", "data": [
  { "id": "openai/gpt-5", "object": "model", "owned_by": "openai", "created": 1735000000 },
  { "id": "tavily/search", "object": "model", "kind": "webSearch", "owned_by": "tavily", "created": 1735000000 }
]}

Capability skills

When the user needs a specific capability, fetch that skill's SKILL.md from its raw URL:

Supported providers (highlights)

ProviderIDAliasNotes
OpenAIopenaiopenaiGPT-5, GPT-4o, DALL-E, Whisper, TTS
AnthropicanthropicanthropicClaude Opus, Sonnet, Haiku
Claude CodeclaudeccClaude via Claude Code subscription
Google GeminigeminigeminiGemini 2.5, Imagen
GroqgroqgroqFast inference, Whisper
DeepSeekdeepseekdsDeepSeek V3, Coder
OpenRouteropenrouteropenrouter100+ models via single key
MistralmistralmistralMistral Large, Medium
xAIxaixaiGrok models
NVIDIA NIMnvidianvidiaNemotron, Llama
Ollama Localollama-localollama-localLocal models, no auth
Custom OpenAIcustom-openaicustom-openaiAny OpenAI-compatible endpoint
Custom Anthropiccustom-anthropiccustom-anthropicAny Anthropic-compatible endpoint

Use provider/model format: openai/gpt-5, anthropic/claude-opus-4-7, groq/whisper-large-v3.

Errors

  • 401 → set/refresh KEIROUTER_KEY (Dashboard → Keys)
  • 400 Invalid model format → check model exists in /v1/models/<kind>
  • 503 All accounts unavailable → wait retry-after or add another provider account
  • 429 Budget exhausted → budget limit reached, check Dashboard → Budgets

© mydisha, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/keirouter of mydisha/keirouter.

Open the folder on GitHubat commit 3d8b702

Compare with similar skills

Keirouter 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.

Keirouter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Keirouter this skillmydisha/keirouter147—~995Automated safety check: PassMIT
Embeddings via 9Routerdecolua/9router30k—~604Automated safety check: PassMIT
AI SDK Developmenttrypostit/trypost6782 repos~3.5kAutomated safety check: PassMIT
Configuring Visionoxbshw/watch-skill460—~509Automated safety check: NotesMIT
Ax AIdosco/aithy107—~8.2kAutomated safety check: PassApache-2.0
Local AI App Integrationamd/skills398—~6kAutomated safety check: PassMIT

Similar skills

  • Embeddings via 9Router

    decolua/9router

    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.

    30k GitHub stars~604 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • AI SDK Development

    trypostit/trypost

    TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.

    678 GitHub starsUsed in 2 repos~3.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Configuring Vision

    oxbshw/watch-skill

    The user wants to connect an LLM or vision provider, already has an API key, asks "can I use OpenAI/Anthropic/Gemini/OpenRouter", wants local Ollama, or needs different cheap and strong models.

    460 GitHub stars~509 tokensUpdated 23 days ago
    AI & LLM EngineeringAuto-check: notes
  • Ax AI

    dosco/aithy

    This skill helps an LLM generate correct AI provider setup and configuration code using @ax-llm/ax.

    107 GitHub stars~8.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Integrates local AI capabilities into applications using Embeddable Lemonade.

    398 GitHub stars~6k tokensUpdated today
    Media & CreativeAuto-check passed
  • Adversarial Spec

    zscole/adversarial-spec

    Iteratively refine a product spec by debating with multiple LLMs (GPT, Gemini, Grok, etc.) until all models agree.

    556 GitHub starsUsed in 1 repo~8.3k tokens
    Product & Project ManagementAuto-check: notes

More from mydisha/keirouter

All 8 skills in this repo
  • Keirouter Chat

    mydisha/keirouter

    Chat / code generation via KeiRouter using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos.

    147 GitHub stars~859 tokensUpdated 27 days ago
    Auto-check passed
  • Keirouter Embeddings

    mydisha/keirouter

    Generate vector embeddings via KeiRouter /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia embedding models for RAG, semantic search, similarity.

    147 GitHub stars~577 tokensUpdated 27 days ago
    Auto-check passed
  • Keirouter Image

    mydisha/keirouter

    Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models.

    147 GitHub stars~691 tokensUpdated 27 days ago
    Auto-check passed
  • Keirouter Stt

    mydisha/keirouter

    Speech-to-text via KeiRouter /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI models.

    147 GitHub stars~680 tokensUpdated 27 days ago
    Auto-check passed
  • Keirouter Tts

    mydisha/keirouter

    Text-to-speech via KeiRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Inworld voices.

    147 GitHub stars~599 tokensUpdated 27 days ago
    Auto-check passed
  • Keirouter Web Fetch

    mydisha/keirouter

    Fetch URL → markdown / text / HTML via KeiRouter /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents.

    147 GitHub stars~741 tokensUpdated 27 days ago
    Auto-check passed

Questions about Keirouter

What does Keirouter do?

Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Keirouter is an agent skill from mydisha/keirouter. Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.

When should I use Keirouter?

Keirouter fits situations like: the user mentions KeiRouter; wants AI without writing provider boilerplate.

How do I install Keirouter in Claude Code?

Run `npx skills add mydisha/keirouter --skill keirouter -a claude-code`. Or copy the skill folder (skills/keirouter in mydisha/keirouter) into .claude/skills/keirouter in your project. Claude Code loads it when a task matches its description.

How do I install Keirouter in Codex?

Run `npx skills add mydisha/keirouter --skill keirouter -a codex`. Or copy the skill folder (skills/keirouter in mydisha/keirouter) into .agents/skills/keirouter in your project. Codex loads it when a task matches its description.

Can I use Keirouter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mydisha/keirouter --skill keirouter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/keirouter, .gemini/skills/keirouter, .github/skills/keirouter and .opencode/skills/keirouter in your project.

What does Keirouter need to run?

Going by SKILL.md and its folder, Keirouter needs the command-line tools its instructions call (curl) and credentials named KEIROUTER_KEY. Our summary lists: A credential in KEIROUTER_KEY.

Does Keirouter access the network?

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.

Is Keirouter safe to install?

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.

What licence does Keirouter use?

Keirouter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Keirouter use?

About 995 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Keirouter?

Skills that share tags, products or a category with Keirouter: Embeddings via 9Router (decolua/9router, 30k stars), AI SDK Development (trypostit/trypost, 678 stars), Configuring Vision (oxbshw/watch-skill, 460 stars) and Ax AI (dosco/aithy, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Keirouter?

mydisha (a GitHub user) maintains it in mydisha/keirouter, which has 147 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 11, 2026.

Source: mydisha/keirouter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.