Terminal
Terminal/Skill
Creates a team on a LiteLLM proxy with a budget and allowed models, then shows the new team ID.
By LiteLLM
Works with
npx skills add berriai/litellm-skills --skill add-teamCreate a new team on a live LiteLLM proxy.
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/team_based_routing
team_alias)100.00)gpt-4o, gpt-4o-mini) — leave empty to allow allBASE="$LITELLM_BASE_URL"
KEY="$LITELLM_API_KEY"
curl -s -X POST "$BASE/team/new" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"team_alias": "<name>",
"max_budget": <budget_or_null>,
"models": [<models_or_empty>],
"tpm_limit": <tpm_or_null>,
"rpm_limit": <rpm_or_null>
}'
Confirm the team was created:
curl -s "$BASE/team/info?team_id=<team_id>" \
-H "Authorization: Bearer $KEY"
Show the user:
team_id — they'll need this to generate keys for the teamteam_alias, max_budget, modelsOn error:
LITELLM_API_KEY is a valid admin keydetail and the likely fix