Update user

From BerriAI/litellm-skills · View interactive version

Update user is an AI agent skill from the GitHub repository BerriAI/litellm-skills. Update 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.

How to use this skill

Skill file

Update User

Update an existing user on a live LiteLLM proxy.

Setup

LITELLM_BASE_URL  — e.g. https://my-proxy.example.com
LITELLM_API_KEY   — proxy admin key

API reference: https://litellm.vercel.app/docs/proxy/virtual_keys#updating-a-user

Ask the user

  1. user_id (required) — if they don't have it, list users first:

```bash

curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY"

```

  1. What to change — any combination of:

Run

curl -s -X POST "$BASE/user/update" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "<user_id>",
    "max_budget": <value>,
    "user_role": "<role>",
    "models": [<models>]
  }'

Only include the fields being changed.

Output

Show the updated user_id, max_budget, user_role, models.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.