$npx -y skills add BerriAI/litellm-skills --skill update-modelUpdate an existing model on a live LiteLLM proxy. Ask for the model_id and what to change (API key, base URL, etc.), then call POST /model/update.
| 1 | # Update Model |
| 2 | |
| 3 | Update an existing model's configuration on a live LiteLLM proxy. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | ``` |
| 8 | LITELLM_BASE_URL — e.g. https://my-proxy.example.com |
| 9 | LITELLM_API_KEY — proxy admin key |
| 10 | ``` |
| 11 | |
| 12 | ## Ask the user |
| 13 | |
| 14 | 1. **model_id** (required) — if they don't have it, list models first: |
| 15 | ```bash |
| 16 | curl -s "$BASE/model/info" -H "Authorization: Bearer $KEY" | python3 -c " |
| 17 | import sys,json |
| 18 | for m in json.load(sys.stdin).get('data',[]): |
| 19 | print(m['model_info']['id'], m['model_name']) |
| 20 | " |
| 21 | ``` |
| 22 | 2. **What to change** — any combination of: |
| 23 | - `api_key` (rotate the credential) |
| 24 | - `api_base` (change endpoint) |
| 25 | - `api_version` (Azure) |
| 26 | - `model` (underlying model string, e.g. `azure/new-deployment`) |
| 27 | |
| 28 | ## Run |
| 29 | |
| 30 | ```bash |
| 31 | curl -s -X POST "$BASE/model/update" \ |
| 32 | -H "Authorization: Bearer $KEY" \ |
| 33 | -H "Content-Type: application/json" \ |
| 34 | -d '{ |
| 35 | "model_info": {"id": "<model_id>"}, |
| 36 | "litellm_params": { |
| 37 | "api_key": "<new_key>", |
| 38 | "api_base": "<new_base>" |
| 39 | } |
| 40 | }' |
| 41 | ``` |
| 42 | |
| 43 | Only include `litellm_params` fields being changed. |
| 44 | |
| 45 | ## Output |
| 46 | |
| 47 | Confirm the model was updated. Offer to run a test call to verify it still routes correctly. |