Add user

From BerriAI/litellm-skills · View interactive version

Add user is an AI agent skill from the GitHub repository BerriAI/litellm-skills. Create a new user on a live LiteLLM proxy. Asks for email, role, and optional budget/model limits, then calls POST /user/new and shows the result.

How to use this skill

Skill file

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:

On error show detail and the likely fix.

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.