OpenClaw is an open-source, self-hostable AI agent execution framework that transforms a large language model from a conversational chatbot into a digital assistant that executes tasks. With natural language instructions, it handles file processing, code writing, and workflow automation, serving as your digital employee. Deploy a dedicated OpenClaw AI agent on PAI-EAS with a single click to use services from Alibaba Cloud's Model Studio and call your custom PAI-EAS model services. This creates an integrated solution with a dedicated large language model and a dedicated AI agent.
Deploy an EAS service
Log on to the PAI console. Select a region on the top of the page. Then, select the desired workspace and click Enter Elastic Algorithm Service (EAS).
On the Inference Service tab, click Deploy Service. In the Scenario-based Model Deployment section, click OpenClaw Deployment.
Configure the following key parameters:
Parameter
Description
Service Name
Enter a custom service name. Example: openclaw_demo
Image Configuration
Select the latest version.
Resource Configuration
Select a CPU instance type based on your resource requirements. The default is
ecs.c7a.large.Model Settings
Select an OSS path to store the OpenClaw configuration, such as
oss://examplebucket/openclaw/.VPC
Create and configure a VPC, vSwitch, and security group.
NoteOpenClaw requires internet access for web searches or browser usage. We recommend using a VPC with internet access configured.
Click Deploy. Wait until the service status is Running. This indicates the deployment is successful.
Configure public network access
An EAS service accesses the public network through an Internet NAT gateway. The configuration steps are as follows. For more information, see Internet NAT Gateway.
1. Create an Internet NAT gateway and attach an EIP
Go to the NAT Gateway – Internet NAT Gateway purchase page.
Billing Method: Pay-as-you-go.
Region: Select the region where the EAS service is located.
Network and Zone: Select the VPC configured for the EAS service. This setting cannot be changed after creation.
EIP: Select an unattached elastic IP address (EIP) or purchase a new one.
2. Configure an SNAT entry
Go to the Internet NAT Gateway page. Find the Internet NAT gateway that you created, and in the Actions column, click Configure SNAT . Click Create SNAT Entry.
SNAT Entry: Select VPC Granularity.
Select EIP: Select the configured EIP.
Launch the WebUI
In the Invoke/Log/Monitoring column, click the
button to go to the WebUI page.On the Inference Service tab of Elastic Algorithm Service (EAS), find your service. The Invoke/Log/Monitoring column contains three icons. Click the first icon to open the WebUI.
Configure the model. By default, the service is configured to use a Model Studio model in the China (Beijing) region. Obtain an API key for the same region, enter it into the WebUI, and save it. You can also configure an Alibaba Cloud Coding Plan or an EAS model service. For more information, see Configure multiple model providers.
Note: For security reasons, the API key is automatically hidden and displayed as
__OPENCLAW_REDACTED__after you click Save. In the left-side navigation pane, click Configuration, select the Settings tab, and switch to RAW mode. In the JSON5 configuration, locate theapiKeyfield underproviders>dashscopeand paste your API key into this field.On the WebUI page, you can start a conversation with your OpenClaw assistant and assign it tasks.
On the Chat page of the OPENCLAW GATEWAY DASHBOARD, the left panel provides navigation for features such as Chat, Control, Agents, and Settings, while the area on the right is for the chat session. At the top, you can switch sessions by using the session ID input box. At the bottom, there is a message input box with Send and New session buttons. The assistant supports tool calling. For example, it can use the Exec tool to query weather information and return a formatted summary in Chinese.
Configure channels
Integrate with DingTalk
Create a DingTalk bot and obtain its Client ID and Client Secret. For more information, see Create an OpenClaw Bot with One Click.
In the OpenClaw WebUI, go to Configuration > RAW. In the
channelsconfiguration block, finddingtalk-connector. Enter your Client ID and Client Secret, and then save the configuration.In the
dingtalk-connectorblock, after entering theclientIdandclientSecret, make sure thatenabledis set totrue. You can also adjust other fields as needed, such asseparateSessionByConversation,groupSessionScope, andsharedMemoryAcrossConversations.
Lark
Go to the Lark Open Platform. Click Create Enterprise Self-Built App, enter an application name and description, select an icon, and then click Create.
In the left-side navigation pane, click Credentials and Basic Information. Copy the App ID (for example,
cli_xxx) and App Secret.In the left-side navigation pane, click Permission Management. Click Batch Import/Export Permissions, paste the following JSON configuration, click Next, Confirm New Permissions, and then click Request Activation.
In the left-side navigation pane, click Add App Capabilities. On the Add by Capability tab, find the Bot card and click Configure.
Configure event subscription
In the OpenClaw WebUI, go to Configuration > RAW. In the JSON configuration for
channels, findfeishu, enter the App ID and App Secret you obtained, and then click Save. Note: For security, the secret is hidden and displayed as__OPENCLAW_REDACTED__after you save it.On the Lark Open Platform, go to the Events and Callbacks page. On the Event Configuration tab, set Subscription Method to Receive Events via Persistent Connection and click Save. Verify that the subscription method is Persistent Connection (recommended).
On the event configuration page, click Add Event, search for Accept Message, and then click Confirm Add.
On the Version Management and Publishing page, create a new version. Enter the Application Version Number and Update Description, click Save, and then submit the version for review and publish it.
In the version details, set both the Default capability on mobile and Default capability on desktop to Bot.
Add the bot to your favorites. In the Workbench, click Add to Favorites. Search for your bot and click Add. The bot appears in your favorites list. Double-click it to open the chat interface.
WeCom
Create a WeCom bot and obtain its Bot ID and Secret. For more information, see How OpenClaw integrates with WeCom intelligence.
In the OpenClaw WebUI, go to Configuration > RAW. In the
channelsconfiguration block, add the configuration for WeCom. Replace the placeholder values forbotIdandsecretwith your actual credentials."wecom": { "enabled": true, "botId": "${WECOM_BOT_ID}", // Replace with your actual content "secret": "${WECOM_SECRET}", // Replace with your actual content "allowFrom": [ "*" ], "dmPolicy": "open" }
Advanced configurations
Configure multiple model providers
In the WebUI, go to Configuration > RAW. In the JSON configuration, find the models block. You can configure multiple model providers under providers:
{
// Other configurations omitted ...
models: {
mode: 'merge',
providers: {
dashscope: {},
codingplan:{},
eas:{},
},
},
}Coding Plan
baseUrl:
https://coding.dashscope.aliyuncs.com/v1apiKey: Visit the Coding Plan page to subscribe and obtain your Coding Plan dedicated API key.
providers: {
codingplan : {
baseUrl: 'https://coding.dashscope.aliyuncs.com/v1',
apiKey: '__OPENCLAW_REDACTED__', // Replace with your actual content
api: 'openai-completions',
models: [
{
id: 'qwen3.5-plus',
name: 'qwen3.5-plus',
reasoning: false,
input: [
'text',
'image',
],
contextWindow: 1000000,
maxTokens: 65536,
},
{
id: 'qwen3-coder-next',
name: 'qwen3-coder-next',
reasoning: false,
input: [
'text',
],
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},EAS model service
Obtain the endpoint and token of the EAS service and configure the following parameters:
baseUrl: The invocation URL of the EAS service. Make sure to append
/v1.apiKey: The token for your EAS service.
providers: {
eas: {
baseUrl: 'http://xxxxxx.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/quickstart_deploy_xxxx/v1/',
apiKey: '__OPENCLAW_REDACTED__',
api: 'openai-completions',
models: [
{
id: 'Qwen3.5-27B',
name: 'Qwen3.5-27B',
api: 'openai-completions',
reasoning: false,
input: [
'text',
],
cost: {
input: 0,
output: 0,
cacheRead: 0,
cacheWrite: 0,
},
contextWindow: 1000000,
maxTokens: 65536,
},
],
},
},
DashScope
baseUrl: The default value is
https://dashscope.aliyuncs.com/compatible-mode/v1.apiKey: Enter the API key for the same region as the baseUrl.
models: {
mode: 'merge',
providers: {
dashscope: {
baseUrl: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
apiKey: '__OPENCLAW_REDACTED__', // Replace with your actual content
api: 'openai-completions',
models: [
{
id: 'qwen3.5-plus',
name: 'qwen3.5-plus',
reasoning: false,
input: [
'text',
'image',
],
contextWindow: 1000000,
maxTokens: 65536,
},
],
},
},
},Configure the default model
In the WebUI, go to Configuration > RAW. In the JSON configuration, find the agents block.
agents.defaults.model.primary: Sets the default model.Model name: The format is
provider/model, whereprovideris the provider name configured inprovidersandmodelis the model ID.
agents: {
defaults: {
model: {
primary: 'dashscope/qwen3.5-plus',
},
models: {
'dashscope/qwen3.5-plus': {},
'coding/qwen3-coder-next': {},
'eas/Qwen3.5-27B': {}
},
},
},