Skip to content

OpenClaw (formerly Clawdbot, Moltbot)

Reference, synced 2026-06-13.

flowchart TD
  n0["Models"]
  n1["Overview"]
  n2["Products"]
  n3["Solutions"]
  n4["Pricing"]
  n5["Resources"]
  n6["Partners"]
  n7["Support"]
  n8["Language"]
  n0 --> n1
  n1 --> n2
  n2 --> n3
  n3 --> n4
  n4 --> n5
  n5 --> n6
  n6 --> n7
  n7 --> n8

Free access Accelerate Delivery with Fixed-Cost Agentic CodingWatch how it works

Models

Empowering AI innovation for both enterprises and developers with Alibaba Cloud’s best-in-class Qwen models, AI-native apps, and AI solutions.

Alibaba Cloud Model Studio \ Enterprise-grade large model service and application development platform.

Try Visual Model \ Supports image understanding, image generation, and video generation.

Models

HappyHorse-1.0-T2V \ Cinematic creative generation, ultimate dynamic details Qwen3-VL-Plus \ Native VL, spatial reasoning, 1M-context video analysis Wan2.7-VideoEdit \ Supports both localized and global editing with prompt

Qwen3.6-Plus \ Native multimodal, 1M context, agentic coding Wan2.7-Image-Pro \ Interactive editing, long-text rendering, precise prompt following Qwen-Plus \ Balanced intelligence, efficient inference, production-ready performance

Qwen-Image-2.0 \ Professional infographics, exquisite photorealism Z-Image-Turbo \ Ultra-fast image generation, high throughput, cost-optimized inference Qwen3-Coder-Next \ Multi-turn tool interactions, future-ready development support

Wan2.7-T2V \ High-fidelity T2V, 15s duration, advanced camera control Wan2.7-I2V \ Cinematic I2V with emotional depth and visceral impact Wan2.7-R2V \ Up to 5 mixed image/video inputs and audio timbre cloning

GenAI Application

Qoder \ Intelligent coding assistant, available for enterprise-dedicated deployment. Qoder CN \ AI-powered coding assistant that boosts developer productivity with intelligent code completion, AI chat, multi-file editing, and task automation.

AI Service

Model Experience \ Experience full-scale, multimodal model capabilities online. Platform for AI \ An AI-native algorithm engineering platform for end-to-end modeling, training, and inference service deployment. Fine-tune Video Generation Model \ Customize Wan’s text-to-video capabilities through model fine-tuning to meet your unique requirements.

AI Use Case

AI Savings Plan Hot \ Save up to 47% on AI costs. Limited-time offer tailored to your usage. AI Video Creation \ Elevate your professional video production with Wan 2.6.

AI Token Plan \ One plan. Multiple models. Big Savings with a Fixed Subscription. AI Image Creation \ All-in-one creative suite for copywriting, image generation, and poster design.

Overview

As a global full-stack AI leader, Alibaba Cloud aims to make computing accessible to everyone and help worldwide customers accelerate innovation.

Why Alibaba Cloud

About Alibaba Cloud \ AI Powered Cloud Technology Our Global Network \ Explore our global presence and deployment regions around the world Our Global Offices \ With offices in 4 continents, we're always close to where it matters.

Asia Accelerator \ Accelerate Success in Asia with Alibaba Cloud Go Global \ Benefits of our Global Alliance Trust Center \ Empowering enterprises with a secure, compliant, and globally trusted cloud infrastructure

Customers and Insights

Olympic Games \ Alibaba Cloud Powers Olympic Games with AI-powered cloud technology Case Studies \ Learn how customers are scaling their businesses on Alibaba Cloud Analyst Reports \ Learn what the top industry analyst firms are saying about Alibaba Cloud

What's New

Events and Webinars \ Quick access to upcoming and on-demand events Product Updates \ Stay informed of the latest innovations Press Room \ Latest news and media releases

Products

Featured ProductsAI & Machine Learning Computing Container Storage Networking & CDN Security Middleware Database Analytics ComputingMedia ServicesEnterprise Services & Cloud CommunicationDomain Names and WebsitesEnd User ComputingServerlessDeveloper ToolsMigration & O&M ManagementApsara Stack

Alibaba Cloud Model Studio \ Supercharge your AI journey effortlessly with industry-leading GenAI models ApsaraDB RDS \ Store and manage your business data, with automated monitoring and backups Certificate Management Service (Original SSL Certificate) \ Create a safe and secure connection between your website and users

Elastic Compute Service (ECS) \ Host websites anywhere and scale enterprise workloads Container Service for Kubernetes (ACK) \ Run and scale containerized applications on managed Kubernetes infrastructure Object Storage Service (OSS) \ Store large amounts of data in the cloud and access it anywhere, anytime

Simple Application Server (SAS) \ All-in-one services for fast deployment Elastic IP Address (EIP) \ Manage your public IPs independently to improve internet network quality Domain Names and Website \ Get the perfect domain name to suit your every need

Solutions

Solutions by Industry Technical Solutions AI WebsitesNetworking Security and ComplianceData and AnalyticsEnterprise Service and ApplicationCloud MigrationCloud NativeHybrid CloudSMB solutions

Financial Services \ Innovate faster with Alibaba Cloud Games \ Grow your game rapidly with high global availability

