Token Proxy — AI skill for Claude Code
Local AI API gateway for OpenAI / Gemini / Anthropic.
How to install Token Proxy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mxyhi/token_proxy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Proxy does
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), offers priority-based load balancing, optional OpenAI Chat↔Responses format conversion, and one-click setup for Claude Code / Codex.
Alternatives in AI
- Anthropic Quickstarts — by Anthropic - Offers comprehensive development guides for three distinct AI-powered demo projects with standa 15.4k ★
- Axonhub — ⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs 3.2k ★
- Gentle AI — Agent Skills Index — When working on this project, load the relevant skill(s) BEFORE writing any code 1.9k ★
README
Token Proxy
English | [中文](README.zh-CN.md)
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), offers priority-based load balancing, optional API format conversion (OpenAI Chat/Responses ↔ Anthropic Messages, plus Gemini ↔ OpenAI/Anthropic, including SSE/tools/images), and one-click setup for Claude Code / Codex.
Default listen port: **9208** (release) / **19208** (debug builds).
What you get
- Multiple providers:
openai,openai-response,anthropic,gemini,kiro,codex,xai - Built-in routing + optional format conversion (OpenAI Chat ⇄ Responses; Anthropic Messages ↔ OpenAI; Gemini ↔ OpenAI/Anthropic; SSE supported)
- Upstream is the only scheduling unit: priority, proxy, enabled, models, and credential live on each upstream entry
- No separate Accounts / Providers page — on Upstreams, use Add Account to log in or import Kiro / Codex / xAI; the same editor manages identity, quota, token refresh / auto-refresh (where the provider supports it), and routing
- Account-backed upstreams: one account maps to one stable upstream; deleting it cascades account credentials; copy is disabled
- Model alias mapping (exact / prefix* / wildcard*) and response model rewrite
- Local access key + upstream credential injection (
credential.api_keysor request-header fallback when local auth is off) - SQLite-powered dashboard (requests, tokens, cached tokens, latency, recent)
- macOS tray live token rate (optional)
Screenshots
Dashboard![]() |
Core![]() |
Upstreams![]() |
Add upstream![]() |
Quick start (macOS)
- Install: move
Token Proxy.appto/Applications. If blocked:xattr -cr /Applications/Token\ Proxy.app. - Launch the app. The proxy starts automatically.
- Open Config File tab, edit and
Related Skills
Crustoxy
Unlimited coding with Claude Code on ANY LLM. A Blazing-Fast Rust proxy featuring auto-routing and load balanc
Cmc Proxy
Reverse-proxy a GOAT/commandcode AI subscription to localhost for Claude Code & Codex — OpenAI/Anthropic/Respo
Llmio
LLM API load-balancing gateway. LLM API 负载均衡网关.
Lamoom Python
by LamoomAI - Serves as reference for production prompt engineering library with load balancing of AI Models,
Octoroute
Smart HTTP router for local LLMs (Ollama, LM Studio, llama.cpp). Rule-based + LLM-powered routing, health chec
AginxBrain
Local-first AI gateway with bidirectional protocol conversion (Anthropic ↔ OpenAI ↔ Responses). Route Claude C
Related Agents
Networking Expert
Diagnoses and designs DNS, TLS, load balancing, CDN caching, and protocol-level behavior (TCP, HTTP, gRPC, Web
AI Frontend Engineer
AI Frontend Engineer who builds beautiful, performant, accessible UIs for AI-powered products including chat i
Gateway Worker
Worker for gateway/ (Rust, axum, tokio). Owns provider adapters, bar cache, REST/WS API, SQLite persistence, a



