Update Key
Update an existing API key on a live LiteLLM proxy. Ask for the key and what to change (budget, models, expiry), then call POST /key/update.
Install
npx skills add BerriAI/litellm-skills --skill update-keygit clone --depth 1 https://github.com/BerriAI/litellm-skills.git /tmp/litellm-skills
mkdir -p ~/.claude/skills
cp -r /tmp/litellm-skills/update-key ~/.claude/skills/update-keyPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Update Key
Update an existing API key on a live LiteLLM proxy.
## Setup
```
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
## Ask the user
1. **Key** (required) — the `sk-...` value. If they don't have it, list keys:
```bash
curl -s "$BASE/key/list?size=25&return_full_object=true" -H "Authorization: Bearer $KEY"
```
2. **What to change** — any combination of:
- `max_budget` (float)
- `models` (list)
- `key_alias` (string)
- `tpm_limit` / `rpm_limit` (int)
- `duration` (e.g. `30d` — extends expiry from now)
- `team_id` / `user_id` (reassign ownership)
## Run
```bash
curl -s -X POST "$BASE/key/update" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "<sk-...>",
"max_budget": <value>,
"models": [<models>],
"duration": "<duration>"
}'
```
Only include the fields being changed.
## Output
Show the updated `key_alias`, `max_budget`, `models`, `expires`.Details
- Skill name
update-key- Repository
- BerriAI/litellm-skills
- Path
update-key/SKILL.md- License
- MIT
- Repo updated
- 7 May 2026
FAQ
What does the Update Key skill do?
Update an existing API key on a live LiteLLM proxy. Ask for the key and what to change (budget, models, expiry), then call POST /key/update.
How do I install the Update Key skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add BerriAI/litellm-skills --skill update-key. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Update Key popular?
It lives in BerriAI/litellm-skills, which has 109 GitHub stars and 19 forks.
Related skills
Add Agent
109BerriAI/litellm-skills
Create a new AI agent on a live LiteLLM proxy. Asks for agent name, the underlying model, and optional MCP server access, then calls POST /v1/agents.
Add Key
109BerriAI/litellm-skills
Generate a new API key on a live LiteLLM proxy. Asks for alias, scope (user/team), budget, models, and expiry, then calls POST /key/generate. Use when the user wants to create, generate, or provision an API key on a LiteLLM proxy instance.
Add MCP
109BerriAI/litellm-skills
Register a new MCP server on a live LiteLLM proxy. Asks for the server name, transport type, URL, and optional auth, then calls POST /v1/mcp/server.
Update MCP
109BerriAI/litellm-skills
Update an existing MCP server on a live LiteLLM proxy. Ask for the server_id and what to change (URL, auth, description), then call PUT /v1/mcp/server.
Update Agent
109BerriAI/litellm-skills
Update an existing AI agent on a live LiteLLM proxy. Ask for the agent_id and what to change (model, description, MCP servers), then call PATCH /v1/agents/{agent_id}.
Update Model
109BerriAI/litellm-skills
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.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.