> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter

# OpenRouter

OpenRouter provides a **unified API** that routes requests to many models behind a single
endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.

## CLI सेटअप

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw onboard --auth-choice apiKey --token-provider openrouter --token "$OPENROUTER_API_KEY"
```

## विन्यास स्निपेट

```json5 theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  env: { OPENROUTER_API_KEY: "sk-or-..." },
  agents: {
    defaults: {
      model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
    },
  },
}
```

## टिप्पणियाँ

* मॉडल संदर्भ `openrouter/<provider>/<model>` हैं।
* अधिक मॉडल/प्रदाता विकल्पों के लिए, देखें [/concepts/model-providers](/concepts/model-providers)।
* OpenRouter आंतरिक रूप से आपकी API कुंजी के साथ एक बेयरर टोकन का उपयोग करता है।
