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

> OpenClaw에서 OpenRouter의 통합 API로 다양한 모델에 접근하기

# OpenRouter

# OpenRouter

OpenRouter는 단일 엔드포인트와 API 키 뒤에서 요청을 여러 모델로 라우팅하는
**통합 API**를 제공합니다. OpenAI 호환이므로 대부분의 OpenAI SDK는 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" },
    },
  },
}
```

## 참고 사항

* 모델 ref는 `openrouter/<provider>/<model>` 형식입니다.
* 더 많은 모델/제공업체 옵션은 [/concepts/model-providers](/concepts/model-providers)를 참고하세요.
* OpenRouter는 내부적으로 API 키와 함께 Bearer 토큰을 사용합니다.
