CLI Authentication
Use the litellm 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.
Demo​
Usage​
- 
Install the CLI If you have uv installed, you can try this: uv tool install 'litellm[proxy]'If that works, you'll see something like this: ...
 Installed 2 executables: litellm, litellm-proxyand now you can use the tool by just typing litellm-proxyin your terminal:litellm-proxy
- 
Set up environment variables export LITELLM_PROXY_URL=http://localhost:4000(Replace with your actual proxy URL) 
- 
Login litellm-proxy loginThis will open a browser window to authenticate. If you have connected LiteLLM Proxy to your SSO provider, you should be able to login with your SSO credentials. Once logged in, you can use the CLI to make requests to the LiteLLM Gateway. 
- 
Make a test request to view models litellm-proxy models listThis will list all the models available to you.