Routerbase Model Gateway

Configure RouterBase as an OpenAI compatible model gateway for AI apps, with routing, fallback, media generation, and credential handling patterns.

492 stars 68 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add cosmicstack-labs/mercury-agent-skills --skill routerbase-model-gateway
Manual install
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/ai-ml/routerbase-model-gateway ~/.claude/skills/routerbase-model-gateway

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# RouterBase Model Gateway

Use [routerbase](https://routerbase.com/) when an application needs an OpenAI compatible gateway for chat, embeddings, image, video, audio, speech, model routing, or fallback behavior.

The goal is not to rewrite the whole AI layer. The goal is to move provider selection behind a clean server side boundary, keep credentials private, and make model choices reversible.

## When To Use

Use this skill when the user asks to:

- Migrate an OpenAI compatible client to RouterBase.
- Add RouterBase to a backend API, worker, command line tool, or agent runtime.
- Route requests across multiple model providers through one API surface.
- Choose primary and fallback models for latency, quality, price, or availability.
- Add image, video, audio, speech, or embedding generation through a gateway.
- Debug RouterBase base URLs, model IDs, streaming, JSON output, or media job polling.

Do not use this skill for:

- General API gateway design unrelated to AI models.
- Direct provider SDK features that are not exposed through the OpenAI compatible API.
- Frontend only integrations that would expose API keys to users.
- Production security review of the whole application.

## Implementation Principles

### 1. Keep The Gateway Server Side

All RouterBase calls should run in trusted code:

- backend route
- serverless function
- worker
- command line tool
- internal service
- agent runtime process
Read the full skill on GitHub

Details

Skill name
routerbase-model-gateway
Path
categories/ai-ml/routerbase-model-gateway/SKILL.md
License
MIT
Repo updated
25 August 2026

FAQ

What does the Routerbase Model Gateway skill do?

Configure RouterBase as an OpenAI compatible model gateway for AI apps, with routing, fallback, media generation, and credential handling patterns.

How do I install the Routerbase Model Gateway skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill routerbase-model-gateway. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Routerbase Model Gateway popular?

It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.

Related skills

Accessibility

492

cosmicstack-labs/mercury-agent-skills

Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.

Frontend & Design68

Accessibility Testing

492

cosmicstack-labs/mercury-agent-skills

WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation

Testing & QA68

Agent Audit Logging

492

cosmicstack-labs/mercury-agent-skills

Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.

AI, LLMs & Agents68

Token Budget Tracking

492

cosmicstack-labs/mercury-agent-skills

Track, optimize, and control token consumption across multi-agent systems. Covers budget allocation, real-time monitoring, cost attribution, per-agent limits, and proactive cost optimization for production LLM deployments.

AI, LLMs & Agents68

Readwise MCP

329

readwiseio/readwise-skills

How to use the Readwise MCP tools — access highlights, documents, and your entire reading library via MCP

AI, LLMs & Agents14

Agentdescent

220

ThinkFlowLab/agentdescent

Improve a SKILL.md, agent definition, system prompt, small codebase or host plugin by measuring it against examples and evolving it, rather than rewriting it by hand and hoping. Use whenever the user asks to improve, fix, tune, optimise, "train" or get better results out of one of those -- including when they have no test cases yet, because drafting cases for them to check is step one of the procedure, not a prerequisite for it. AgentDescent runs the edits in parallel and keeps only those that raise held-out reward.

AI, LLMs & Agents29

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.