openrouter
Installation
SKILL.md
Troubleshooting
If requests fail, run zero doctor check-connector --env-name OPENROUTER_TOKEN or zero doctor check-connector --url https://openrouter.ai/api/v1/chat/completions --method POST.
How to Use
OpenRouter exposes an OpenAI-compatible API at
https://openrouter.ai/api/v1. Authenticate with a Bearer token. The
model field accepts dozens of vendor-prefixed slugs (e.g.
anthropic/claude-3.5-sonnet, meta-llama/llama-3.1-70b-instruct,
google/gemini-1.5-pro).
1. Basic chat completion
Write to /tmp/openrouter_request.json: