Execute set up OpenRouter API authentication and configure API keys. Use when starting a new OpenRouter integration or troubleshooting auth issues. Trigger with phrases like 'openrouter setup', 'openrouter api key', 'openrouter authentication', 'configure openrouter'.
From openrouter-packnpx claudepluginhub nickloveinvesting/nick-love-plugins --plugin openrouter-packThis skill is limited to using the following tools:
references/environment-setup.mdreferences/errors.mdreferences/examples.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
This skill guides you through obtaining and configuring OpenRouter API credentials, setting up environment variables, and verifying your authentication is working correctly.
pip install openai or npm install openai)sk-or-... value immediately (it won't be shown again)OPENROUTER_API_KEY=sk-or-... to your .env file or export it in your shell profilebase_url="https://openrouter.ai/api/v1" with your key.env| Error | Cause | Fix |
|---|---|---|
401 invalid_api_key | Key is malformed or revoked | Regenerate at openrouter.ai/keys |
401 missing_api_key | Authorization header missing | Add Authorization: Bearer sk-or-... header |
403 insufficient_credits | Account has no credits | Add credits at openrouter.ai/credits or use a free model |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.