Model Proxy — AI skill for Claude Code
A model proxy to allow for multiple API key, provider, and model fallbacks, that also translates OpenAI methods to Anthropic, enabling support for the likes of Claude Code and other tools with ease.
How to install Model Proxy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open BenItBuhner/Model-Proxy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Model Proxy does
A model proxy to allow for multiple API key, provider, and model fallbacks, that also translates OpenAI methods to Anthropic, enabling support for the likes of Claude Code and other tools with ease.
Alternatives in AI
- Opencodex — Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama… 12.3k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- My Free Code — Open-source multi-provider AI gateway for Claude Code and other coding agents, with model routing, streaming 633 ★
README
Model-Proxy
OpenAI- and Anthropic-compatible LLM proxy on **Bun** and **TypeScript**. Route logical model names to multiple upstream providers with API-key rotation, cooldowns, format conversion, streaming, optional tool-call enforcement, and a built-in admin UI.

Features
- Logical models —
config/models/.jsonmaps a client-facing id to one or more provider routes and fallbacks - Multi-provider routing — OpenAI-compatible and Anthropic wire protocols (Groq, Cerebras, Gemini, OpenRouter, Nahcrof, etc.)
- API key fallback — rotate keys and cool down failed keys per provider
- Format conversion — OpenAI ↔ Anthropic at the proxy boundary
- Streaming — SSE for chat completions
- Context window metadata —
GET /v1/modelsexposescontext_window,context_length, andlimit.contextfor harness compaction - Audio — OpenAI-style
/v1/audio/transcriptions; one logical modeltranscribe-1routes to Gemini 3.5 Transcribe (native API) with Groq Whisper fallbacks - Admin UI — Next.js static app served at
/(models, providers, keys, test bench, bundle import/export)
Requirements
- Bun ≥ 1.4.4 (runtime and tests; 1.4.4 fixes CVE-2026-111497)
- Docker optional (recommended for production)
Quick start (Docker)
cp .env.example .env
# Edit .env: set CLIENT_API_KEY and provider API keys
docker compose build
docker compose up -d
curl -s http://127.0.0.1:9876/health
curl -s -H "Authorization: Bearer $CLIENT_API_KEY" http://127.0.0.1:9876/v1/models
Default listen address: `http://127.0.0.1:9876` Admin UI: `http://127.0.0.1:9876/` (old `/setup/` links redirect)
Quick start (local dev)
bun install
# Terminal 1 — API server (hot reload). On first boot an admin
# CLIENT_API_KEY is generated and printed to the console — no .env needed.
bun run dev
# Terminal 2 — admin UI (optional; or rely on Docker-built web-static)
cd
Related Skills
Nano LLM Proxy
Tiny single-binary LLM gateway — pool multiple providers and API keys behind one OpenAI/Anthropic-compatible e
Anthropic Proxy Rs
A proxy server that intercepts Anthropic API requests and converts them to OpenAI-compatible format, enabling
Cknb Transfer API
统一 AI API 中转 · Aggregates Claude/GPT/Gemini/DeepSeek V4 via unlimited.surf + BTL free models. Dual protocol (O
Smart Switch
Multi-app model provider switcher: manage OpenAI/Anthropic-protocol providers (base URL + API key + models) an
Omniroute
OmniRoute is an AI gateway for multi-provider LLMs: an OpenAI-compatible endpoint with smart routing, load bal
Bring Your Own Model
Run Claude Code on any OpenAI or OpenAI-compatible model — a tiny, dependency-free local bridge that translate
Related Agents
LLM Orchestrator
Use this agent for LLM integration work — prompt engineering, multi-provider abstraction (OpenRouter, Gemini,
Review AI Systems
Product review committee — AI Systems Engineer. Dispatched in P2, P3, P4, P5 (AI system spec), P6, P7 to revie
AI LLM Engineer
Use this agent when the user types /ai or asks for ai/llm engineer work — e.g., build a RAG pipeline over our