$npx -y skills add BerriAI/litellm-skills --skill update-userUpdate an existing user on a live LiteLLM proxy. Ask for the user_id and what to change (budget, role, models, etc.), then call POST /user/update.
| 1 | # Update User |
| 2 | |
| 3 | Update an existing user 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 | API reference: https://litellm.vercel.app/docs/proxy/virtual_keys#updating-a-user |
| 13 | |
| 14 | ## Ask the user |
| 15 | |
| 16 | 1. **user_id** (required) — if they don't have it, list users first: |
| 17 | ```bash |
| 18 | curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY" |
| 19 | ``` |
| 20 | 2. **What to change** — any combination of: |
| 21 | - `max_budget` (float) |
| 22 | - `user_role` (`proxy_admin`, `proxy_admin_viewer`, `internal_user`, `internal_user_viewer`) |
| 23 | - `models` (list) |
| 24 | - `tpm_limit` / `rpm_limit` (int) |
| 25 | - `user_email`, `user_alias` |
| 26 | |
| 27 | ## Run |
| 28 | |
| 29 | ```bash |
| 30 | curl -s -X POST "$BASE/user/update" \ |
| 31 | -H "Authorization: Bearer $KEY" \ |
| 32 | -H "Content-Type: application/json" \ |
| 33 | -d '{ |
| 34 | "user_id": "<user_id>", |
| 35 | "max_budget": <value>, |
| 36 | "user_role": "<role>", |
| 37 | "models": [<models>] |
| 38 | }' |
| 39 | ``` |
| 40 | |
| 41 | Only include the fields being changed. |
| 42 | |
| 43 | ## Output |
| 44 | |
| 45 | Show the updated `user_id`, `max_budget`, `user_role`, `models`. |