Skip to content
English

Switch theme

// I want to solve · Developers / Individuals

🔁 Switch models: your own key, Chinese or local models

Point coding agents and apps at other vendors, Chinese models or local models, and understand protocol compatibility and differences in tool-calling quality.

4 steps3 alternatives2 stacks · 2 problemschecked 2026-10-22

How to do it

  1. 01Check which protocol the tool supports: OpenAI-compatible, Anthropic-compatible, or vendor-only
  2. 02Most Chinese models offer OpenAI / Anthropic-compatible endpoints; change base_url and key per their docs
  3. 03Use LiteLLM or claude-code-router to translate when protocols differ
  4. 04After switching, test tool-calling success on the same task set

What it costs

Free start

Free APIs exist; see the Free API page

Pay as you go

Chinese model APIs are usually much cheaper than Western flagships; see pricing

Individual paid

China coding plans are monthly; see subscriptions

Prices change; the vendor’s official page wins. Subscriptions compared · API prices

Alternatives: which to pick

OptionChoose it when
LiteLLMProtocol translation and one endpoint
claude-code-routerUse other models in Claude Code
OllamaSwitch to local models

✓ Good fit

  • Cut cost, avoid single-vendor risk, use Chinese or local models

✗ Not a good fit

  • You rely on vendor-only features

Ready-made stacks

All stacks

Software that helps

All software

🔀 Model gateways, routing & usage🖥️ Local inference & serving

litellm Model gateways, routing & usagev1.104.2 ★ 62k The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM] Open source SDKAPI new-api Model gateways, routing & usagev1.0.0-rc.46 ★ 50k A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-compatible, Claude-compatible, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management. Open source API kong Model gateways, routing & usage3.9.3 ★ 44k 🦍 The API and AI Gateway Open source API claude-code-router Model gateways, routing & usagev3.1.3 ★ 38k One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control. Open source CLI apisix Model gateways, routing & usage3.19.0 ★ 17k The Cloud-Native API Gateway and AI Gateway Open source API Portkey-AI/gateway Model gateways, routing & usagev1.15.2 ★ 13k A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API. Open source API higress Model gateways, routing & usagev2.2.5 ★ 9.5k 🤖 AI Gateway | AI Native API Gateway Open source API bifrost Model gateways, routing & usagev2.2.6 ★ 9.0k Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS. Open source API agentgateway Model gateways, routing & usagev1.6.0 ★ 5.2k Next Generation Agentic Proxy for AI Agents and MCP servers Open source API any-llm Model gateways, routing & usage1.33.0 ★ 2.2k Communicate with an LLM provider using a single interface Open source SDK ai-gateway Model gateways, routing & usagev0.2.0-beta.30 ★ 636 The fastest, lightest, and easiest-to-integrate AI gateway on the market. Fully open-sourced. Open source API Alibaba Cloud Model Studio (Bailian) Model gateways, routing & usage Closed / commercial OpenRouter Model gateways, routing & usage Unified API gateway to hundreds of models with pay-as-you-go billing. Closed / commercial Freemium WebAPI Volcengine Ark / AI Gateway Model gateways, routing & usage Closed / commercial Cloudflare AI Gateway Model gateways, routing & usage Closed / commercial ccusage Model gateways, routing & usage Open spec TrueFoundry Model gateways, routing & usage Closed / commercial rtk Model gateways, routing & usagev1.0.1 ★ 84k CLI proxy that cuts LLM token use 60–90% on common dev commands. Open source CLI OmniRoute Model gateways, routing & usage ★ 77k Free MIT AI gateway to 290+ providers and 500+ models. Open source API headroom Model gateways, routing & usage ★ 77k Compresses tool outputs and RAG chunks before they hit the LLM. Open source CLIproxyMCP free-claude-code Model gateways, routing & usage ★ 61k Routes free model quotas into Claude Code, Codex and other harnesses. Open source proxy CLIProxyAPI Model gateways, routing & usagev8.0.23 ★ 56k Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini Series, GPT Series, Grok Series, Claude model through API Open source API freellmapi Model gateways, routing & usagev0.16.7 ★ 39k OpenAI-compatible proxy stacking free tiers of 16 LLM providers. Open source API one-api Model gateways, routing & usagev0.6.10 ★ 37k LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & key redistribution system, unifying multiple providers under a single API. Single binary, Docker-ready, with an English UI. Open source API

93 more by category →

Problems & solutions

All problems

Needs in this scenario

  • AGT-03Model lock-in: bring your own key, custom base_url, local models

    Agent products & builders · People search for: use claude code with other models; cursor custom base url; codex ollama

  • OSS-06Chinese models with overseas tools: compatibility

    Open-source ecosystem · People search for: qwen with claude code; deepseek tool calling cline

  • VEN-05Protocol compatibility matrix (MCP/A2A/Skills/AGENTS.md/two API formats)

    Model vendors · People search for: a2a vs mcp; anthropic compatible api models

  • VEN-03Consistency of the same open model across inference providers

    Model vendors · People search for: kimi k2 provider comparison; open model tool calling accuracy provider

  • IND-08Open-source / bring-your-own-key alternatives to closed tools

    Individual developers & researchers · People search for: open source cursor alternative; free copilot alternative

Data updated: Solutions & stack guides(UTC+8)