Background
OpenClaw is an open-source AI agent framework that connects to communication channels like DingTalk and large language models (LLMs) like Model Studio's Qwen through plugins.
Claude Code is an AI-powered coding assistant from Anthropic that lets you interact with your code using natural language in the terminal.
-
Installing and configuring these tools on an Agentic OS ECS instance involves several challenges:
OpenClaw has an undocumented configuration file structure, DingTalk is not an officially supported channel, and the gateway requires a strict initialization sequence.
The official Claude Code tutorial targets macOS and Ubuntu, which can cause compatibility issues and npm permission errors on Alinux.
Neither tool documents how to configure the DashScope API key.
With a Skill, the agent completes the end-to-end deployment in a single prompt, reducing a process that would otherwise be difficult to automate or require trial and error to just a few minutes.
Use case 1: One-sentence deployment of OpenClaw
Prerequisites
Before you begin, ensure that you have:
An Agentic OS ECS instance with at least 4 GB of RAM and internet access
Created an internal enterprise application on the DingTalk Developer Console and obtained the AppKey and AppSecret
Important: On the DingTalk Developer Console, enable the Bot Capability for your application and set the Message Reception Mode to Stream mode . You must also enable the following permissions:Card.Streaming.Write,Card.Instance.Write, andqyapi_robot_sendmsg.
A DashScope API key from the Model Studio console
(Optional) YOLO mode enabled to skip manual confirmation of shell commands (
/approval-mode yolo)
Procedure
Step 1: Run the deployment prompt
In the Agentic OS terminal, send the following prompt to the agent:
Install OpenClaw with AppKey <appkey>, AppSecret <appsecret>, and API key <dashscope apikey>
-
The agent automatically performs the following actions:
Detects and installs the Node.js runtime environment.
Installs OpenClaw and the DingTalk plugin via npm, automatically adding the npmmirror registry to accelerate downloads in the Chinese mainland.
Initializes the OpenClaw project structure and configuration file.
Configures the gateway mode (
gateway.mode).Runs
openclaw doctor --fixto generate an authentication token.
Important: The gateway initialization order is critical. Thegateway.modeconfiguration must be written before you runopenclaw doctor --fix. The Skill has this sequence built-in, so no manual intervention is required.
Step 2: Validate the deployment
After deployment completes, find the bot in DingTalk and send it a test message.
A correct reply from the bot confirms a successful end-to-end deployment.
Troubleshooting
If the gateway fails to start during deployment, check that the initialization sequence is correct.
If the DingTalk bot is unresponsive, verify that all required application permissions are enabled, including
Card.Instance.WriteandCard.Streaming.Write.
Use case 2: One-sentence deployment of Claude Code
Prerequisites
Before you begin, ensure that you have:
An Agentic OS ECS instance with at least 4 GB of RAM and internet access
Important: Claude Code has a high memory footprint at runtime. Ensure your ECS instance has at least 4 GB of RAM.
A DashScope API key from the Model Studio console (required for third-party API configuration)
(Optional) YOLO mode enabled to skip manual confirmation of shell commands (
/approval-mode yolo)
Procedure
Step 1: Run the installation prompt
In the Agentic OS terminal, send the following prompt to the agent:
Install Claude Code and configure the DashScope API key: <dashscope apikey>
-
The agent automatically detects your system environment and selects the best installation method in the following order:
Native installation: Attempts to install using the system's native package manager first.
npm installation: If native installation is not available, installs globally via npm and automatically fixes any
EACCESpermission issues.nvm installation: If npm installation fails, uses nvm to install an isolated Node.js environment before installing.
Note: The installation process automatically falls back through these methods without manual intervention. The Skill handles compatibility issues on Alinux 4, including EACCES permission fixes.
Step 2: Validate the installation
The agent runs the following command to verify the installation:
claude --version

Step 3: Configure the DashScope API key
The agent automatically configures the DashScope API key for Claude Code.
Start Claude Code and verify that you can interact with the model.

Troubleshooting
Obtain your DashScope API key from the Alibaba Cloud Model Studio console and activate the necessary services before starting.
If all installation methods fail, check your network connectivity and Node.js version. Use version 18 or later.