New Retail \ Alibaba Cloud enables digital retail transformation to fuel growth and realize an omnichannel customer experience throughout the consumer journey. Media and Entertainment \ Ready your content for today's media market with a digitalized media journey

Supply Chain \ Power your supply chain with intelligent, efficient, and reliable solutions Sports \ Digitizing the sports industry with intelligent tech

Sustainability \ Achieve a sustainable future with low-carbon and energy-efficient technologies

Pricing

Flexible options like pay-as-you-go and clear billing rules to meet diverse business needs.

Overview & Tools

Pricing Calculator \ Get an instant pricing estimate based on your usage and needs Free Trial \ Try our 80+ cloud products for free.

Pricing Options \ Get the most out of Alibaba Cloud with flexible pricing

Optimize your cost

Migrate & Save \ Superior Performance At Lower Pricing. Save up to 50%. Promotion Center \ Unlock the latest Alibaba Cloud offers & promos

Resources

Official documentation, extensive tools, training resources, and a community to grow and innovate in the cloud.

Technical Resources

Documentation \ Product guides and FAQs Architecture Center \ Design reliable, secure, and efficient cloud architecture. Intelligent Solution Explorer \ Find the right solution for you, powered by AI

Blog \ Latest cloud insights and developer trends Whitepapers \ Research that explores the how and why behind our technology

Training&Certification

Alibaba Cloud Academy \ Build cloud skills and earn certifications with expert-led training.

Developer Hub

Alibaba Cloud Project Hub \ Explore real-world projects built by developers using our platform. Our Developer MVPs \ Celebrating the developers who lead, build, and inspire our community

Partners

Partner-first strategy offering collaborative product, sales, and service models, plus high-quality partner solutions that complement Alibaba Cloud’s capabilities.

Marketplace

AI Alliance for ISVs \ Partner with us to build and grow AI solutions together ISV Benefits \ Unlock resources, market access, and go-to-market support as an ISV partner

Alibaba Cloud Marketplace \ Explore ready-to-deploy solutions from our partners and ISVs

Find a Partner

Partner Hub \ Find your ideal partner in no time

Become a Partner

Partner Network \ A partner portal for Alibaba Cloud Channel, Technology, MSP partner and other partner programs

Support

Full-lifecycle support and expert services, from cloud advisory and migration to operations.

Support & Professional Services

Professional Services \ Expert-led services to design, migrate, and optimize your cloud journey Support Plans \ Flexible support for every stage — from startup to enterprise

Partner Support Program \ Priority technical support for partners, with dedicated managers and faster issue resolution

Contact us

Connect With Us \

Talk to a sales expert and get a custom quote for your business

Language

  • English
  • 简体中文
  • 繁體中文
  • 日本語
  • Bahasa Indonesia

Locale

Visit aliyun.com

Documentation

Alibaba Cloud Model Studio

User Guide (Models) User Guide (Application) API Reference (Models) API Reference (Application)

Search for Help Content

Getting Started

The Beginner's Guide

Well-Architected Framework

AI & Machine Learning

Platform For AI

Alibaba Cloud Model Studio

DashVector

Artificial Intelligence Recommendation

OpenSearch

Image Search

Machine Translation

Intelligent Speech Interaction

Optimization Solver

Intelligent Computing LINGJUN

Computing

Elastic Compute Service

Elastic GPU Service

Elastic Container Instance

Dedicated Host

Compute Nest

Simple Application Server

Cloud Box

Auto Scaling

Elastic High Performance Computing

Batch Compute (Deprecated)

Function Compute

Serverless App Engine

ENS

Elastic Desktop Service

App Streaming

WUYING Terminal

Cloud Phone

Edge Network Acceleration

Alibaba Cloud Linux

AgentBay

Container

Container Service for Kubernetes

Container Compute Service

Container Registry

Storage

Object Storage Service

Cloud Parallel File Storage

File Storage NAS

Tablestore

Storage Capacity Unit

Simple Log Service

Cloud Backup

Intelligent Media Management

Drive and Photo Service

Data Transport

Cloud Storage Gateway

Data Online Migration

Hybrid Cloud Storage Array

Storage Services Overview

Backup and Disaster Recovery Center

Networking and CDN

Server Load Balancer

Elastic IP Address

Internet Shared Bandwidth

Data Transfer Plan

Virtual Private Cloud

NAT Gateway

PrivateLink

Alibaba Cloud DNS PrivateZone

Network Intelligence Service

Cloud Data Transfer

IPv6 Gateway

Anycast Elastic IP Address

Cloud Enterprise Network

Global Accelerator

VPN Gateway

Smart Access Gateway

Express Connect

CDN

Edge Security Acceleration

Cloud Network Well-architected Design Guidelines

Security

Anti-DDoS

Web Application Firewall

Cloud Firewall

Security Center

Bastionhost

Secure Access Service Edge

Certificate Management Service

Key Management Service

Data Security Center

Identity as a Service

Fraud Detection

AI Guardrails

Captcha

Blockchain as a Service

ID Verification

Managed Security Service

Middleware

Enterprise Distributed Application Service

Microservices Engine

Alibaba Cloud Service Mesh

SchedulerX

ApsaraMQ for RocketMQ

ApsaraMQ for Kafka

ApsaraMQ for RabbitMQ

ApsaraMQ for MQTT

Simple Message Queue (formerly MNS)

CloudFlow

EventBridge

Application Real-Time Monitoring Service

