$npx -y skills add BerriAI/litellm-skills --skill update-agentUpdate 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}.
| 1 | # Update Agent |
| 2 | |
| 3 | Update an existing AI agent on a live LiteLLM proxy. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | ``` |
| 8 | LITELLM_BASE_URL — e.g. https://my-proxy.example.com |
| 9 | LITELLM_API_KEY — proxy admin key |
| 10 | ``` |
| 11 | |
| 12 | ## Ask the user |
| 13 | |
| 14 | 1. **agent_id** — if they don't have it, list first: |
| 15 | ```bash |
| 16 | curl -s "$BASE/v1/agents" -H "Authorization: Bearer $KEY" |
| 17 | ``` |
| 18 | 2. **What to change** — any combination of: |
| 19 | - `model` (swap the underlying model) |
| 20 | - `description` |
| 21 | - `tpm_limit` / `rpm_limit` |
| 22 | - MCP server access |
| 23 | |
| 24 | ## Run |
| 25 | |
| 26 | Use PATCH to update only the changed fields: |
| 27 | |
| 28 | ```bash |
| 29 | curl -s -X PATCH "$BASE/v1/agents/<agent_id>" \ |
| 30 | -H "Authorization: Bearer $KEY" \ |
| 31 | -H "Content-Type: application/json" \ |
| 32 | -d '{ |
| 33 | "litellm_params": {"model": "<new_model>"}, |
| 34 | "agent_card_params": {"description": "<new_description>"} |
| 35 | }' |
| 36 | ``` |
| 37 | |
| 38 | ## Output |
| 39 | |
| 40 | Show the updated agent name, model, and description. Confirm the agent ID is unchanged. |