[Bug]: /v1/skills returns 500 when ANTHROPIC_API_KEY is not configured or invalid
Author: ihannsenCreated Jun 29, 2026Updated Sep 29, 2026
Labelsproxyllm translationstale
Check for existing issues
- I have searched the existing issues and checked that my issue is not a duplicate.
What happened?
When calling GET /v1/skills on the LiteLLM proxy (v1.90.0) without a valid ANTHROPIC_API_KEY, the endpoint returns HTTP 500 with a Pydantic ValidationError instead of gracefully returning an empty skills list.
The error occurs in two scenarios:
- No ANTHROPIC_API_KEY set:
ValueError: ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN is required for Skills API - Invalid ANTHROPIC_API_KEY set:
pydantic_core._pydantic_core.ValidationError: 1 validation error for ListSkillsResponse data Field required
This breaks clients that automatically call /v1/skills on startup (e.g., pi-agent with pi-provider-litellm).
Steps to Reproduce
- Start LiteLLM proxy WITHOUT
ANTHROPIC_API_KEYset (or with a fake key likesk-dummy) - Call
GET /v1/skillswith valid LiteLLM auth - Receive HTTP 500
Relevant log output
pydantic_core._pydantic_core.ValidationError: 1 validation error for ListSkillsResponse
data Field required [type=missing, input_value={'type': 'error', 'error'...}]
File "/app/.venv/lib/python3.13/site-packages/litellm/skills/main.py", line 316, in alist_skills
response = await init_response
File "/app/.venv/lib/python3.13/site-packages/litellm/llms/anthropic/skills/transformation.py", line 153, in transform_list_skills_response
return ListSkillsResponse(**response_json)What part of LiteLLM is this about? Proxy API - /v1/skills endpoint
What LiteLLM version are you on ? v1.90.0
Source: BerriAI/litellm