Claude Code model router

Star Cliproxy

OpenAI- & Anthropic-compatible API proxy for AI coding CLIs — expose Claude Code, OpenAI Codex, Google Antigravity, and xAI Grok CLI as local, drop-in API endpoints with no API key and zero usage fees

Install

From source
git clone https://github.com/starhunt/star-cliproxy.git

From the README

English | 한국어

star-cliproxy
Turn the AI CLI subscriptions you already pay for (Claude Max, ChatGPT Pro, Gemini, Copilot, Grok, Antigravity) into one OpenAI-compatible API — no extra API keys, no per-token billing.

What is this?

star-cliproxy runs your installed AI CLIs as subprocesses and exposes them behind a single local OpenAI-compatible endpoint (/v1/chat/completions, /v1/messages, /v1/models, /v1/images/generations).

Point any OpenAI SDK at it — change only base_url, keep your code:

Why star-cliproxy?

- 💸 Subscriptions, not API keys — bill against Claude Max / ChatGPT Pro / etc. instead of metered API tokens.
- 🔌 One endpoint, many backends — 6 active built-in CLIs (Claude, Codex, Copilot, Antigravity, Grok, Kimi) + any OpenAI-compatible HTTP server (vLLM, Ollama, MLX, LM Studio) + custom plugins.
- 🧭 Smart routing — alias-based model mapping with priority fallback chains, per-model provider overrides, and session reuse (codex exec resume).
- ⚙️ Multiple execution modes — cli, Claude Agent SDK, Codex app-server, and the new channel-worker bridge mode.
- 📡 Real SSE streaming — native NDJSON/JSONL event pipes, not fake post-hoc chunking.
- 📊 Full dashboard — live monitoring, Playground, request tracing with raw payloads, model/key management, rate limits, EN/KO + dark mode.
- 🔒 Hardened — Zod-validated config (fail-fast at startup), SHA-256 key auth, prompt/CLI injection guards, timing-safe comparisons, secret redaction.
- 🟣 Anthropic Messages API — /v1/messages lets native Claude Code / Anthropic SDK clients connect too.

Quick Start

⭐ Easiest: let an AI CLI set it up

This repo is structured so an agentic CLI can install and configure it for you. Open Claude Code or Codex in an empty folder and ask:
"Clone https://github.com/starhunt/star-cliproxy,…
Read the full README on GitHub

Details

Language
TypeScript
Last updated
12 August 2026
Topics
ai-gatewayanthrophic-apiantigravity-cliapi-proxyclaude-codecli-proxycli-toolscodexgrok-clillm-gatewayllm-proxyopenai-api

FAQ

What is Star Cliproxy?

OpenAI- & Anthropic-compatible API proxy for AI coding CLIs — expose Claude Code, OpenAI Codex, Google Antigravity, and xAI Grok CLI as local, drop-in API endpoints with no API key and zero usage fees It is a model router for Claude Code, from starhunt/star-cliproxy on GitHub.

How do I install Star Cliproxy?

Clone starhunt/star-cliproxy from GitHub and follow the setup steps in its README.

Is Star Cliproxy popular?

starhunt/star-cliproxy has 43 GitHub stars and 24 forks. It was last updated on 12 August 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.