update-key

Update existing LiteLLM proxy API keys via POST /key/update.

77|12|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/BerriAI/litellm-skills --skill update-key
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-key
Source: https://github.com/BerriAI/litellm-skills/tree/main/update-key
Command: npx skills add https://github.com/BerriAI/litellm-skills --skill update-key

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Update and reconfigure an existing API key on a live LiteLLM proxy to adapt budgets, model access, expiration, or ownership.

Core Features & Use Cases

  • Update fields such as max_budget, models, key_alias, duration, and ownership (team_id / user_id) for an existing key.
  • Apply changes via POST /key/update to live proxies in production or staging environments.
  • Handle validation and error reporting to ensure safe key management.

Quick Start

Provide the key and the desired changes, then run the update request to the proxy.

Frequently Asked Questions about update-key

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update an existing API key on my LiteLLM proxy without recreating it?

To update a LiteLLM proxy API key, POST to the /key/update endpoint with the base URL, admin API key, and the fields to modify, such as max_budget, models, key_alias, duration, or team_id.

Can I modify the max_budget and model access for a live LiteLLM proxy key in production?

Yes, you can modify max_budget and models for a live LiteLLM proxy key in production by sending an update request with the new values to the /key/update endpoint using your admin credentials.

What do I need to reconfigure a key on a live LiteLLM proxy?

To reconfigure a key on a live LiteLLM proxy, you need the base URL of the proxy, an admin API key for authentication, and the specific key fields to update, such as duration or user_id.

How do I change the team_id or user_id ownership for an API key on a LiteLLM proxy?

You can change API key ownership on a LiteLLM proxy by including the new team_id or user_id in your POST request to the /key/update endpoint, transferring the key's ownership safely.

What is the best way to adjust the expiration duration of an active LiteLLM proxy key?

The best way to adjust an active LiteLLM proxy key's expiration duration is to send a POST request to the /key/update endpoint with the updated duration field, avoiding the need to delete and recreate the key.

Does updating a LiteLLM proxy key require deleting the old key first?

No, updating a LiteLLM proxy key does not require deleting the old key. You can apply changes directly to the existing key by sending a POST request to the /key/update endpoint with the desired modifications.