VM0VM0
Model Selection

OpenRouter

Use Claude models through OpenRouter

OpenRouter provides access to Claude models through a unified API.

Quick Setup

vm0 model-provider setup --type openrouter-api-key

You'll be prompted for your API key and model selection.

Get API Key

Visit OpenRouter Settings to create and obtain an API key.

Available Models

ModelDescription
anthropic/claude-sonnet-4.5Balanced performance
anthropic/claude-opus-4.5Highest capability
anthropic/claude-haiku-4.5Fastest response
autoAutomatic model selection (default)

Non-Interactive Setup

# With default model (auto)
vm0 model-provider setup --type openrouter-api-key --secret "sk-or-xxx"

# With specific model
vm0 model-provider setup --type openrouter-api-key --secret "sk-or-xxx" --model "anthropic/claude-sonnet-4.5"

Run

vm0 run my-agent "build a todo app"

Resources