Managed Service for Prometheus

Managed Service for Grafana

Managed Service for OpenTelemetry

Performance Testing

STAROps

Databases

ApsaraDB Console

PolarDB

ApsaraDB RDS

ApsaraDB for OceanBase (Deprecated)

Tair (Redis® OSS-Compatible)

Lindorm

Time Series Database

ApsaraDB for MongoDB

ApsaraDB for HBase

ApsaraDB for Memcache

ApsaraDB for MyBase

AnalyticDB

ApsaraDB for ClickHouse

ApsaraDB for SelectDB

Data Transmission Service

Database Autonomy Service

Data Management

Database Gateway - Deprecated

ApsaraDB for Cassandra - Deprecated

Analytics Computing

MaxCompute

Hologres

Realtime Compute for Apache Flink

Elasticsearch

Vector Retrieval Service for Milvus

E-MapReduce

Data Lake Formation

DataV

Quick BI

Quick Audience

Quick Tracking

DataWorks

DataHub

Dataphin

Media Services

ApsaraVideo VOD

ApsaraVideo Live

Intelligent Media Services

ApsaraVideo Media Processing

Apsara Video SDK

Enterprise Services & Cloud Communication

Energy Expert

CloudQuotation

Salesforce on Alibaba Cloud

GoChina ICP Filing Assistant

Marketplace

Alibaba Mail

Direct Mail

Short Message Service

Voice Service

Phone Number Verification Service

Cell Phone Number Service

Chat App Message Service

Financial Intelligence Engine

Domain Names and Websites

Domain Names

ICP Filing

Alibaba Cloud DNS

End User Computing

Elastic Desktop Service

App Streaming

WUYING Terminal

Cloud Phone

AgentBay

Internet of Things

IoT Platform

Serverless

Serverless App Engine

CloudFlow

EventBridge

Simple Message Queue (formerly MNS)

Function Compute

Developer Tools

OpenAPI Explorer

Alibaba Cloud SDK

Cloud Shell

Resource Orchestration Service

Alibaba Cloud CLI

BSS OpenAPI

Terraform

Pulumi

Ticket System API

Mobile Platform as a Service

Alibaba Cloud DevOps

API Gateway

Cloud Control API

AI Coding Assistant Lingma

Cloud Skills Portal

Migration & O&M Management

CloudOps Orchestration Service

Cloud Monitor

Intelligent Advisor

Cloud Governance Center

ActionTrail

Cloud Config

Resource Access Management

Resource Management

Cloud Architect Design Tools

Migration Hub

Server Migration Center

Service Catalog

Logic Composer

Quota Center

CloudSSO

HTTPDNS

Solutions

SAP

SuperApp

OpenLake

Membership Service

Expenses and Costs

Account Center

More

Support

Legal

Tech Share Terms and Conditions

After Sales Support

China Gateway Program

Service Level Objectives

Management Console

Security Control

OpenClaw is an open source personal AI assistant platform that lets you interact with AI through various messaging channels. You can configure it to access AI models from Alibaba Cloud Model Studio. It supports three access methods: pay-as-you-go, Coding Plan, and Token Plan Team Edition.

Install OpenClaw

OpenClaw requires Node.js 22 or later. To check your version:

bash
node --version

If Node.js is not installed or your version is older than 22, download and install it from the Node.js official website.

macOS / Linux

Windows

We recommend using the official installation script:

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

Alternatively, install it globally using npm:

bash
npm install -g openclaw@latest

In PowerShell:

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

Alternatively, install it globally using npm:

bash
npm install -g openclaw@latest

After installation, OpenClaw automatically starts the configuration wizard. You can also run openclaw onboard to configure it manually.

ParameterRecommendation
I understand this is powerful and inherently risky. Continue?Select Yes
Onboarding modeSelect QuickStart
Model/auth providerSelect Skip for now (you can configure a Model Studio model later)
Filter models by providerSelect All providers
Default modelSelect Keep current
Select channel (QuickStart)Select Skip for now (you can configure a channel later)
Configure skills now? (recommended)Select No
Enable hooks?Press the Spacebar to select an option, then press Enter.
How do you want to hatch your bot?Select Do this later

Configure access credentials

Token Plan Team Edition

Replace YOUR_API_KEY with the API Key for your Token Plan Team Edition. For a list of available models, see the supported models.

API KeyDedicated API Key for the Token Plan Team Edition
Base URLhttps://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic
Available modelsAll models included in the Token Plan Team Edition

The configuration file is located at ~/.openclaw/openclaw.json. OpenClaw automatically reads this file on startup.

Note

The example disables gateway authentication (auth.mode: none), suitable only for single-machine local use. For shared or remote access, run openclaw doctor --fix to enable token authentication.

Method 1: Terminal

Method 2: Web UI

  1. Open the configuration file
bash
nano ~/.openclaw/openclaw.json
  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your API Key for the Token Plan Team Edition.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian-token-plan": {
           "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-max",\
               "name": "qwen3.7-max",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-flash",\
               "name": "qwen3.6-flash",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "deepseek-v4-pro",\
               "name": "deepseek-v4-pro",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "deepseek-v4-flash",\
               "name": "deepseek-v4-flash",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "deepseek-v3.2",\
               "name": "deepseek-v3.2",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "kimi-k2.6",\
               "name": "kimi-k2.6",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "kimi-k2.5",\
               "name": "kimi-k2.5",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-5.1",\
               "name": "glm-5.1",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian-token-plan/qwen3.7-plus"
         },
         "models": {
           "bailian-token-plan/qwen3.7-max": {},
           "bailian-token-plan/qwen3.7-plus": {},
           "bailian-token-plan/qwen3.6-plus": {},
           "bailian-token-plan/qwen3.6-flash": {},
           "bailian-token-plan/deepseek-v4-pro": {},
           "bailian-token-plan/deepseek-v4-flash": {},
           "bailian-token-plan/deepseek-v3.2": {},
           "bailian-token-plan/kimi-k2.6": {},
           "bailian-token-plan/kimi-k2.5": {},
           "bailian-token-plan/glm-5.1": {},
           "bailian-token-plan/glm-5": {},
           "bailian-token-plan/MiniMax-M2.5": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save and exit

Press Ctrl+X, press Y to confirm saving, and then press Enter to confirm the file name.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Note

The Web UI method is only available in OpenClaw ≤ 2026.3.28. For later versions, use Method 1: Terminal.

  1. Start the Web UI

In your terminal, run the following command to start the Web UI:

bash
openclaw dashboard

In the left menu, choose Configuration > Settings > Advanced, and click Open to open the configuration editor.

  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your API Key for the Token Plan Team Edition.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian-token-plan": {
           "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-max",\
               "name": "qwen3.7-max",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-flash",\
               "name": "qwen3.6-flash",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "deepseek-v4-pro",\
               "name": "deepseek-v4-pro",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "deepseek-v4-flash",\
               "name": "deepseek-v4-flash",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "deepseek-v3.2",\
               "name": "deepseek-v3.2",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "kimi-k2.6",\
               "name": "kimi-k2.6",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 32768,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "kimi-k2.5",\
               "name": "kimi-k2.5",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-5.1",\
               "name": "glm-5.1",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian-token-plan/qwen3.7-plus"
         },
         "models": {
           "bailian-token-plan/qwen3.7-max": {},
           "bailian-token-plan/qwen3.7-plus": {},
           "bailian-token-plan/qwen3.6-plus": {},
           "bailian-token-plan/qwen3.6-flash": {},
           "bailian-token-plan/deepseek-v4-pro": {},
           "bailian-token-plan/deepseek-v4-flash": {},
           "bailian-token-plan/deepseek-v3.2": {},
           "bailian-token-plan/kimi-k2.6": {},
           "bailian-token-plan/kimi-k2.5": {},
           "bailian-token-plan/glm-5.1": {},
           "bailian-token-plan/glm-5": {},
           "bailian-token-plan/MiniMax-M2.5": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save the configuration

In the Web UI configuration page, click the save button to complete the configuration.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Coding Plan

Replace YOUR_API_KEY with the API Key for your Coding Plan (in the format sk-sp-xxxxx). For a list of available models, see the supported models.

API KeyDedicated API Key for the Coding Plan, in the format sk-sp-xxxxx
Base URLhttps://coding-intl.dashscope.aliyuncs.com/apps/anthropic
Available modelsAll models included in the Coding Plan

The configuration file is located at ~/.openclaw/openclaw.json. OpenClaw automatically reads this file on startup.

Note

The example disables gateway authentication (auth.mode: none), suitable only for single-machine local use. For shared or remote access, run openclaw doctor --fix to enable token authentication.

Method 1: Terminal

Method 2: Web UI

  1. Open the configuration file
bash
nano ~/.openclaw/openclaw.json
  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your Coding Plan API Key.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian-coding-plan": {
           "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.5-plus",\
               "name": "qwen3.5-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3-max-2026-01-23",\
               "name": "qwen3-max-2026-01-23",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 262144,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3-coder-next",\
               "name": "qwen3-coder-next",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 262144,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "qwen3-coder-plus",\
               "name": "qwen3-coder-plus",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-4.7",\
               "name": "glm-4.7",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "kimi-k2.5",\
               "name": "kimi-k2.5",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian-coding-plan/qwen3.7-plus"
         },
         "models": {
           "bailian-coding-plan/qwen3.7-plus": {},
           "bailian-coding-plan/qwen3.6-plus": {},
           "bailian-coding-plan/qwen3.5-plus": {},
           "bailian-coding-plan/qwen3-max-2026-01-23": {},
           "bailian-coding-plan/qwen3-coder-next": {},
           "bailian-coding-plan/qwen3-coder-plus": {},
           "bailian-coding-plan/MiniMax-M2.5": {},
           "bailian-coding-plan/glm-5": {},
           "bailian-coding-plan/glm-4.7": {},
           "bailian-coding-plan/kimi-k2.5": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save and exit

Press Ctrl+X, press Y to confirm saving, and then press Enter to confirm the file name.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Note

The Web UI method is only available in OpenClaw ≤ 2026.3.28. For later versions, use Method 1: Terminal.

  1. Start the Web UI

In your terminal, run the following command to start the Web UI:

bash
openclaw dashboard

In the left menu, choose Configuration > Settings > Advanced, and click Open to open the configuration editor.

  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your Coding Plan API Key.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian-coding-plan": {
           "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.5-plus",\
               "name": "qwen3.5-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3-max-2026-01-23",\
               "name": "qwen3-max-2026-01-23",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 262144,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3-coder-next",\
               "name": "qwen3-coder-next",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 262144,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "qwen3-coder-plus",\
               "name": "qwen3-coder-plus",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "glm-4.7",\
               "name": "glm-4.7",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "kimi-k2.5",\
               "name": "kimi-k2.5",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 262144,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian-coding-plan/qwen3.7-plus"
         },
         "models": {
           "bailian-coding-plan/qwen3.7-plus": {},
           "bailian-coding-plan/qwen3.6-plus": {},
           "bailian-coding-plan/qwen3.5-plus": {},
           "bailian-coding-plan/qwen3-max-2026-01-23": {},
           "bailian-coding-plan/qwen3-coder-next": {},
           "bailian-coding-plan/qwen3-coder-plus": {},
           "bailian-coding-plan/MiniMax-M2.5": {},
           "bailian-coding-plan/glm-5": {},
           "bailian-coding-plan/glm-4.7": {},
           "bailian-coding-plan/kimi-k2.5": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save the configuration

In the Web UI configuration page, click the save button to complete the configuration.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Pay-as-you-go

Replace YOUR_API_KEY with your Model Studio API Key (in the format sk-xxxxx). For a list of available models, see the Model Market.

API KeyModel Studio API Key, in the format sk-xxxxx
Base URLEnsure your Base URL, API Key, and model all correspond to the same region: - China (Beijing): https://dashscope.aliyuncs.com/apps/anthropic - Singapore: https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic. Replace WorkspaceId with your actual Get the Workspace ID.
Available modelsAll models available in the Model Market

The configuration file is located at ~/.openclaw/openclaw.json. OpenClaw automatically reads this file on startup. The following examples use the China (Beijing) region. If you use a different region, replace the baseUrl with the corresponding URL from the table above.

Note

The example disables gateway authentication (auth.mode: none), suitable only for single-machine local use. For shared or remote access, run openclaw doctor --fix to enable token authentication.

Method 1: Terminal

Method 2: Web UI

  1. Open the configuration file
bash
nano ~/.openclaw/openclaw.json
  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your Model Studio API Key.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian": {
           "baseUrl": "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "deepseek-v3.2",\
               "name": "deepseek-v3.2",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian/qwen3.6-plus"
         },
         "models": {
           "bailian/qwen3.6-plus": {},
           "bailian/MiniMax-M2.5": {},
           "bailian/glm-5": {},
           "bailian/deepseek-v3.2": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save and exit

Press Ctrl+X, press Y to confirm saving, and then press Enter to confirm the file name.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Note

The Web UI method is only available in OpenClaw ≤ 2026.3.28. For later versions, use Method 1: Terminal.

  1. Start the Web UI

In your terminal, run the following command to start the Web UI:

bash
openclaw dashboard

In the left menu, choose Configuration > Settings > Advanced, and click Open to open the configuration editor.

  1. Add the configuration

For a new configuration: Copy the following content into the configuration file. Replace YOUR_API_KEY with your Model Studio API Key.

For an existing configuration: To preserve your current settings, do not replace the entire file content. See How to safely modify an existing configuration.

json
{
     "meta": {
       "lastTouchedVersion": "2026.2.1",
       "lastTouchedAt": "2026-02-03T08:20:00.000Z"
     },
     "models": {
       "mode": "merge",
       "providers": {
         "bailian": {
           "baseUrl": "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
           "apiKey": "YOUR_API_KEY",
           "api": "anthropic-messages",
           "models": [\
             {\
               "id": "qwen3.7-plus",\
               "name": "qwen3.7-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "qwen3.6-plus",\
               "name": "qwen3.6-plus",\
               "reasoning": false,\
               "input": ["text", "image"],\
               "contextWindow": 1000000,\
               "maxTokens": 65536,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "MiniMax-M2.5",\
               "name": "MiniMax-M2.5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 204800,\
               "maxTokens": 131072,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }\
             },\
             {\
               "id": "glm-5",\
               "name": "glm-5",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 202752,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             },\
             {\
               "id": "deepseek-v3.2",\
               "name": "deepseek-v3.2",\
               "reasoning": false,\
               "input": ["text"],\
               "contextWindow": 163840,\
               "maxTokens": 16384,\
               "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },\
               "compat": { "thinkingFormat": "openai" }\
             }\
           ]
         }
       }
     },
     "agents": {
       "defaults": {
         "model": {
           "primary": "bailian/qwen3.6-plus"
         },
         "models": {
           "bailian/qwen3.6-plus": {},
           "bailian/MiniMax-M2.5": {},
           "bailian/glm-5": {},
           "bailian/deepseek-v3.2": {}
         }
       }
     },
     "gateway": {
       "mode": "local",
       "auth": { "mode": "none" }
     }
}
  1. Save the configuration

In the Web UI configuration page, click the save button to complete the configuration.

  1. Apply the configuration

To apply the changes, restart the gateway with the following command:

bash
openclaw gateway restart

Connect to message channels

WhatsApp

Step 1: Install the WhatsApp plugin

The WhatsApp channel is connected via a plugin. Run the following command to install it:

bash
openclaw plugins install @openclaw/whatsapp

Step 2: Configure the WhatsApp channel

Enter the following prompt in your OpenClaw chat. OpenClaw will ask for your phone number in E.164 format (a + sign followed by the country code and number), then automatically add the number to the configuration and complete the setup.

plaintext
Please help me configure the WhatsApp channel. First, ask for my phone number, and then automatically fill it into the allowFrom and groupAllowFrom fields in the following configuration to complete the setup.
{
  "channels": {
    "whatsapp": {
      "dmPolicy": "pairing",
      "allowFrom": ["<phone_number>"],
      "groupPolicy": "allowlist",
      "groupAllowFrom": ["<phone_number>"]
    }
  }
}

Note

We recommend using a separate phone number for the WhatsApp channel to prevent the bot from responding to your daily chats. If you use your personal phone number, you can enter a command in your OpenClaw chat to enable selfChatMode. The bot will then respond only in your "Message yourself" chat, leaving other conversations unaffected.

  1. Start the WhatsApp linking process. The terminal displays a QR code.
bash
openclaw channels login --channel whatsapp
  1. Open WhatsApp on your phone and scan the QR code in the terminal to link your account.

  2. Restart the gateway.

bash
openclaw gateway restart

Step 4: Test

  1. Check the WhatsApp channel status:
bash
openclaw status

In the Channels section, WhatsApp should be ON with a status of OK.

  1. In WhatsApp, send a message to yourself to verify that the bot responds correctly.

Telegram

  1. Create a bot using BotFather

Send the /newbot command, follow the prompts to enter a bot name and username (the username must end with bot), and copy and save the returned bot token (format: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz).

  1. In your OpenClaw chat, enter the following prompt and replace xxxx with your actual bot token. OpenClaw will automatically apply the configuration.
plaintext
Please help me configure Telegram with the following settings. My bot token is xxxx.
{
     "channels": {
       "telegram": {
         "enabled": true,
         "botToken": "xxxx",
         "dmPolicy": "pairing"
       }
     }
}
  1. After the configuration is complete, restart the gateway.
bash
openclaw gateway restart
  1. In Telegram, send a message to your bot. When you send your first message, you will receive a pairing code.

  2. In your terminal, run the following command, replacing xxx with the actual pairing code:

bash
openclaw pairing approve telegram xxx

Discord

Step 1: Create a Discord application and bot

  1. Create a Discord application

Go to the Discord Developer Portal, click New Application, enter an application name, and then click Create.

  1. Create a bot and enable permissions

  2. In the left navigation pane, click Bot and set a username for the bot.

  3. On the Bot page, scroll down to Privileged Gateway Intents and enable the following intents:

    • Message Content Intent

    • Server Members Intent

    • Presence Intent

When finished, click Save Changes. 3. Get the bot token

At the top of the Bot page, click Reset Token to generate a token. This token is displayed only once, so copy it and store it in a secure location immediately.

  1. Add the bot to a server

  2. In the left navigation pane, click OAuth2 and scroll down to OAuth2 URL Generator.

  3. Under Scopes, select the bot and applications.commands checkboxes.

  4. In the Bot Permissions section that appears, select the following permissions:

    • View Channels

    • Send Messages

    • Read Message History

    • Embed Links

    • Attach Files

  5. Copy the URL generated at the bottom of the page, open it in your browser, select the target server, and click Continue to add the bot.

Step 2: Configure Discord in OpenClaw

  1. On the machine where OpenClaw is running, set the bot token as an environment variable.
bash
export DISCORD_BOT_TOKEN="YOUR_BOT_TOKEN"
  1. Complete the Discord configuration:
bash
openclaw config set channels.discord.token --ref-provider default --ref-source env --ref-id DISCORD_BOT_TOKEN
openclaw config set channels.discord.enabled true --strict-json
  1. Restart the gateway to apply the configuration.
bash
openclaw gateway restart

Step 3: Pair and test

  1. In Discord, send a direct message to the bot. When you send your first message, you will receive a pairing code.

  2. In your terminal, run the following command to complete the pairing, replacing xxx with the actual pairing code:

bash
openclaw pairing approve discord xxx

Note

The pairing code is valid for one hour. If it expires, you must send another message to get a new one.

  1. Check the Discord channel status:
bash
openclaw status

In the Channels section, Discord should be ON with a status of OK.

  1. Send a message in Discord to test the connection.

Common commands

CommandDescriptionExample
CommandDescriptionExample
/helpLists available commands./help
/statusShows the current model, session, and gateway status./status
/model <model_name>Switches the model for the current session./model qwen3.7-max
/newStarts a new session./new
/compactCompresses conversation history to free up context window space./compact
/think <level>Sets the inference depth. Available levels are off, low, medium, and high./think high
/skillsLists available skills./skills

Use cases

Use case 1: Automate X (Twitter)

You can use OpenClaw to automate your X (Twitter) account, including posting, replying, searching, and browsing your timeline.

Configuration steps

  1. Install twitter-cli:
bash
uv tool install twitter-cli
  1. Enter the following command in an OpenClaw dialog to automatically install the Skill.
plaintext
Install this skill: https://github.com/public-clis/twitter-cli
  1. Restart the gateway to activate the Skill.
bash
openclaw gateway restart
  1. Verify the installation:
bash
openclaw skills list
  1. twitter-cli uses browser cookies for authentication. Ensure that you are logged in to x.com in a supported browser, such as Chrome, Edge, Firefox, Arc, or Brave. twitter-cli automatically retrieves the cookies.

Alternatively, you can manually set the authentication information using environment variables:

bash
export TWITTER_AUTH_TOKEN="your_auth_token"
export TWITTER_CT0="your_ct0_token"

Note

To get the cookies, open x.com in your browser, open developer tools, switch to the Application panel, and in the cookies section, find the values for auth_token and ct0.

Example 1: Automatically publish a post

Enter Check Sam Altman's recent tweets, summarize the key points, and then help me post a tweet with my thoughts in an OpenClaw dialog. OpenClaw automatically fetches the feed, analyzes the content, and publishes the post.

Example 2: Search for trending topics

Enter Search for tweets about harness engineering from yesterday. OpenClaw searches for relevant tweets and summarizes their key points.

Use case 2: Analyze and download YouTube videos

You can use OpenClaw to search for YouTube videos, extract video information, and download videos. It supports searching by keyword, sorting by date, and bulk-fetching video metadata.

Configuration steps

  1. Install yt-dlp:
bash
pip install yt-dlp
  1. Verify the installation:
bash
yt-dlp --version
  1. (Optional) Configure cookie authentication. This is required to access age-restricted, members-only, or private videos. Ensure that you are logged in to youtube.com in your browser, and then enter the following in an OpenClaw dialog:
plaintext
I need to configure YouTube cookie authentication. Please use yt-dlp to extract YouTube cookies from my browser.

After installation, you can use this feature directly in an OpenClaw dialog. OpenClaw automatically runs the yt-dlp command to perform video-related operations.

Example 1: Summarize video content

Enter Summarize the main points of this video: https://www.youtube.com/watch?v=XRgGFQ0EgM0 in an OpenClaw dialog. OpenClaw retrieves the video information and generates a summary.

Example 2: Download a video

Enter Download this video: https://www.youtube.com/watch?v=XRgGFQ0EgM0 in an OpenClaw dialog. OpenClaw runs yt-dlp to download the video to your local machine.

Use case 3: Schedule daily AI news delivery

You can use OpenClaw's cron feature to automatically fetch the latest AI news and push it to WhatsApp daily.

Configuration steps

  1. In your terminal:
bash
openclaw cron add \
     --name "ai-daily-news" \
     --cron "0 9 * * *" \
     --tz "UTC" \
     --message "Please visit https://techcrunch.com/category/artificial-intelligence/ to get today's AI news. Summarize the top 10 most important AI stories in a concise list format, each with a title and a one-sentence summary in English." \
     --channel whatsapp \
     --to "<your_phone_number>" \
     --announce

Parameters:

ParameterDescription
--nameThe task name.
--cronThe cron expression. "0 9 * * *" means the task runs at 9:00 AM every day.
--tzThe time zone. Set to "UTC" for Coordinated Universal Time. You can replace this with your local time zone, such as "America/New_York" or "Europe/London".
--messageThe prompt sent to the agent, which specifies what content to fetch and how to summarize it.
--channelThe push channel. Set to whatsapp.
--announcePushes the task's output to the specified recipient.
--toThe recipient's WhatsApp phone number in E.164 format, which includes a plus sign, country code, and phone number.

On success, the command returns a JSON object containing the task ID and the next scheduled execution time.

  1. After you create the task, you can manually trigger it once to verify that it works.

  2. List all tasks to get the task ID:

    bash
    openclaw cron list
  3. Manually trigger the task:

    bash
    openclaw cron run <task_ID> --timeout 120000
  4. Check the execution result:

    bash
    openclaw cron runs --id <task_ID>

    If the output shows "status": "ok" and "delivered": true, the news has been successfully delivered to WhatsApp.

Use case 4: Stock market analysis

You can use OpenClaw to analyze stock trends and receive technical analysis and investment suggestions.

Note

AI-generated content is for reference only and does not constitute actual investment advice or a basis for decision-making.

Configuration steps

  1. Install the Skill.

Enter the following instruction in an OpenClaw dialog. OpenClaw will automatically complete the installation.

bash
Install the manus-stock-analysis skill
  1. Restart the gateway to activate the Skill.
bash
openclaw gateway restart

Verify the installation:

bash
openclaw skills list
  1. In an OpenClaw dialog, ask stock-related questions, such as Analyze NVDA stock.

Learn more

Skill

Skills are extensible modules that provide new capabilities. The agent automatically matches and loads the appropriate Skill based on the user's request. OpenClaw allows you to view and enable built-in Skills, install community Skills from ClawHub, or create custom Skills.

Viewing existing skills

  1. View your installed Skills and their status:
bash
# List installed Skills
openclaw skills list

# Check Skill status (enabled, disabled, missing dependencies, etc.)
openclaw skills check

# View detailed information for a specific Skill
openclaw skills info <skill-name>
  1. Built-in Skills are disabled by default. To enable them, you must add them to the skills.allowBundled allowlist in ~/.openclaw/openclaw.json. OpenClaw loads only the built-in Skills listed in this array.
json
{
     "skills": {
       "allowBundled": [\
         "github",\
         "weather",\
         "summarize",\
         "coding-agent",\
         "clawhub",\
         "nano-pdf",\
         "google-web-search",\
         "image-lab"\
       ]
     }
}

Some built-in Skills require a third-party API key to function. Configure these keys in the skills.entries field of ~/.openclaw/openclaw.json. For details, refer to the Skills Configuration documentation.

Finding more skills

You can find and install more Skills using one of the following methods.

  1. Search and install from ClawHub

ClawHub offers over 3,000 community Skills. You can browse them on the website or search for them from the command line.

bash
# Search by keyword
npx clawhub search [keyword]

# Browse recently updated Skills
npx clawhub explore

After you find a suitable Skill, run the following command to install it. Then, restart the gateway to apply the Skill.

bash
npx clawhub install <skill-name>
  1. Ask OpenClaw directly

Describe your needs directly in the chat, for example, Help me find a Skill that can check the weather. OpenClaw will automatically search for and install a matching Skill.

Creating a custom skill

  1. Create a directory for your Skill.
bash
mkdir -p ~/.openclaw/workspace/skills/my-custom-skill
  1. In this directory, create the SKILL.md file. The file consists of two parts: YAML front matter and Markdown instructions. The name and description fields are required. The Agent uses the description to determine whether to load the Skill. Ensure that the description is accurate.
markdown
   ---
name: my-custom-skill
description: Short description
   ---

# My Custom Skill

When a user requests XXX, do the following:

1. Use the bash tool to run the xxx command
2. Parse the output
3. Return the result to the user as a table
  1. Restart the gateway to apply the Skill.
bash
# Restart the gateway
openclaw gateway restart

# Check if the Skill is active
openclaw skills list

For more information on Skill configuration, see the OpenClaw Official Documentation.

FAQ

How can I view my configured models?

To start the OpenClaw terminal command line, enter openclaw tui in your terminal. Then, enter /model to view the model list. Press Enter to select a model and Esc to exit the list.

Why do I get the error HTTP 401: Incorrect API key provided. or No API key found for provider xxx?

Possible causes include:

  1. The API key might be invalid, expired, empty, incorrectly formatted, or for the wrong endpoint. Ensure the API key corresponds to your payment method, is copied completely without extra spaces, and that your account subscription is active.

  2. OpenClaw may be using an incorrect, stale configuration from its configuration cache. To resolve this, delete the providers configuration item from the ~/.openclaw/agents/main/agent/models.json file and restart OpenClaw.

I have already configured other channels like DingTalk. How can I safely add models for a new plan without losing my existing configuration?

  • Do not use a "Replace All" function, as this will overwrite your custom configuration. Instead, modify only the relevant sections.

  • Use one of the following methods to complete the configuration:

    • If OpenClaw is responding normally: Enter the commands directly in an OpenClaw chat to merge the configuration.

    • If OpenClaw has no models configured or is not responding: Manually edit the ~/.openclaw/openclaw.json file. Modify only the relevant fields and leave your existing configuration unchanged.

After restarting the gateway, existing sessions may not function correctly. Start a new session.

What should I do if I get a device identity required error?

Error message:

plaintext
http://127.0.0.1:18791/15:05:56 [ws] closed before connect conn=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1008 reason=device identity required

Cause:

This error occurs when a client connects to the gateway without providing a device identity. Common causes include:

  • You are accessing the URL in a browser for the first time, and device pairing is not yet complete.

  • The browser cache was cleared, causing the device key to be lost.

  • After reinstalling or upgrading OpenClaw, the key file in the ~/.openclaw/identity/ directory is missing.

Solution:

Run the following commands in the terminal to approve the device connection and generate a new browser access URL:

bash
openclaw devices approve --latest
openclaw dashboard --no-open

If the issue persists, clear pending device records and try again:

bash
openclaw devices clear --pending --yes
openclaw dashboard --no-open

Run openclaw devices list to confirm the device appears in the Paired list.

Previous: RerankNext: Hermes Agent

Is this page helpful?

Install OpenClaw

Configure access credentials

Token Plan Team Edition

Coding Plan

Pay-as-you-go

Connect to message channels

WhatsApp

Telegram

Discord

Common commands

Use cases

Use case 1: Automate X (Twitter)

Use case 2: Analyze and download YouTube videos

Use case 3: Schedule daily AI news delivery

Use case 4: Stock market analysis

Learn more

Skill

FAQ

Contact Us

Sales Support

Live-chat with our sales team or get in touch with a business development professional in your region.

Contact Sales

Technical Support

Open a ticket and get quick help from our technical team.

Open a Ticket >

Connect & Report Abuse

We look forward to your suggestion.

Post a Suggestion > Report Abuse >

\ \ Hi, I'm Alibaba Cloud AI Assistant!\ \ I can help with questions and solutions.

Why Alibaba Cloud

About Alibaba Cloud

Asia Accelerator

Our Global Network

Global Offices

Trust Center

Case Studies

Analyst Reports

Products & Pricings

Pricing Calculator

ECS

SAS

Model Studio

Database

Security

SMS

Solutions

Financial Services

Retail Services

Media Services

Gaming Services

ISV Solutions

Engage

Developer Community

Partner Network

Startups

Marketplace

Join Alibaba Cloud

Resources & Support

Developer Learning Hub

Documentation Center

Training & Certification

Service Notices

Submit a Ticket

Security Report

Qwen Cloud

Careers About Us Privacy Policy Legal Integrity Compliance Reporting Channel Service Notices Links

© 2009-2026 Copyright by Alibaba Cloud All rights reserved

© 2009-2026 Copyright by Alibaba Cloud All rights reserved

Careers About Us Privacy Policy Legal Integrity Compliance Reporting Channel Service Notices Links