> For the complete documentation index, see [llms.txt](https://runyourai.gitbook.io/userguide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://runyourai.gitbook.io/userguide/api/openclaw.md).

# \[활용하기] OpenClaw

### 사전 작업

* [API 라우터에서 API Key 발급](https://runyourai.gitbook.io/userguide/api/guide/get)
* Ollama를 활용한 OpenClaw 설치
  * [Ollama 설치](https://ollama.com/)
  * [OpenClaw 연동](https://docs.ollama.com/integrations/openclaw#openclaw)

### 연동 하기

1. `~/.openclaw/openclaw.json` 에 아래 [예시](https://docs.openclaw.ai/gateway/config-tools?utm_source=chatgpt.com#custom-providers-and-base-urls)와 같이 `providers`에 `"runyourai": {}`를 추가합니다.
   1. ```
      {
        models: {
          mode: "merge",
          providers: {
            "runyourai": {
              baseUrl: "https://api.runyour.ai/v1",
              apiKey: <API 라우터에서 발급 받은 API Key>,
              api: "openai-completions",
              models: [
                {
                  "id": <모델 ID>,
                  "input": [
                    "text"
                  ],
                  "name": <모델 이름>,
                  "reasoning": false
                },
                // 예시
                {
                  "id": "anthropic/claude-opus-4-7",
                  "input": [
                    "text"
                  ],
                  "name": "Claude Opus 4.7",
                  "reasoning": false
                }
              ],
            },
          },
        },
      }
      ```
2. `ollama launch openclaw` 명령어로 OpenClaw를 재시작 후 사용합니다.
