Skip to main content

Overview

OpenRouter gives VibeLearn access to 100+ models through a single API. Useful as a fallback when Gemini hits rate limits, or as your primary provider if you prefer a different model for concept extraction.

Setup

1. Get an API Key

Sign up at openrouter.ai/keys.

2. Add to Settings

~/.vibelearn/settings.json

Free Models

Set a specific model:

Provider Priority

If both Gemini and OpenRouter are configured, Gemini is tried first. To use OpenRouter exclusively, set only VIBELEARN_OPENROUTER_API_KEY (without a Gemini key).

Troubleshooting

No output / empty response — Free models may be slow or at capacity. Try a different free model or use a paid model. 402 Payment Required — Model requires credits. Switch to a :free model or add OpenRouter credits. Check which provider was used: