Skip to main content

Contributing - UI

Here's how to run the LiteLLM UI locally for making changes:

1. Clone the repo​

git clone https://github.com/BerriAI/litellm.git

2. Start the UI + Proxy​

2.1 Start the proxy on port 4000

Tell the proxy where the UI is located

export PROXY_BASE_URL="http://localhost:3000/"
cd litellm/litellm/proxy
python3 proxy_cli.py --config /path/to/config.yaml --port 4000

2.2 Start the UI

Set the mode as development (this will assume the proxy is running on localhost:4000)

export NODE_ENV="development" 
cd litellm/ui/litellm-dashboard

npm run dev

# starts on http://0.0.0.0:3000/ui

3. Go to local UI​

http://0.0.0.0:3000/ui