Skip to content

OpenClaw Integration Guide

OpenClaw is a personal AI assistant that runs on your own device, capable of connecting to various messaging platforms, supporting AI conversations, file operations, task automation, and more.

1. Get API Key

2. Install OpenClaw

Prerequisite: Node.js 22 or later

1: Install via Script

macOS/Linux:

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

Windows (PowerShell):

powershell
iwr -useb https://openclaw.ai/install.ps1 | iex

2: Manual Installation

Install via npm:

bash
npm install -g openclaw@latest

3: Verify Installation

bash
openclaw --version

Installation

3. Set Up OpenClaw

1: Create Configuration File

  • Linux/macOS: ~/.openclaw/openclaw.json
  • Windows: C:\Users\<YourUsername>\.openclaw\openclaw.json

2: Fill in Configuration Content

Replace <OPENAI_API_KEY> with your API key, and <OPENAI_API_MODEL> with the model name:

json
{
  "models": {
    "mode": "merge",
    "providers": {
      "EazyDevelop": {
        "apiKey": "<OPENAI_API_KEY>",
        "baseUrl": "https://api-maas.eazytec-cloud.com/v1",
        "api": "openai-completions",
        "models": [
          {
            "id": "<OPENAI_API_MODEL>",
            "name": "<OPENAI_API_MODEL>",
            "contextWindow": 204800,
            "maxTokens": 16384
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "EazyDevelop/<OPENAI_API_MODEL>"
      }
    }
  }
}

3: Complete Setup

bash
openclaw setup

Setup

4. Start

Keep the terminal window open after starting. Closing it will stop the service.

bash
openclaw gateway

Start

5. View Model List

bash
openclaw models list

Model List

6. Start a Conversation

The command-line approach is suitable for quick interaction, while the graphical interface is better for extended use.

1: Command-Line Approach

bash
openclaw chat

Conversation

2: Graphical Interface Approach

After executing the command, the browser will open automatically

bash
openclaw dashboard

Graphical Interface Command

Graphical Interface UI

Notes

  • Node.js version must be 22 or higher; older versions may cause installation to fail
  • If openclaw setup hangs, try manually editing the configuration file and then restarting
  • Keep the terminal window open after starting; closing it will stop the service