Skip to main content
OpenClaw is an open-source personal AI assistant platform focused on “actually helping you get things done” rather than just chatting. It can run on your local device, connect to chat tools such as WhatsApp, Telegram, Slack, and Feishu (Lark), and combine email, calendar, browser, file system, and script execution capabilities to help you automate tasks. It also supports persistent memory, multi-model integration, and skill extensions, making it ideal for users who want a controllable, customizable, and practically functional private AI assistant.

Installation

Here we use a simpler installation method. For other options, refer to the official documentation at https://docs.openclaw.ai/

System Requirements

  • Node >=22
  • macOS, Linux, or Windows via WSL2
  • pnpm is only required when building from source

Quick Installation

curl -fsSL https://openclaw.ai/install.sh | bash

Connect to Myrouter API

Modify the ~/.openclaw/openclaw.json configuration file. Field values can be adjusted based on your needs.
  • models field
  "models": {
    "mode": "merge",
    "providers": {
      "<provider_name>": {
        "baseUrl": "<provider_base_url>",
        "apiKey": "<your_api_key>",
        "api": "<api_endpoint_type>",
        "models": [
          {
            "id": "<model_id>",
            "name": "<model_display_name>",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": <contextWindow>,
            "maxTokens": <maxTokens>
          }
        ]
      }
    }
  }
  • agent field
"agents": {
    "defaults": {
      "model": {
        "primary": "<provider_name>/<model_id>"
      },
      "models": {
        "<provider_name>/<model_id>": {
          "alias": "<model_alias>"
        }
      },
      "workspace": "<your_local_path>/.openclaw/workspace",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  }
  • Example:
"models": {
    "mode": "merge",
    "providers": {
      "Myrouter": {
        "baseUrl": "https://api.myrouter.ai/openai/v1",
        "apiKey": "sk_xxxxxxxxxxxxxxxxxx",
        "api": "openai-completions",
        "models": [
          {
            "id": "gpt-5.4",
            "name": "gpt-5.4 (Custom Provider)",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 16000,
            "maxTokens": 4096
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "myrouter/gpt-5.4"
      },
      "models": {
        "Myrouter/gpt-5.4": {
          "alias": "gpt-5.4"
        }
      },
      "workspace": "/Users/0000/.openclaw/workspace",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },