Agent skill · software engineering · jeremylongshore
openrouter-install-auth
Set up OpenRouter API authentication and configure API keys. Use when
Why this skill is useful
Provides specific commands and environment setup for integrating with the OpenRouter API that the AI wouldn't reliably generate on its own.
What it needs
Requires node, python3 installed locally. Requires openrouter account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
OpenRouter Install & Auth Overview Set up OpenRouter API credentials, configure the OpenAI-compatible client, verify authentication, and check credit balance. OpenRouter keys start with sk-or-v1- and authenticate against https://openrouter.ai/api/v1. Prerequisites OpenRouter account (free at openrouter.ai) Python 3.8+ or Node.js 18+ OpenAI SDK (pip install openai or npm install openai) Instructions 1. Generate an API Key 1. Go to openrouter.ai/keys 2. Click Create Key, name it (e.g., my-app-dev) 3. Copy the sk-or-v1-... value immediately (shown only once) 4. Optionally set a credit limit on the key for spend control 2. Configure Environment 3. Initialize the Client Python: TypeScript: 4. Verify Authentication 5. Send a Test Request Required Headers Header Purpose Required -------- --------- ---------- Authorization Bearer sk-or-v1-... Yes HTTP-Referer Your app URL for dashboard attribution Recommended X-Title App name shown in OpenRouter dashboard Recommended Content-Type application/json Yes (POST) Key Formats Type Pattern Purpose ------ --------- --------- Standard key sk-or-v1-... API access (chat completions, models) Management key sk-or-v1-... Key provisioning only (cannot call completions) BYOK provider key Varies by provider Bring-your-own-key for direct provider access Output A completed setup leaves you with: OPENROUTERAPIKEY set in your environment (or a gitignored .env file), holding the sk-or-v1-... …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/openrouter-install-auth