Your privacy choices

Allow optional cookies for referral attribution, visit analytics, and Google Ads purchase measurement.

OpenClaw Setup Guide

Configure an OpenClaw model provider with a ready-to-use settings file and step-by-step screenshots.

Replace Your Model Configuration with This File

Configuration snippet
"custom-gpt-agent-cc": {
        "baseUrl": "
https://api.llm-token.cn/v1
",
        "apiKey": "",
        "api": "anthropic-messages",
        "models": [
          {
            "id": "kimi-for-coding",
            "name": "kimi-for-coding (Custom Provider)",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 250000,
            "maxTokens": 8192

1️⃣ Enter this command in a Linux, cloud server, Mac, or Windows terminal window.

openclaw onboard

2️⃣ Select Yes.

An OpenClaw confirmation prompt. The orange warning explains that the feature is private by default, that shared or multi-user use requires a lock, and asks whether to continue. Yes is selected and No is unselected.An OpenClaw confirmation prompt. The orange warning explains that the fe…


3️⃣

The Onboarding mode selection screen in OpenClaw. QuickStart, which lets you configure details later with openclaw configure, is selected. Manual is the other available option.The Onboarding mode selection screen in OpenClaw. QuickStart, which lets…


4️⃣

The Model and authentication provider selection screen in OpenClaw. Provider options such as OpenAI and Anthropic are listed, while Custom Provider for any OpenAI- or Anthropic-compatible endpoint is highlighted near the bottom. A red arrow notes that you may need to scroll down to find it.The Model and authentication provider selection screen in OpenClaw. Prov…


5️⃣ Enter our URL. If you get an error, enter https://api.llm-token.cn instead. Make sure to include https and do not omit the s.

The custom provider API Base URL screen in OpenClaw. Model and authentication provider is set to Custom Provider, and API Base URL contains https://api.llm-token.cn/v1.The custom provider API Base URL screen in OpenClaw. Model and authentic…


6️⃣ Option 2 is recommended.

Option 1

Select the third option, Unknown.

The Endpoint compatibility screen in OpenClaw. OpenAI-compatible and Anthropic-compatible are listed, while Unknown with automatic detection is selected and highlighted in red. In the Option 1 instructions, this screen is used to explain the compatibility choice for the claude-sonnet-4-6 model.The Endpoint compatibility screen in OpenClaw. OpenAI-compatible and Ant…

Option 2

If you select claude-sonnet-4-6, choose Anthropic-compatible as shown below.

The OpenClaw model configuration for Option 2 when using claude-sonnet-4-6. Endpoint compatibility is set to Anthropic-compatible, Model ID is claude-sonnet-4-6, and Verification successful confirms that the setup passed validation.The OpenClaw model configuration for Option 2 when using claude-sonnet-4…


7️⃣

The API Key entry step in OpenClaw. The screen prompts you to paste the API Key provided by customer support into the field labeled API Key, which may be left blank only when a key is not required.The API Key entry step in OpenClaw. The screen prompts you to paste the…


9️⃣ Enter the model name you want to use here. We recommend claude-sonnet-4-6.

claude-sonnet-4-6

The Model ID entry screen in the OpenClaw setup guide. The field shows examples such as llama3 and claude-3-7-sonnet. This corresponds to the step where you enter a model name such as claude-sonnet-4-6, and the recommended model is claude-sonnet-4-6.The Model ID entry screen in the OpenClaw setup guide. The field shows e…


🔟

The successful model validation screen in OpenClaw. Endpoint compatibility is Anthropic-compatible, Model ID is claude-sonnet-4-6, and Verification successful appears above the Endpoint ID field, where you can enter a descriptive name for the configured model.The successful model validation screen in OpenClaw. Endpoint compatibili…

Press Enter at this step.

The optional Model alias screen in OpenClaw. The field shows examples such as local and ollama. This follows the step where claude-sonnet-4-6 is recommended as the model name. You can use a custom alias for claude-sonnet-4-6 or leave the field blank and press Enter.The optional Model alias screen in OpenClaw. The field shows examples su…

Summary: In OpenClaw, open the custom Provider or model configuration option.

A summary of the OpenClaw model configuration. Model and authentication provider is Custom Provider, API Base URL is https://api.llm-token.cn/v1, API Key input is set to Paste API key now, Endpoint compatibility is Anthropic-compatible, and Model ID is claude-sonnet-4-6 by default but can be customized.A summary of the OpenClaw model configuration. Model and authentication…