mcpField
U
update-user

update-user

github.com/berriaiCloud & DevOps10393 installsUpdated 25w ago
Repository

About update-user

A skill for updating users on a live LiteLLM proxy. It supports changes to budgets, roles, model access, rate limits, email, and alias.

Key features

  1. 01Change budgets and roles
  2. 02Set model access
  3. 03Adjust TPM and RPM limits
  4. 04Edit email and alias
  5. 05List users to find a user ID

Use cases

  1. 01Change a user’s budget or role
  2. 02Adjust a user’s model permissions
  3. 03Update a user’s rate limits or profile

MCP support

Use this skill to update user settings on a live LiteLLM proxy; the input does not describe MCP-specific functions.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/berriai/litellm-skills --skill update-user

After installing, type/update-userin Claude Code to confirm it loaded.

Details

From the project README

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:
    curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY"
    
  2. What to change — any combination of:
    • max_budget (float)
    • user_role (proxy_admin, proxy_admin_viewer, internal_user, internal_user_viewer)
    • models (list)
    • tpm_limit / rpm_limit (int)
    • user_email, user_alias

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.

Comments

Markdown supported