Skip to content
Back to skills

9router Gateway

ASecurity

Use when interacting with 9Router API gateway, managing local/remote AI proxies, fallback chains, auto-routing, and OpenAI-compatible endpoints for chat, image, TTS, embeddings, and web search. Triggers on "9router", "9Router API", "NINEROUTER_URL", "gateway de IA", "auto-fallback".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill 9router-gateway --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 9router Gateway?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 9router Gateway
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-9router-gateway/badge)](https://www.skillsdirectory.com/skills/majinmagros-9router-gateway)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 9router-gateway
description: Use when interacting with 9Router API gateway, managing local/remote AI proxies, fallback chains, auto-routing, and OpenAI-compatible endpoints for chat, image, TTS, embeddings, and web search. Triggers on "9router", "9Router API", "NINEROUTER_URL", "gateway de IA", "auto-fallback".
metadata:
  origin: decolua/9router
---

# 9Router Gateway

Local/remote AI gateway exposing OpenAI-compatible REST endpoints with automatic failover and provider aggregation.

## When to Use

- "Route this call through 9Router"
- "Set up NINEROUTER_URL fallback chain"
- "Quota exhausted, rotate the combo"
- "List models on the local gateway"
- "Auto-fallback for chat/image/TTS"

## Setup & Endpoints

```bash
export NINEROUTER_URL="http://localhost:20128"
export NINEROUTER_KEY="sk-..."
```

- Chat / Completions: `$NINEROUTER_URL/v1/chat/completions`
- Models:
  - Chat: `$NINEROUTER_URL/v1/models`
  - Image: `$NINEROUTER_URL/v1/models/image`
  - TTS: `$NINEROUTER_URL/v1/models/tts`
  - Web: `$NINEROUTER_URL/v1/models/web`

## Error Handling
- **401**: Check/refresh `NINEROUTER_KEY`.
- **503 All accounts unavailable**: Quota exhausted across provider chain; rotate combo or update primary provider model.

## Intent-Based Routing (Batch 16, #46)

Expose capability names ("text-summarizer") instead of model names. The
gateway maps capability -> contracted model + fallback/retry/timeout, so
app code never names a model and routing changes need no redeploy.
Decide each change with the latency x quality x cost tradeoff written
down; models are commodities, the capability contract is the API.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…