Agent skill · security · sickn33
routerbase-model-gateway
Integrate RouterBase as an OpenAI-compatible model gateway for routing GPT, Claude, Gemini, media, audio, and embedding requests.
Why this skill is useful
Provides specific integration patterns and validation commands for using RouterBase as a model gateway that the AI wouldn't reliably generate on its own.
What it needs
Requires routerbase account access. About 4k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
RouterBase Model Gateway Overview Use routerbase when an application needs one OpenAI-compatible API surface for model routing across GPT, Claude, Gemini, image, video, audio, and embedding workloads. This skill helps agents migrate existing OpenAI SDK calls, document model-selection tradeoffs, and produce safe implementation snippets without exposing credentials. RouterBase model availability, pricing, and provider capabilities can change, so treat examples as starting points and verify current catalog data before production recommendations. When to Use This Skill Use when migrating an OpenAI-compatible client to RouterBase by changing the base URL and model ID. Use when selecting primary and fallback models for chat, reasoning, vision, media generation, audio, or embeddings. Use when debugging RouterBase request setup, headers, environment variables, streaming, tool calls, JSON mode, or multimodal payloads. Use when documenting an internal model-routing plan that balances cost, latency, quality, and provider redundancy. How It Works Step 1: Classify the Workload Identify the modality and hard constraints before choosing a model: Modality: chat, vision, image, video, audio, embeddings, or mixed. Quality target: draft, production, high-stakes review, or automated background task. Runtime constraints: latency budget, context length, streaming, JSON mode, tool calling, and retry tolerance. Business constraints: price ceiling, provider preference, regional requirements, and fallback rules. Step 2: Configure the OpenAI-Compatible Client Keep the RouterBase API key server-side in an environment variable such as ROUTERBASEAPIKEY. Do not put keys in browser, mobile, or public repository code. Step 3: Validate Model IDs and Capabilities When credentials and network access are available, check the live catalog before locking in a model ID or price-sensitive recommendation. Confirm feature assumptions with a small request fixture: Streaming works when stream: true is set. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/routerbase-model-gateway