# LiteLLM alternatives for gateways and coding agents

> For your coding agents (Claude Code, Codex, Cursor, etc.), use Auto, a Mac app: it needs no gateway or 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 and Cloudflare AI Gateway fit apps on those platforms.

Author: Tyler J. Cagle (https://x.com/tjcages)
Published: 2026-11-17T02:58:00.000Z
Reading time: 8 min
Canonical: https://auto.sh/blog/litellm-alternatives
Part of: What is an LLM router? (https://auto.sh/blog/what-is-an-llm-router.md)
Publisher: Auto (https://auto.sh)

![For coding agents on plans, use Auto. What do you need? You need A faster self-hosted gateway: Bifrost; You need No servers to run: Portkey, Requesty or OpenRouter; You need Apps on Vercel: Vercel AI Gateway; You need Apps on Cloudflare: Cloudflare AI Gateway; You need Coding agents on plans: Auto; You need A proxy on one laptop: Claude Code Router. Source: each product's docs and pricing pages, read November 16, 2026.](https://auto.sh/blog/images/litellm-alternatives/1-by-job.png)

For your coding agents (Claude Code, Codex, Cursor, etc.), use [Auto, a Mac app](https://autorouter.com/): 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](https://github.com/maximhq/bifrost) is the closest self-hosted swap, [Portkey](https://portkey.ai/pricing), [Requesty](https://www.requesty.ai/pricing) and [OpenRouter](https://openrouter.ai/pricing) remove the servers, and [Vercel AI Gateway](https://vercel.com/docs/ai-gateway/pricing) and [Cloudflare AI Gateway](https://developers.cloudflare.com/ai-gateway/reference/pricing/) fit apps already on those platforms. [Claude Code Router](https://github.com/musistudio/claude-code-router) is a free local proxy for one machine.

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](https://github.com/BerriAI/litellm), [Enterprise](https://www.litellm.ai/enterprise)). Its Claude Code setup with a Claude plan needs LiteLLM v1.81.14 or later with PostgreSQL ([tutorial](https://docs.litellm.ai/docs/tutorials/claude_code_max_subscription)).

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](https://docs.litellm.ai/blog/security-update-march-2026)).

## Which LiteLLM alternatives fit which job?

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

- **Bifrost** is best for teams that want to keep a self-hosted gateway and make it faster. It is open source under Apache 2.0, connects 23+ providers, and its README cites about 11 microseconds of overhead per request at 5,000 requests a second on a t3.xlarge ([GitHub](https://github.com/maximhq/bifrost)). It forwards a Claude Code subscription sign-in on its `/anthropic` route while applying its own virtual keys ([docs](https://docs.getbifrost.ai/cli-agents/claude-code)).
- **Portkey** is best for organizations that want budgets, rate limits, logs and fallbacks without running servers, though it can be self-hosted too. Developer is free with 10,000 logs a month and Production is $49 a month as of November 16, 2026; its pricing page now says Portkey is Prisma AIRS AI Gateway, part of Palo Alto Networks ([pricing](https://portkey.ai/pricing), [Claude Code docs](https://portkey.ai/docs/integrations/libraries/claude-code)).
- **Requesty** is best for one hosted bill across 600+ models, with fallbacks and spend by repo, branch and developer. Pay as you go adds 5% to model prices ([pricing](https://www.requesty.ai/pricing), [Claude Code docs](https://docs.requesty.ai/integrations/claude-code)).
- **OpenRouter** is best for one key and one balance across hundreds of models. Inference is billed at list price, with a 5.5% fee on credit purchases on Standard ([pricing](https://openrouter.ai/pricing)).
- **Vercel AI Gateway** is best for apps on Vercel. It charges no markup on tokens, sets budgets by team, project, key or member, and `vercel ai-gateway coding-agents setup` connects Claude Code, Codex and Cursor among nine agents ([pricing](https://vercel.com/docs/ai-gateway/pricing), [changelog](https://vercel.com/changelog/set-up-coding-agents-in-one-command-with-ai-gateway)).
- **Cloudflare AI Gateway** is best for apps on Cloudflare. Analytics, caching and rate limiting are free, and Unified Billing charges 5% on credit purchases ([pricing](https://developers.cloudflare.com/ai-gateway/reference/pricing/)).
- **Auto** is best for developers who code with agents on the AI subscriptions they already pay for. It is a Mac app that adds models from different providers to the model picker in every coding agent you use (Claude Code, Codex, Cursor, etc.), with no API keys or endpoints to set up. It uses the plans you already pay for first, lets any of your coding agents use any of your plans (a Claude plan in Codex, or a ChatGPT plan in Claude Code), and picks the model for each request after your own rules. Free costs $0 and routes across two subscriptions; [Pro](/pricing) includes usage each month and connects any number of plans ([Auto](https://autorouter.com/)).
- **Claude Code Router** is best for one developer on one machine. It is a free, MIT-licensed local gateway for Claude Code, Codex and other agents, as a desktop app, CLI or Docker image ([GitHub](https://github.com/musistudio/claude-code-router)).

For a migration checklist focused on Portkey, see [Portkey alternatives for coding agents](/blog/portkey-alternatives-coding-agents). For hosted APIs in particular, [OpenRouter alternatives for coding agents](/blog/openrouter-alternatives) compares fees on the same $100 of usage, and [Claude Code Router alternatives](/blog/claude-code-router-alternatives) covers local proxies. [The best Claude Code routers, ranked](/blog/model-routers-claude-code-codex) 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:

| Tool                  | Best for                       | Who runs it               | License or price                                        |
| --------------------- | ------------------------------ | ------------------------- | ------------------------------------------------------- |
| LiteLLM               | Self-hosted team gateway       | You, on your servers      | MIT outside enterprise; Enterprise custom               |
| Bifrost               | Faster self-hosted gateway     | You, on your servers      | Apache 2.0                                              |
| Portkey               | Budgets, logs and fallbacks    | Portkey, or you           | Developer free; Production $49/month                    |
| Requesty              | One hosted bill                | Requesty                  | Free tier; 5% markup                                    |
| OpenRouter            | One key for many models        | OpenRouter                | List price; 5.5% fee on credits                         |
| Vercel AI Gateway     | Apps on Vercel                 | Vercel                    | No token markup                                         |
| Cloudflare AI Gateway | Apps on Cloudflare             | Cloudflare                | Core features free                                      |
| Auto                  | Coding agents on subscriptions | A Mac app on each machine | Free $0; [Pro](/pricing) with usage included each month |
| Claude Code Router    | One developer's machine        | You, on your machine      | MIT, 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](https://docs.litellm.ai/docs/tutorials/claude_code_max_subscription)):

![Claude Code through LiteLLM takes four steps. 1. Run the proxy (v1.81.14+, with PostgreSQL); 2. Add anthropic/* model (In config.yaml); 3. Create a virtual key (In the dashboard); 4. Sign in with your plan (Key sent as a header). Source: LiteLLM, Claude Code with a Claude subscription, read November 16, 2026.](https://auto.sh/blog/images/litellm-alternatives/2-litellm-steps.png)

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.

```sh
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](https://www.litellm.ai/enterprise), [Bifrost](https://docs.getbifrost.ai/cli-agents/claude-code), [Portkey](https://portkey.ai/docs/integrations/libraries/claude-code)). [How to roll out AI coding tools to an engineering team](/blog/ai-coding-tools-for-teams) 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](https://www.litellm.ai/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](https://autorouter.com/privacy)). If you run a LiteLLM proxy just for yourself, [one prompt](/switch/litellm) has your coding agent carry its model list over and stop it. For one tool at a time, see [Auto vs LiteLLM](/compare/litellm), [Auto vs Portkey](/compare/portkey), [Auto vs Requesty](/compare/requesty) and [Auto vs Vercel AI Gateway](/compare/vercel-ai-gateway). [What is an LLM router?](/blog/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](/switch/requesty). If your coding agents currently run through Portkey, see how to [switch from Portkey to Auto](/switch/portkey).

## 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](https://docs.litellm.ai/docs/proxy/auto_routing)). 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](https://github.com/maximhq/bifrost)). Portkey also publishes an open-source gateway to host yourself ([pricing](https://portkey.ai/pricing)), and Claude Code Router covers a single developer's machine under MIT ([GitHub](https://github.com/musistudio/claude-code-router)).

### 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](https://vercel.com/changelog/set-up-coding-agents-in-one-command-with-ai-gateway), [Claude Code Router](https://github.com/musistudio/claude-code-router)).

## Sources

- [Auto](https://autorouter.com/)
- [Auto privacy](https://autorouter.com/privacy)
- [LiteLLM on GitHub](https://github.com/BerriAI/litellm)
- [LiteLLM Enterprise](https://www.litellm.ai/enterprise)
- [LiteLLM, Claude Code with a Claude subscription](https://docs.litellm.ai/docs/tutorials/claude_code_max_subscription)
- [LiteLLM, security update, March 2026](https://docs.litellm.ai/blog/security-update-march-2026)
- [LiteLLM, auto routing](https://docs.litellm.ai/docs/proxy/auto_routing)
- [Bifrost on GitHub](https://github.com/maximhq/bifrost)
- [Bifrost, Claude Code](https://docs.getbifrost.ai/cli-agents/claude-code)
- [Portkey pricing](https://portkey.ai/pricing)
- [Portkey, Claude Code](https://portkey.ai/docs/integrations/libraries/claude-code)
- [Requesty pricing](https://www.requesty.ai/pricing)
- [Requesty, Claude Code](https://docs.requesty.ai/integrations/claude-code)
- [OpenRouter pricing](https://openrouter.ai/pricing)
- [Vercel AI Gateway pricing](https://vercel.com/docs/ai-gateway/pricing)
- [Vercel, coding agents in one command](https://vercel.com/changelog/set-up-coding-agents-in-one-command-with-ai-gateway)
- [Cloudflare AI Gateway pricing](https://developers.cloudflare.com/ai-gateway/reference/pricing/)
- [Claude Code Router on GitHub](https://github.com/musistudio/claude-code-router)

## Read next

- [Which Portkey alternative fits your coding agents?](https://auto.sh/blog/portkey-alternatives-coding-agents.md): If you want a model router inside the coding agents you already use, Auto uses your AI subscriptions and picks a model for each task. If your team needs a shared gateway for every app, compare Portkey with a self-hosted gateway such as LiteLLM or Bifrost, or a hosted API such as OpenRouter.
- [Not Diamond alternatives for model routing](https://auto.sh/blog/not-diamond-alternatives.md): Use Auto, the Mac app for all your coding agents, if you want a model router where you already code: it picks a model for each task, runs on the AI subscriptions you already pay for, and puts models from different providers in the model picker you already use with no keys. Not Diamond is a routing API for developers building their own apps; OpenRouter's Auto Router, RouteLLM, Requesty Auto Routing and the Martian Gateway are the other options.
- [ZenMux alternatives for Codex and Claude Code](https://auto.sh/blog/zenmux-alternatives.md): Use Auto, the Mac app for all your coding agents: it runs them on the AI subscriptions you already pay for, puts models from other providers in the model picker you already use with no keys, and picks a model for each task on its own. ZenMux is a hosted LLM gateway paid from its own credits or Builder Plan; OpenRouter, Requesty, Portkey and LiteLLM are the other options people weigh against it.

Tags: [Comparisons](https://auto.sh/blog/tags/comparisons.md), [Model routing](https://auto.sh/blog/tags/model-routing.md), [Claude Code](https://auto.sh/blog/tags/claude-code.md)

Drafted with AI from the sources linked above, then checked and edited by the Auto team.

Auto is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://auto.sh/setup.md) and [pricing](https://auto.sh/pricing).
