> ## Documentation Index
> Fetch the complete documentation index at: https://docs.link-token.farhr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw

> OpenClaw is an open agent platform that runs on your machine and works through chat apps you already use.

## Install

<Note>
  Use Node **≥ 22** before installing.
</Note>

```shellscript theme={null} theme={null}
npm install -g openclaw@latest
```

### Terminal onboarding

```shellscript theme={null} theme={null}
openclaw onboard
```

Choose `Yes`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/1.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=b4711afae3c3bbb706868d648c1e18d8" alt="Oc 1" width="1212" height="814" data-path="public/cn/oc-1.png" data-path="images/OpenClaw/1.webp" />

Choose `QuickStart`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/2.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=5bf2f74de4211af00b2e40697ba80f36" alt="Oc 2" width="1212" height="814" data-path="public/cn/oc-2.png" data-path="images/OpenClaw/2.webp" />

Choose `Skip for now`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/3.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=588b5b839ca05e749b1c638cb0cc35b7" alt="Oc 3" width="1212" height="814" data-path="public/cn/oc-3.png" data-path="images/OpenClaw/3.webp" />

Choose `All providers`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/4.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=2915a7465939b528b9084793deeafc47" alt="Oc 4" width="1212" height="814" data-path="public/cn/oc-4.png" data-path="images/OpenClaw/4.webp" />

Pick a default model (you can use `Keep current` and edit the config next)

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/5.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=79cdc8aced2bbb4fec9628e41d2de0a3" alt="Oc 5" width="1212" height="814" data-path="public/cn/oc-5.png" data-path="images/OpenClaw/5.webp" />

Link an account if needed, otherwise `Skip for now`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/6.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=c276248b0e5649edf61ce8b63c64f5aa" alt="Oc 6" width="1212" height="814" data-path="public/cn/oc-6.png" data-path="images/OpenClaw/6.webp" />

Configure skills: choose `Yes`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/7.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=b6a92bc8e09aef8c430a9c9b7639b380" alt="Oc 7" width="1212" height="814" data-path="public/cn/oc-7.png" data-path="images/OpenClaw/7.webp" />

Choose `npm`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/8.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=5a790b5aed93b5a6cfd2f3bfe54087a0" alt="Oc 8" width="1212" height="814" data-path="public/cn/oc-8.png" data-path="images/OpenClaw/8.webp" />

Pick the skills you need

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/9.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=2e476d58d5f0a88db78f3e22ab939a4b" alt="Oc 9" width="1212" height="814" data-path="public/cn/oc-9.png" data-path="images/OpenClaw/9.webp" />

Select all `No` where shown

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/10.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=672852e988a3ce7052b094034371c285" alt="Oc 10" width="1212" height="814" data-path="public/cn/oc-10.png" data-path="images/OpenClaw/10.webp" />

`Skip for now`

<img src="https://mintcdn.com/linktoken/CmeMISf2O4oa9WLK/images/OpenClaw/11.webp?fit=max&auto=format&n=CmeMISf2O4oa9WLK&q=85&s=cdede5da2c936366f728e9fbb1960994" alt="Oc 11" width="1212" height="814" data-path="public/cn/oc-11.png" data-path="images/OpenClaw/11.webp" />

Choose `Hatch in UI`

### 修改配置文件

打开 \~/.openclaw/openclaw\.json 文件，增加以下配置：

```
{
"models": {
    "mode": "merge",
    "providers": {
      "link-token": {
        "baseUrl": "https://link-token.cn/v1",
        "apiKey": "API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-sonnet-4-5",
            "name": "claude-sonnet-4-5",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 64000
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "link-token/claude-sonnet-4-5"
      },
      "workspace": "your_workspace_path",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  }
}
```
