Download

LiteLLM alternatives for gateways and coding agents

Tyler J. Cagle8 min read

For your coding agents (Claude Code, Codex, Cursor, etc.), use Auto, a Mac app: it needs no gateway or API keys, uses the AI subscriptions you already pay for and picks a model for each request. For other jobs, Bifrost is the closest self-hosted swap, Portkey, Requesty and OpenRouter remove the servers, and Vercel AI Gateway and Cloudflare AI Gateway fit apps already on those platforms. Claude Code Router is a free local proxy for one machine.

Download for macOSSwitch from LiteLLM

Auto wrote this post, so weigh its rows accordingly. Every claim about another product comes from that product's own docs or pricing page, linked where it is used and read on November 16, 2026.

Why do teams look for a LiteLLM alternative?

Most teams look because LiteLLM is a server they have to run. It is an open-source gateway that calls 100+ LLMs in the OpenAI format, MIT licensed outside its enterprise directory, and features such as SSO, SCIM and audit logs need an Enterprise license at custom prices (GitHub, Enterprise). Its Claude Code setup with a Claude plan needs LiteLLM v1.81.14 or later with PostgreSQL (tutorial).

Supply-chain risk comes up too: on March 24, 2026, two LiteLLM releases on PyPI, 1.82.7 and 1.82.8, were compromised. LiteLLM says its official proxy Docker image was not affected, removed both releases, and shipped a clean v1.83.0 on March 30 from a rebuilt pipeline (LiteLLM).

Which LiteLLM alternatives fit which job?

Eight options cover what LiteLLM does, each best at one job:

For a migration checklist focused on Portkey, see Portkey alternatives for coding agents. For hosted APIs in particular, OpenRouter alternatives for coding agents compares fees on the same $100 of usage, and Claude Code Router alternatives covers local proxies. The best Claude Code routers, ranked puts LiteLLM beside five other routers with a verdict for each.

How do the LiteLLM alternatives compare?

They differ most in who runs them, as of November 16, 2026:

ToolBest forWho runs itLicense or price
LiteLLMSelf-hosted team gatewayYou, on your serversMIT outside enterprise; Enterprise custom
BifrostFaster self-hosted gatewayYou, on your serversApache 2.0
PortkeyBudgets, logs and fallbacksPortkey, or youDeveloper free; Production $49/month
RequestyOne hosted billRequestyFree tier; 5% markup
OpenRouterOne key for many modelsOpenRouterList price; 5.5% fee on credits
Vercel AI GatewayApps on VercelVercelNo token markup
Cloudflare AI GatewayApps on CloudflareCloudflareCore features free
AutoCoding agents on subscriptionsA Mac app on each machineFree $0; Pro with usage included each month
Claude Code RouterOne developer's machineYou, on your machineMIT, free

What does running Claude Code through LiteLLM take?

Running Claude Code on a Claude plan through LiteLLM takes four steps, from LiteLLM's tutorial (tutorial):

  1. Run the LiteLLM proxy, v1.81.14 or later, with PostgreSQL.
  2. Add an anthropic/* entry to model_list in config.yaml and restart the proxy.
  3. Create a virtual key in the dashboard for all Anthropic models.
  4. Point Claude Code at the proxy with ANTHROPIC_BASE_URL, send the key in ANTHROPIC_CUSTOM_HEADERS, then sign in with your Claude plan.
export ANTHROPIC_BASE_URL="https://litellm.example.com"
export ANTHROPIC_CUSTOM_HEADERS="x-litellm-api-key: Bearer <your-virtual-key>"
claude

LiteLLM then logs each session and applies budgets and guardrails, and it reports costs at Anthropic API list prices even for requests your plan pays for. You still choose each model yourself.

Auto takes three steps with nothing to host: download it, sign in to your plans and click Enable for each app, then choose AutoRouter as the model in a new session. It picks the model for each request after your own rules, and when one plan reaches its limit it moves on to the plan with the most room left before it spends any credit.

Which alternative suits a team rolling out coding agents?

For a team whose developers use coding agents on subscriptions, Auto Enterprise rolls out to every Mac through Jamf or another MDM, with nothing for anyone to set up. It sets allowed models, team budgets and zero data retention in one place, reports spend by team, project or ticket, and includes SSO, SCIM and an audit log. It is priced by seats; contact sales@autorouter.com.

For a team that needs one gateway for every app it ships, LiteLLM Enterprise, Bifrost and Portkey keep that job in one place, with virtual keys and budgets (LiteLLM, Bifrost, Portkey). How to roll out AI coding tools to an engineering team covers the plans and seats side of the same decision.

When should you stay on LiteLLM?

Stay on LiteLLM when prompts must stay in your own infrastructure, when you need one OpenAI-format endpoint for the apps you ship, or when you have already built budgets and routing around it. Self-hosted LiteLLM can run in your cloud or an air-gapped network (Enterprise).

Auto needs macOS 14 or later, and requests pass through its servers on their way to each provider. It doesn't store transcripts; it keeps the message that opens each request, up to 4,000 characters, to review routing (privacy). If you run a LiteLLM proxy just for yourself, one prompt has your coding agent carry its model list over and stop it. For one tool at a time, see Auto vs LiteLLM, Auto vs Portkey, Auto vs Requesty and Auto vs Vercel AI Gateway. What is an LLM router? explains the kinds of router behind all of these.

If your Claude Code or Codex setup currently uses Requesty, see how to switch from Requesty to Auto. If your coding agents currently run through Portkey, see how to switch from Portkey to Auto.

Questions

Is LiteLLM's auto router the same as Auto?

No. LiteLLM's auto router is a feature of the open-source LiteLLM gateway that maps requests to models you configure (docs). Auto is a separate Mac app for all your coding agents.

What is the best open-source LiteLLM alternative?

Bifrost is the closest open-source swap for a team gateway, under Apache 2.0 (GitHub). Portkey also publishes an open-source gateway to host yourself (pricing), and Claude Code Router covers a single developer's machine under MIT (GitHub).

Is there a LiteLLM alternative that needs no API keys?

Yes. Auto signs in to the AI subscriptions you already pay for and adds its models to the picker in every coding agent you use, with no keys or endpoints to set up. Pro adds every other model, paid from usage included each month and then credits.

Does a LiteLLM alternative work with OpenAI's Codex?

Yes. Auto works in Codex, the app and the CLI, and adds itself to Codex's config.toml when you click Enable. Vercel AI Gateway's setup command and Claude Code Router also support Codex (Vercel, Claude Code Router).

Sources