LiteLLM Proxy CLI
The lite CLI is a command-line tool for managing your LiteLLM proxy
server and for running coding agents through it. It manages models, credentials,
API keys, teams, and users, runs chat and HTTP requests against the proxy,
migrates at-rest credential encryption, and launches coding agents (Claude Code,
Codex, OpenCode) with their LLM traffic routed through the proxy.
| Feature | What you can do |
|---|---|
| Coding Agents | Run Claude Code, Codex, or OpenCode through the proxy |
| Models Management | List, add, update, and delete models |
| Credentials Management | Manage provider credentials |
| Keys Management | Generate, list, delete, and import API keys |
| Teams Management | List teams, list joinable teams, assign your key to a team |
| User Management | Create, list, and delete users |
| Chat Completions | Run chat completions |
| HTTP Requests | Make custom HTTP requests to the proxy server |
| Encryption Migration | Re-encrypt at-rest credentials to AES-256-GCM |
Quick Start
-
Install the CLI
The
liteclient is a thin laptop install: it points at a LiteLLM proxy and runs your coding agents through it, with none of the proxy server runtime pulled in. The one-line installer needs onlycurl; it bootstraps uv when it's missing and lets uv provision a compatible Python for you:curl -fsSL https://raw.githubusercontent.com/BerriAI/litellm/main/scripts/install-cli.sh | shAlready have uv and prefer to drive it yourself? Install the package directly:
uv tool install 'litellm[cli]'Any of these gives you the
litecommand. A proxy server installed fromlitellm[proxy]ships it too, but that extra leaves outkeyring, so its credential stays in a file instead of your OS keychain. Start by typing it in your terminal:lite -
Set up environment variables
export LITELLM_PROXY_URL=http://localhost:4000
export LITELLM_PROXY_API_KEY=sk-your-key(Replace with your actual proxy URL and API key)
-
Make your first request (list models)
lite models listIf the CLI is set up correctly, you should see a list of available models or a table output.
-
Troubleshooting
- If you see an error, check your environment variables and proxy server status.
Authentication using CLI
You can use the CLI to authenticate to the LiteLLM Gateway. This is great if you're trying to give a large number of developers self-serve access to the LiteLLM Gateway.
For an indepth guide, see CLI sign-in.