Open-source AI assistant platform
OpenClaw is an open-source personal AI assistant platform that supports AI interaction through multiple messaging channels. Connect it to Qwen Cloud via Token Plan (Team Edition), Coding Plan, or pay-as-you-go billing.
OpenClaw requires Node.js 22 or later. Run the following command to check your Node.js version:
If Node.js is not installed or the version is too low, visit the Node.js website to download and install it.
After first-time installation, OpenClaw automatically starts the setup wizard. You can also manually run the
OpenClaw provides two configuration methods: Web console or config file.
The browser will automatically open the console page (usually
Replace
Replace
Replace
Run the following command to enable the local gateway:
Type a message to confirm the model responds normally. If it does, the configuration is complete.
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
Run
Run
Do not overwrite the entire
Error message:
The client did not provide device identity information when connecting to the gateway. This usually happens on first browser visit, after clearing browser cache, or when key files in
If the issue persists, clear pending device records and try again:
Install OpenClaw
OpenClaw requires Node.js 22 or later. Run the following command to check your Node.js version:
- macOS / Linux
- Windows
Use the official install script (recommended):Or install globally via npm:
openclaw onboard command to start the wizard.
| Setting | Recommended |
|---|---|
| I understand this is powerful and inherently risky. Continue? | Select Yes |
| Onboarding mode | Select QuickStart |
| Model/auth provider | Select Skip for now (configure Qwen Cloud models later) |
| Filter models by provider | Select All providers |
| Default model | Select Keep current |
| Select channel (QuickStart) | Select Skip for now (configure channels later) |
| Configure skills now? (recommended) | Select No |
| Enable hooks? | Press Space to select options, then press Enter to proceed |
| How do you want to hatch your bot? | Select Do this later |
Configure credentials
OpenClaw provides two configuration methods: Web console or config file.
- Web console
- Config file
- Run the following command in the terminal:
http://127.0.0.1:18789).- In the left menu, navigate to Configure > RAW (or Config > RAW).
-
Replace the
"agents": {...}section with the configuration for your chosen plan, and replaceYOUR_API_KEYwith your API Key.
To keep existing settings, do not overwrite the entire file. Merge the
models and agents sections carefully.Token Plan (Team Edition)
Replace YOUR_API_KEY with the Token Plan (Team Edition) dedicated API Key. For available models, see Token Plan (Team Edition) supported models.
| Parameter | Value |
|---|---|
| API Key | Token Plan (Team Edition) dedicated API Key |
| Base URL | https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1 |
| Available models | Token Plan (Team Edition) supported models |
To add more models, add model definitions in
providers.bailian-token-plan.models, and add agents.defaults.models entries in "bailian-token-plan/model-ID": {}.Coding Plan
Replace YOUR_API_KEY with the Coding Plan dedicated API Key. For available models, see Coding Plan supported models.
| Parameter | Value |
|---|---|
| API Key | Coding Plan dedicated API Key |
| Base URL | https://coding-intl.dashscope.aliyuncs.com/compatible-mode/v1 |
| Available models | Coding Plan supported models |
Pay-as-you-go
Replace YOUR_API_KEY with your Qwen Cloud API Key. For available models, see supported models.
| Parameter | Value |
|---|---|
| API Key | Your Qwen Cloud API Key |
| Base URL | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| Available models | Supported models |
Verify configuration
Enable the local gateway
Run the following command to enable the local gateway:
Start and test
Common commands
| Command | Description | Example |
|---|---|---|
/help | Display available commands | /help |
/status | View current model, session, and gateway status | /status |
/model <model_name> | Switch the model for the current session | /model qwen3.6-plus |
/new | Start a new session | /new |
/compact | Compress conversation history to free up context window | /compact |
/think <level> | Set thinking (reasoning) depth: off, low, medium, high | /think high |
/skills | Display all available Skills | /skills |
FAQ
Error codes
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
- Pay-as-you-go: Error codes and troubleshooting
- Coding Plan: Coding Plan FAQ
- Token Plan (Team Edition): Token Plan (Team Edition) FAQ
"Gateway start blocked" error
Run openclaw config set gateway.mode local to enable the local gateway, or pass the --allow-unconfigured flag: openclaw gateway --allow-unconfigured.
How to view configured models
Run openclaw tui to open the terminal UI, then type /model to view the model list. Press Enter to select a model, or press Esc to exit.
Safely adding new plan models without losing existing configurations
Do not overwrite the entire ~/.openclaw/openclaw.json file. Make partial modifications instead — only edit the fields that need to change and keep existing configuration intact. After saving, restart the gateway with openclaw gateway restart.
"Device identity required" error
Error message:
~/.openclaw/identity/ are missing.
Solution: Run the following commands to approve the device and regenerate the browser access URL: