From openrouter-pack
Diagnose and fix common OpenRouter API errors. Use when encountering error codes or unexpected failures. Trigger with phrases like 'openrouter error', 'openrouter 401', 'openrouter 429', 'fix openrouter'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/openrouter-pack:openrouter-common-errorsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides a comprehensive reference for diagnosing and resolving the most frequently encountered OpenRouter API errors.
This skill provides a comprehensive reference for diagnosing and resolving the most frequently encountered OpenRouter API errors.
error.code field in the response body for the specific error type| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Invalid, expired, or missing API key | Verify key starts with sk-or-; check it's not revoked at openrouter.ai/keys |
| 402 Payment Required | No credits remaining | Add credits at openrouter.ai/credits; or use a free model like google/gemma-2-9b-it:free |
| 429 Too Many Requests | Rate limit exceeded | Implement exponential backoff; respect Retry-After header; reduce request rate |
| 400 Bad Request | Malformed request body | Validate messages array format; check model ID includes provider prefix |
| 408 Request Timeout | Model took too long to respond | Retry with a faster model; reduce max_tokens; use streaming |
| 502/503 Server Error | Upstream provider outage | Retry with backoff; check status.openrouter.ai; use fallback models |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.
npx claudepluginhub nickloveinvesting/nick-love-plugins --plugin openrouter-packDiagnoses and fixes OpenRouter API errors (401 auth, 402 credits, 429 rate limits, 400 bad request) using reference table, response format, and bash diagnostics.
Invoke OpenRouter CLI for chat completions, embeddings, rerank, video generation, API key management, model browsing, credits checks, and scripted LLM calls with stable JSON output from shell, scripts, and agents.
Diagnoses and fixes Groq API errors like 401 authentication and 429 rate limits using curl diagnostics, rate limit headers, and Bash/TypeScript solutions.