add-user
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 do I install this agent skill?
npx skills add https://github.com/berriai/litellm-skills --skill add-userIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates user management on a LiteLLM proxy server by calling its API. It requires an administrative API key and constructs a shell command using user-provided inputs. The primary risk involves potential command injection if user-supplied strings are not properly sanitized before being executed in the shell.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
- Email (required)
- Role — one of:
proxy_admin,proxy_admin_viewer,internal_user(default),internal_user_viewer - Max budget (optional, e.g.
10.00) - 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 updateskey— the auto-generated API key for this useruser_role,max_budget
On error show detail and the likely fix.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/berriai/litellm-skills/add-user">View add-user on skillZs</a>