Deploy OpenClaw using SAE (public preview)

Updated at:

OpenClaw is a personal AI assistant that can autonomously execute tasks such as managing emails, calendars, and writing code. You can interact with it through chat applications.

Important

Scope of Responsibility: Unless otherwise specified, applications deployed from the App Center are consistent with their open-source community versions. You are responsible for any stability risks and security vulnerabilities in the open-source software. The SAE service guarantee covers only the stability of the underlying runtime and does not cover the quality, security, or maintenance of the open-source software itself. We recommend that you conduct a thorough technical review and security audit before deploying to a production environment.

Advantages

Deploying OpenClaw using SAE provides the following advantages:

  1. Full functionality: SAE provides a complete Docker runtime identical to a local environment, allowing OpenClaw to dynamically create a code sandbox and ensuring its core execution capabilities are unrestricted.

  2. Auto scaling: SAE supports scaling in and out within seconds. You can manually scale down to zero instances and restart them within seconds. This model perfectly matches OpenClaw's bursty workloads, enabling a pay-as-you-go approach that minimizes resource waste.

  3. Fully managed, maintenance-free, and highly available: With built-in capabilities such as cross-availability zone disaster recovery, health checks, and self-healing, SAE provides production-level stability without requiring you to manage any infrastructure.

Deploy and configure OpenClaw

Prerequisites

  • You have activated Serverless App Engine and granted the necessary permissions. For details, see Get Started.

  • (Optional) If you choose to access OpenClaw via the Control UI, you must first upload an SSL certificate (a locally self-signed certificate is sufficient) in the SLB Console/Certificate Management.

  • (Optional) If you choose to access OpenClaw via a DingTalk group or direct message, create an internal enterprise app in the DingTalk Developer Console, add the "bot" capability, publish the app, and record its Client ID and Client Secret.

  • (Optional) If you choose to access OpenClaw via WeCom, download the WeCom client from the WeCom Admin Console. Then, create a smart bot. Make sure to select Create using API mode and set the Connection method to Use persistent connection. Obtain the Bot ID and Secret. For details, see Connect OpenClaw to a WeCom smart bot.

  • You have obtained an Alibaba Cloud Model Studio API key for configuring the model provider. For instructions, see the Model Studio console.

Step 1: Deploy from App Center

  1. Go to the SAE App Center, select the OpenClaw — Serverless Deployment template, and click Deploy.

  2. In the Access Method Configuration section, select one of the following options:

    • Enable SLB Access to the Control UI: If you select this option, choose an uploaded SSL certificate from the SLB HTTPS Certificate ID drop-down list.

    • Enable DingTalk App to Connect to OpenClaw: If you select this option, enter the Client ID and Client Secret of your DingTalk app in the form.

    • Enable WeCom App to Connect to OpenClaw: If you select this option, enter the WeCom Bot ID and WeCom Bot Secret of your bot in the form.

  3. In the OpenClaw Configuration section, enter the API key you obtained from the Model Studio console.

  4. In the Basic Settings section, configure the following parameters:

    • Select an existing VPC or create a new one.

    • Create a NAT gateway: If your VPC is not configured with a public NAT gateway, select this option to create one automatically. Otherwise, the application cannot access public resources like model APIs or web pages.

    • Elastic public bandwidth: Select the desired bandwidth. 10 Mbps is typically sufficient.

    • Availability Zones and vSwitches: Within the VPC, select two availability zones and create a new vSwitch in each, or select existing vSwitches.

  5. After confirming your settings, click Next: Confirm Order.

  6. Click Create Now and wait for the deployment to complete, which typically takes 2 to 3 minutes.

Step 2: Access OpenClaw

After the deployment is complete, go to the Deployed Scenarios tab. Find your OpenClaw instance and click its scenario ID. Then, click the OpenClaw Service Address to access the control interface and start a conversation. No extra configuration is required.

Important

If you selected the DingTalk group chat access method during deployment, you can start a conversation after deployment by @mentioning the bot in a DingTalk group or by sending it a direct message.

Delete OpenClaw

If you no longer need OpenClaw, you can quickly delete the application and release its resources from the App Center to avoid further charges.

Important

Deleting OpenClaw will permanently erase all configurations. Proceed with caution.

  1. In the left-side navigation pane, select Application Center.

  2. On the Deployed Scenarios tab, find your deployed OpenClaw instance, click Delete on the right, and follow the on-screen instructions.