Using Noir with OpenRouter

Use OpenRouter to access multiple AI models (OpenAI, Anthropic, Google, Meta, etc.) through a single unified API.

Setup

  1. API Key: Get from OpenRouter dashboard
  2. Model: Browse available models at OpenRouter Models

Usage

Run Noir with OpenRouter:

noir -b ./myapp \
     --ai-provider=openrouter \
     --ai-model=anthropic/claude-3.5-sonnet \
     --ai-key=sk-or-...

Using environment variable:

export NOIR_AI_KEY=sk-or-...
noir -b ./myapp --ai-provider=openrouter --ai-model=openai/gpt-4o

OpenRouter provides:

  • Access to 100+ models from multiple providers
  • Unified API for all models
  • Automatic fallbacks and load balancing
  • Cost-effective model selection
Esc