O
openrouter-common-errors
Execute diagnose and fix common OpenRouter API errors. Use when troubleshooting failed requests. Trigger with phrases like 'openrouter error', 'openrouter not working', 'openrouter 401', 'openrouter 429', 'fix openrouter'.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Execute diagnose and fix common OpenRouter API errors. Use when troubleshooting failed requests. Trigger with phrases like 'openrouter error', 'openrouter not working', 'openrouter 401', 'openrouter 429', 'fix openrouter'.
How to use
- Zainstaluj skill w swoim środowisku Claude Code, Codex lub OpenClaw, dodając go do pakietu umiejętności.
- Kiedy napotkasz błąd OpenRouter, wyzwól skill używając jednej z fraz: "openrouter error", "openrouter 401", "openrouter 429", "openrouter 402" lub "fix openrouter".
- Skill przeanalizuje kod błędu i zwróci jego przyczynę — na przykład dla 401 będzie to problem z kluczem API, dla 402 brak kredytów, dla 429 przekroczenie limitu zapytań.
- Postępuj zgodnie z sugerowaną naprawą: dla błędu autoryzacji zregeneruj klucz na openrouter.ai/keys (musi zaczynać się od sk-or-v1-), dla braku kredytów doładuj je na openrouter.ai/credits, dla przekroczenia limitu czekaj lub zmień plan.
- Jeśli błąd dotyczy modelu, sprawdź jego dostępność komendą curl do API modeli OpenRouter lub zmień identyfikator na prawidłowy format z prefiksem dostawcy.
- Dla błędów 400 (bad request) zweryfikuj format tablicy messages i schemat narzędzi — skill podpowie, które pola wymagają poprawy.