update-model
Update an existing model on a live LiteLLM proxy. Ask for the model_id and what to change (API key, base URL, etc.), then call POST /model/update.
How do I install this agent skill?
npx skills add https://github.com/berriai/litellm-skills --skill update-modelIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates the management of LiteLLM proxy models. It performs authorized API calls to a user-defined endpoint and parses JSON data locally. While it has an indirect prompt injection surface due to API data ingestion, it follows standard administrative practices and is published by the maintainers of the LiteLLM project.
- Socketpass
No alerts
- Snykfail
Risk: HIGH · 1 issue
What does this agent skill do?
Update Model
Update an existing model's configuration on a live LiteLLM proxy.
Setup
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin key
Ask the user
- model_id (required) — if they don't have it, list models first:
curl -s "$BASE/model/info" -H "Authorization: Bearer $KEY" | python3 -c " import sys,json for m in json.load(sys.stdin).get('data',[]): print(m['model_info']['id'], m['model_name']) " - What to change — any combination of:
api_key(rotate the credential)api_base(change endpoint)api_version(Azure)model(underlying model string, e.g.azure/new-deployment)
Run
curl -s -X POST "$BASE/model/update" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"model_info": {"id": "<model_id>"},
"litellm_params": {
"api_key": "<new_key>",
"api_base": "<new_base>"
}
}'
Only include litellm_params fields being changed.
Output
Confirm the model was updated. Offer to run a test call to verify it still routes correctly.
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/update-model">View update-model on skillZs</a>