mcpField
A
add-user

add-user

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

About add-user

A skill for creating users on a live LiteLLM proxy. It accepts an email and role, with optional budget and model limits, then returns the user ID and generated API key.

Key features

  1. 01Create a LiteLLM proxy user
  2. 02Choose from listed user roles
  3. 03Set an optional budget limit
  4. 04Restrict allowed models
  5. 05Return user ID and API key

Use cases

  1. 01Add a user to a LiteLLM proxy
  2. 02Set a user's role and budget
  3. 03Limit which models a user may access
  4. 04Retrieve credentials for future updates

Install

Copy the command and run it in a terminal.

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

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

Details

From the project README

Add User

Create a new user on a live LiteLLM proxy.

Setup

Ask for these if not already known:

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#creating-a-user

Ask the user

  1. Email (required)
  2. Role — one of: proxy_admin, proxy_admin_viewer, internal_user (default), internal_user_viewer
  3. Max budget (optional, e.g. 10.00)
  4. Allowed models (optional, e.g. gpt-4o, claude-3-5-sonnet)

Run

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

Output

Show the user:

  • user_id — they'll need this for future updates
  • key — the auto-generated API key for this user
  • user_role, max_budget

On error show detail and the likely fix.

Comments

Markdown supported