Agent skill · software engineering · aiskillstore

routerbase-api-integration

Integrate applications with RouterBase, the OpenAI-compatible model gateway at https://routerbase.com/v1. Use when migrating OpenAI SDK calls to RouterBase, configuring RouterBase API keys, implementing chat completions, streaming, tool calling, JSON mode, vision inputs, request validation, error handling, or documenting RouterBase setup for Python, JavaScript, curl, LangChain, LlamaIndex, Vercel AI SDK, Cursor, Continue, or other OpenAI-compatible clients.

Why this skill is useful

Adds specific integration patterns and code snippets for RouterBase API that are not commonly found in public documentation.

What it needs

Requires routerbase account access. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

RouterBase API Integration Overview Use routerbase as an OpenAI-compatible gateway for GPT, Claude, Gemini, and other supported models. This skill helps agents migrate existing OpenAI-compatible code, keep API keys server-side, and produce concise, testable RouterBase integration snippets. Read references/routerbase-api.md when exact endpoint details, headers, or examples are needed. Integration Workflow 1. Identify whether the user is asking for migration, a new integration, debugging, or documentation. 2. Keep credentials out of client/browser code. Prefer ROUTERBASEAPIKEY in server-side environment configuration. 3. Reuse the user's existing OpenAI-compatible client when possible. Change the base URL to https://routerbase.com/v1, then swap the model to a RouterBase model ID. 4. Preserve standard OpenAI request shapes unless RouterBase docs or the selected model require a model-specific field. 5. For model IDs, use the live model catalog when an API key is available; otherwise use documented examples only as a starting point and tell the user to verify current availability. 6. Add a minimal smoke test, but do not run it unless credentials are present and the user expects a live API call. Common Patterns Python JavaScript curl Implementation Guardrails Never paste or log real API keys. Use placeholders like sk-rb-... only in docs. Never put RouterBase keys in browser, mobile, or public repository code. Keep examples OpenAI-compatible unless the user asks for a framework-specific adapter. For streaming, set stream: true and process Server-Sent Events or SDK stream chunks. For tool calling and JSON mode, keep the standard OpenAI fields tools and responseformat. For multimodal chat, use OpenAI content parts with text and imageurl. If a live request fails, check headers, model ID, endpoint path, rate limits, and account access before changing application logic. Output Checklist Include the changed base URL. Include where ROUTERBASEAPIKEY should be configured. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/routerbase-api-integration

View the source on GitHub

Browse the @skills marketplace