LiteLLM is an open-source AI gateway that you run on your own
servers, in front of your provider API keys. Auto is a
Mac app with no proxy to host: it runs every coding agent you
use on the AI subscriptions you already pay for, and picks a
model for each turn. This page covers how LiteLLM works, then
how the two compare.
LiteLLM alternatives
What the gateway is, how it connects to coding agents, how its
Auto Routing picks a model, and what it costs.
A gateway you run yourself
LiteLLM comes in two forms: a Python SDK you import into
your own code, and a proxy server, the AI gateway, that
platform teams host. Either way, one OpenAI-compatible API
reaches 100+ LLMs. The proxy adds virtual keys, budgets and
spend tracking per key, user and team, load balancing and
fallbacks across deployments, guardrails, and logging to
tools like Langfuse (docs).
How setup works for coding agents
You install the proxy with
uv tool install 'litellm[proxy]', list each
model in config.yaml with the provider key it
uses, set a master key, and start it with
litellm --config. It listens on port 4000. For
Claude Code, you set ANTHROPIC_BASE_URL and
ANTHROPIC_AUTH_TOKEN to the proxy. For the
Codex CLI, you add a LiteLLM provider to
~/.codex/config.toml with
wire_api = "responses" and export the key.
A separate guide relays Codex’s own ChatGPT sign-in through
the proxy. It needs LiteLLM 1.109.0 or later with
PostgreSQL, and records those requests at $0, so it suggests
rate limits to cap use (guide).
Auto Routing
In beta since version 1.94.0, Auto Routing sorts each
request into a tier (simple, medium, complex or reasoning)
and sends it to the model you mapped to that tier. The
default classifier scores seven signals, such as token
count, code and reasoning markers, without an API call; you
can swap in a small LLM classifier, keyword rules or your
own plugin. Its docs warn that config keys and defaults may
change between releases (docs).
Pricing
The gateway and SDK are MIT-licensed and free to use in
production, except the enterprise/ folder,
which needs a paid license. LiteLLM adds no fee to model
costs; you pay each provider. Enterprise is an annual
license whose price “is a function of request capacity,
installation architecture and support,” and never per token
(about). It adds
SSO with SCIM, audit logs, role-based access and 24/7
support with SLAs, and a 30-day trial key is available.
What it does well
It’s open source, so you can read, change and self-host
all of the core gateway.
One endpoint serves your apps, backends and agents, on any
system, including Linux and CI.
Virtual keys, budgets and rate limits per key, user or
team give a platform team real control.
It runs in your own cloud or an air-gapped network, on
infrastructure you control.
No fee on tokens, and no per-token license.
Where it gets harder
Someone has to host it: a server to keep running, a
database for virtual keys and logs, and upgrades.
Every model needs an entry in config.yaml,
and agents must use those names exactly.
With a non-Anthropic base URL, Claude Code turns tool
search off, so MCP schemas load inline unless you change a
setting.
Auto Routing is beta, and you choose and maintain the
model behind each tier yourself.
How Auto differs
Auto is for people and teams on Macs who want routing in
their coding agents without a gateway to build or run.
No proxy to host
You install a Mac app, sign in to your plans and click
Enable. Auto adds itself to each app’s own settings
after saving a copy, and shows up in the model picker you
already use. There are no servers, config files or keys, and
turning an app off in Auto switches it back.
The plans you already pay for
You connect Claude, ChatGPT, Grok and Gemini plans, and they
go to the work that needs them, so they last longer. When
one account reaches its limit, Auto moves to the one
with the most room left before it spends any credit. A
subscription isn’t required: Pro gives every model, with
usage included each month.
A model for each turn
Your plain-English rules go first, such as “Use Claude Opus
5.5 for UI work.” Otherwise Auto works out how hard
each turn is and only considers models that clear the
quality bar for it. A task that continues keeps its model,
or moves up. Every turn shows its model, what it cost and
why.
What it costs and what it can’t do
Routing across your own plans is free. Paid models bill at
the provider’s price plus 10%, which LiteLLM doesn’t charge,
and Auto earns nothing on your plans. Enterprise
rolls it out to every Mac through Jamf or another MDM,
priced by seat. Auto runs only on macOS 14 or later,
doesn’t serve your own apps’ API traffic, and sometimes
misjudges how hard a task is. Requests pass through its
servers; see
privacy for what is kept.
Which one to choose
Choose LiteLLM if you need one self-hosted gateway for apps,
agents and CI, want traffic to stay on your own
infrastructure, or want to change the code yourself.
Choose Auto if your developers code on Macs and you
want their subscriptions used first, with a model picked for
each turn and no proxy to keep running. Teams can see
Enterprise.
Setup, side by side
The steps each one’s own docs give, as of November 19, 2026.
LiteLLM
Install the proxyRun uv tool install 'litellm[proxy]' on a server or your machine.
Write the configList each model and its provider key in config.yaml, and set a master key.
Start itRun litellm --config config.yaml and keep it running on port 4000.
Point each agent at itSet the base URL and key in each agent’s environment or config file.
Sign inSign in or create a free account, then sign in to your plans.
Enable your appsAllow Accessibility and click Enable for each app.
Pick AutoIn a new session, choose AutoRouter in your app’s model picker, or with /model in Claude Code.
Questions
What people ask about LiteLLM.
What is LiteLLM?
An open-source Python SDK and proxy server that put 100+ LLMs behind one OpenAI-compatible API. The proxy, which LiteLLM calls an AI gateway, adds virtual keys, budgets, spend tracking, fallbacks and logging for platform teams.
How much does LiteLLM cost?
The gateway is MIT-licensed and free to use in production. Enterprise is an annual license priced by request capacity, installation and support, never per token, with a 30-day trial key. You pay your providers for tokens.
Does LiteLLM work with Claude Code and Codex?
Yes. Its guides point Claude Code at the proxy with ANTHROPIC_BASE_URL and a LiteLLM key, and add a LiteLLM provider to the Codex CLI’s config.toml. Model names must match the ones in config.yaml.
Does LiteLLM have an auto router?
Yes, in beta. Auto Routing sorts each request into a tier and sends it to the model you mapped to that tier, using a heuristic scorer by default. Its config keys and defaults may change between releases.
Do I have to host LiteLLM?
Yes. The open-source gateway runs on your own servers, in your cloud or an air-gapped network, and Enterprise is self-hosted too. Auto has no proxy to host; it runs as a Mac app.
How is Auto different from LiteLLM?
LiteLLM is a gateway a platform team runs in front of its provider keys, for apps and agents on any system. Auto is a Mac app that uses the AI subscriptions you already pay for, includes models, and picks one for each turn in every coding agent you use.
Is Auto a LiteLLM alternative for a team?
Auto is built around a different buyer need: helping a company govern and improve how employees use AI across their tools. It combines model access, defaults, budgets, privacy requirements and usage visibility with hands-on rollout and enablement. LiteLLM is a developer gateway your platform team configures around provider APIs. See Auto for Teams.
How do I move over from LiteLLM?
There’s nothing to move. Install Auto on the Macs that run your coding agents, with no keys or config files. Anything your team already runs on LiteLLM keeps working, and the switch guide shows what carries over.
What does Auto cost?
Routing across your plans is free. Pro adds every other model with usage
included each month, and paid models bill at the provider’s price plus 10%.
See
pricing, or estimate a month with and without
Auto in the savings calculator.
Switch from LiteLLM
Install the Mac app, sign in to your plans and click Enable.