huaweicloud/huaweicloud-skills

huawei-cloud-flexus-l-server-openclaw-deployment

Create Huawei Cloud Flexus L Instance (Lightweight Server), deploy OpenClaw application platform on it, and support installation and configuration of models and channels for deployed OpenClaw instances.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

⚠️ Security Execution Rules (Highest Priority):

  1. All scripts MUST be executed via skill action=exec, NEVER run directly in shell
  2. NEVER print script contents or commands containing AK/SK/Token in conversation
  3. NEVER create temporary script files, prefer inline execution (python -c)
  4. On execution failure, only return error info, do NOT rewrite scripts or print full commands
  5. AK/SK/Token MUST be passed via environment variables, NEVER appear in conversation
  6. ABSOLUTELY NEVER expose, log, or print AK/SK/Token values in any form - this is a critical security requirement
  7. When using skill action=exec, credentials are automatically inherited from environment variables (HWACCESSKEY, HWSECRETKEY, HWSECURITYTOKEN), no need to pass them as command line arguments

huawei-cloud-flexus-l-server-openclaw-deployment

Overview

This skill supports one-click deployment of the OpenClaw AI Agent platform to Huawei Cloud Flexus L Instance. It provides a complete OpenClaw instance management workflow, from initial deployment to post-deployment configuration, including:

  • Automated instance creation
  • Model installation via COC (Cloud Operations Center)
  • Channel installation via COC (WeCom, Feishu, DingTalk, QQ)
  • Automatic prerequisite checks before installation (Gateway and UniAgent status)

Use Cases

ScenarioDescription
Enterprise AI Assistant SetupEnterprises need to quickly deploy an AI Agent platform for internal Q&A, customer service, etc.
Multi-Channel Bot IntegrationNeed to integrate multiple messaging channels (WeCom, Feishu, DingTalk) into a unified AI assistant
Quick LLM IntegrationExisting OpenClaw instance needs to quickly switch or add different LLMs (DeepSeek, Qwen, etc.)
Automated Operations DeploymentNeed to automatically batch deploy OpenClaw instances to multiple regions via scripts

Typical Use Cases

User may say:

  1. "I want to install OpenClaw on a Flexus L instance"
  2. "I want to configure DeepSeek model on my deployed OpenClaw"
  3. "Help me deploy OpenClaw with Feishu channel configured"

Prerequisites

Account Requirements

  • Huawei Cloud AK/SK credentials with the following permissions:
  • Create Flexus L Instances
  • Access COC (Cloud Operations Center) services

Credential Acquisition Methods:

This skill supports obtaining Huawei Cloud credentials through the following methods (in order of priority from high to low):

Credential Types:

  • Long-term AK/SK: Permanent credentials, no security_token required
  • Temporary AK/SK: Temporary credentials with limited validity period, security_token required
  1. Environment Variables (Default) (highest priority)
  • HW_ACCESS_KEY: Huawei Cloud Access Key AK
  • HW_SECRET_KEY: Huawei Cloud Access Key SK
  • HW_SECURITY_TOKEN: Security token (optional, only required for temporary credentials)
  1. User-specified Configuration File or Other Environment Variables (used when default environment variables are not available)
  • Configuration file path or other environment variables specified by user during interaction
  1. Interactive Input (when neither of the above methods is provided)
  • The program will prompt the user to enter AK/SK and other credential information

Important Notes:

  • Long-term AK/SK: Permanent credentials that never expire, no security_token needed
  • Temporary AK/SK: Obtained through IAM interface with limited validity period, must provide security_token

Architecture Diagram

This skill is built on multiple Huawei Cloud services, involving the following cloud services and components:

User/Agent      ──────▶│   Flexus L Instance   │──────▶│   OpenClaw App    │──────▶│ Model Config     │ ──────▶│  Channel Config     │ 
(Skill caller)           (Target Host)               (AI Agent Platform)          (API_BASE/KEY)       (WeCom/Feishu/DingTalk/QQ)            

Component Description:

  • User/Agent: Skill caller that triggers OpenClaw deployment operations via natural language or API
  • Flexus L Instance: Huawei Cloud Elastic Cloud Server, serving as the target host for OpenClaw deployment
  • OpenClaw App: AI Agent collaboration platform running on the Flexus L instance
  • Model Config: Configuration for external LLM services (APIBASE, APIKEY, MODEL_IDS, PROVIDER)
  • Channel Config: Messaging channel configuration (WeCom, Feishu, DingTalk, QQ)

How to Use This Skill

Command Execution and Instructions

1. Deploy OpenClaw Instance (Create Huawei Cloud Flexus L Instance and deploy OpenClaw AI Agent platform) - Two Command Modes:

Command 1: Interactive Mode (The program will prompt for required parameters step by step)

bash
python scripts/caller.py deploy

Command 2: Non-Interactive Mode

bash
# Using long-term AK/SK (no security-token needed)
python scripts/caller.py deploy --name openclaw-{timestamp} --region cn-north-4 --ak <AK> --sk <SK> --non-interactive

# Using temporary AK/SK (security-token required)
python scripts/caller.py deploy --name openclaw-{timestamp} --region cn-north-4 --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Parameter Description:

ParameterDescriptionRequired (Non-interactive)Default (Interactive)Example
--nameOpenClaw instance nameNoopenclaw-{timestamp}--name openclaw-1780689482000
--regionTarget region ID where L instance (OpenClaw deployed server) is locatedNocn-north-4--region cn-north-4
--akHuawei Cloud Access Key AK (supports both long-term and temporary)YesPrompted--ak AXXX...
--skHuawei Cloud Access Key SK (supports both long-term and temporary)YesPrompted--sk SXXX...
--security-tokenSecurity token for temporary credentials (optional, only required for temporary AK/SK)NoPrompted--security-token XXXX...
--non-interactiveEnable non-interactive modeNofalse--non-interactive

Note: OpenClaw only supports deployment in the following regions before June 2026 (before deploying to other regions, you can remind users to check the official website for the latest supported regions): China North-Beijing-4 (cn-north-4), China East-Shanghai-1 (cn-east-3), China South-Guangzhou (cn-south-1), China Southwest-Guiyang-1 (cn-southwest-2)

Command Examples:

bash
# Example 1: Deploy with default configuration (interactive, will prompt for required parameters)
python scripts/caller.py deploy

# Example 2: Non-interactive mode deployment (suitable for automation scripts, creates directly without user confirmation)
python scripts/caller.py deploy --name openclaw-1780689482000 --region cn-north-4 --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Default Configuration for Huawei Cloud Flexus L Instance when Deploying OpenClaw Instance

Configuration ItemDefault ValueDescription
ImageOpenClaw 2026.1.30OpenClaw application image version
Plan Spechf.small.1.linux or ahf.small.1.linuxhf.small.1.linux for Beijing/Shanghai/Guangzhou, ahf.small.1.linux for Guiyang
Charging ModeMonthly subscriptionprePaid mode
EVS Disk50GBSystem disk size
CBR Backup50GBCloud backup capacity
HSS Host SecurityEnabledHost security service

Execution Result and Status Code Description:

  • On success, returns order ID and instance ID (resource ID, used for subsequent model and channel installation)
  • Instance creation takes approximately 2 minutes, progress can be viewed in Huawei Cloud console. During instance creation, the installation of models and channels will not be affected, and subsequent commands can be executed directly.

Status Code Description: Status codes "200", "201", "202" all indicate successful instance creation.


2. Configure (Install) Large Model Parameters on L Instance with OpenClaw Installed - Two Command Modes (Requires deploying OpenClaw instance first)

Command 1: Interactive Mode (The program will prompt for resource ID, region, model and other parameters step by step)

bash
python scripts/caller.py maas

Command 2: Non-Interactive Mode

bash
# Using long-term AK/SK (no security-token needed)
python scripts/caller.py maas --resource-id <Instance Resource ID> --region-id cn-north-4 --model-params '<Model configuration parameters>' --ak <AK> --sk <SK> --non-interactive

# Using temporary AK/SK (security-token required)
python scripts/caller.py maas --resource-id <Instance Resource ID> --region-id cn-north-4 --model-params '<Model configuration parameters>' --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Parameter Description:

ParameterDescriptionRequired (Non-interactive)Default (Interactive)Example
--resource-idL instance resource ID (instance ID returned after deploying OpenClaw instance)YesPrompted--resource-id 0e1234567890abcdef
--region-idRegion ID where L instance is located, consistent with the region selected when deploying the instanceYesPrompted--region-id cn-north-4
--model-paramsModel configuration parameters (JSON format), note: parameters must use valid JSON format, keys and values must be wrapped in double quotesYesPrompted--model-params '{"provider":"huawei","apikey":"yourmaasapikey","model_ids":["deepseek-v3.2"]}'
--akHuawei Cloud Access Key AK (supports both long-term and temporary)YesPrompted--ak AXXX...
--skHuawei Cloud Access Key SK (supports both long-term and temporary)YesPrompted--sk SXXX...
--security-tokenSecurity token for temporary credentials (optional, only required for temporary AK/SK)NoPrompted--security-token XXXX...
--timeoutScript execution timeout (seconds)No600--timeout 900
--non-interactiveEnable non-interactive modeNofalse--non-interactive

model-params Field Description:

FieldDescriptionRequired
providerModel provider name (e.g., "huawei") or API address (e.g., "https://api.openai.com/v1")Yes
api_keyModel API keyYes
model_idsArray of model IDs to install (non-empty), e.g., ["gpt-4", "gpt-3.5-turbo"]Yes

Command Examples:

bash
# Example 1: Install Huawei Cloud MaaS platform models with long-term AK/SK
python scripts/caller.py maas \
  --resource-id 0e1234567890abcdef \
  --region-id cn-north-4 \
  --model-params '{"provider":"huawei","api_key":"your_maas_api_key","model_ids":["deepseek-v3.2","qwen3-235b-a22b"]}' \
  --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

# Example 2: Install Huawei Cloud MaaS platform models with temporary AK/SK
python scripts/caller.py maas \
  --resource-id 0e1234567890abcdef \
  --region-id cn-north-4 \
  --model-params '{"provider":"huawei","api_key":"your_maas_api_key","model_ids":["deepseek-v3.2","qwen3-235b-a22b"]}' \
  --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

# Example 3: Install custom OpenAI compatible models with long-term AK/SK
python scripts/caller.py maas \
  --resource-id 0e1234567890abcdef \
  --region-id cn-north-4 \
  --model-params '{"provider":"https://api.openai.com/v1","api_key":"your_openai_key","model_ids":["gpt-4"]}' \
  --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Status Code Description: Status codes "200", "201", "202" all indicate successful model installation.

3. channel - Configure (Install) Channels on L Instance with OpenClaw Installed - Two Command Modes (Requires deploying OpenClaw instance first)

Command 1: Interactive Mode

bash
python scripts/caller.py channel

Command 2: Non-Interactive Mode

bash
# Using long-term AK/SK (no security-token needed)
python scripts/caller.py channel --resource-id <Instance Resource ID> --region-id cn-north-4 --channel-list '<JSON array>' --ak <AK> --sk <SK> --non-interactive

# Using temporary AK/SK (security-token required)
python scripts/caller.py channel --resource-id <Instance Resource ID> --region-id cn-north-4 --channel-list '<JSON array>' --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Parameter Description:

ParameterDescriptionRequired (Non-interactive)Default (Interactive)Example
--resource-idL instance resource ID (instance ID returned after deploying OpenClaw instance)YesPrompted--resource-id 0e1234567890abcdef
--region-idRegion ID where instance is located, consistent with the region selected when deploying the instanceYesPrompted--region-id cn-north-4
--channel-listChannel configuration (JSON array format)YesPrompted'[{"channel":"wecom","id":"xxx","secret":"xxx"},{"channel":"feishu","id":"yyy","secret":"yyy"}]'
--akHuawei Cloud Access Key AK (supports both long-term and temporary)YesPrompted--ak AXXX...
--skHuawei Cloud Access Key SK (supports both long-term and temporary)YesPrompted--sk SXXX...
--security-tokenSecurity token for temporary credentials (optional, only required for temporary AK/SK)NoPrompted--security-token XXXX...
--timeoutScript execution timeout (seconds)No600--timeout 900
--non-interactiveEnable non-interactive modeNofalse--non-interactive

channel JSON Object Field Description:

FieldDescriptionRequired
channelChannel type: wecom (WeCom), feishu (Feishu), dingtalk (DingTalk), qqbot (QQ)Yes
idBot ID/APP ID/Client IDYes
secretBot secret/APP secret/Client secretYes

Command Examples:

bash
# Example 1: Install multiple channels (WeCom + Feishu) using long-term AK/SK
python scripts/caller.py channel \
  --resource-id 0e1234567890abcdef \
  --region-id cn-north-4 \
  --channel-list '[{"channel":"wecom","id":"xxx","secret":"xxx"},{"channel":"feishu","id":"yyy","secret":"yyy"}]' \
  --ak <AK> --sk <SK> --non-interactive

# Example 2: Install multiple channels (WeCom + Feishu) using temporary AK/SK
python scripts/caller.py channel \
  --resource-id 0e1234567890abcdef \
  --region-id cn-north-4 \
  --channel-list '[{"channel":"wecom","id":"xxx","secret":"xxx"},{"channel":"feishu","id":"yyy","secret":"yyy"}]' \
  --ak <Temporary AK> --sk <Temporary SK> --security-token <Security Token> --non-interactive

Status Code Description: Status codes "200", "201", "202" all indicate successful channel installation.

Web UI Access

Web UI access needs to be manually enabled in Huawei Cloud console, operation steps:

  1. Log in to Huawei Cloud Flexus Application Server L Instance Console
  • 🔗 Console URL: https://console.huaweicloud.com/smb/?/resource/list
  1. Find your OpenClaw instance in the instance list
  2. Click the instance name to enter the details page
  3. In the left menu of the details page, find and click "Application Details" option, then enter the "Basic Configuration" tab
  4. In the "Basic Configuration" tab, find the "Access OpenClaw Web Interface" option at the top left, click the "Enable" button. You will then get the URL address to access the OpenClaw Web interface.

Code Structure, File Responsibilities and Key Functions

This skill uses a modular architecture for easier maintenance:

scripts/
├── caller.py          # Main entry - command line argument parsing, parameter parsing, command routing
├── lib.py             # Core library - L instance creation, COC script management
├── utils.py           # Utility functions - input prompts, credential configuration, region information
├── deploy.py          # Deployment module - `do_deploy_openclaw()` function for OpenClaw instance creation
├── models.py          # Model module - remote COC large model installation (with prerequisite checks), related functions `do_install_maas()`, `_check_prerequisites()`
├── channels.py        # Channel module - remote COC channel installation (with prerequisite checks), related functions `do_install_channel()`, `_check_prerequisites()`
├── gateway.py         # Gateway module - gateway status query (only for prerequisite checks), related functions `do_check_gateway()`
└── uniagent.py        # UniAgent module - UniAgent status query (only for prerequisite checks), `do_check_uniagent()`

Parameter Confirmation

Deployment Parameters

  • --name: OpenClaw instance name, optional parameter, default is openclaw-{timestamp}
  • --region: Target region ID, optional parameter, default is cn-north-4
  • --ak: Huawei Cloud temporary Access Key AK, required parameter
  • --sk: Huawei Cloud temporary Access Key SK, required parameter
  • --security-token: Security token for temporary credentials (required), required parameter
  • --non-interactive: Enable non-interactive mode, optional parameter

Model Configuration Parameters

  • --resource-id: L instance resource ID (instance ID returned after deploying OpenClaw instance), required parameter
  • --region-id: Region ID where L instance is located, consistent with the region selected when deploying the instance, required parameter
  • --model-params: Model configuration parameters (JSON format), required parameter
  • provider: Model provider name (e.g., "huawei") or API address (e.g., "https://api.openai.com/v1")
  • api_key: Model API key
  • model_ids: Array of model IDs to install (non-empty)
  • --ak: Huawei Cloud temporary Access Key AK, required parameter
  • --sk: Huawei Cloud temporary Access Key SK, required parameter
  • --security-token: Security token for temporary credentials (required), required parameter
  • --timeout: Script execution timeout (seconds), optional parameter, default 600 seconds

Channel Configuration Parameters

  • --resource-id: L instance resource ID (instance ID returned after deploying OpenClaw instance), required parameter
  • --region-id: Region ID where L instance is located, consistent with the region selected when deploying the instance, required parameter
  • --channel-list: Channel configuration (JSON array format), optional parameter
  • channel: Channel type: wecom (WeCom), feishu (Feishu), dingtalk (DingTalk), qqbot (QQ), required
  • id: Bot ID, required
  • secret: Bot secret, required
  • --ak: Huawei Cloud temporary Access Key AK, required parameter
  • --sk: Huawei Cloud temporary Access Key SK, required parameter
  • --security-token: Security token for temporary credentials (required), required parameter
  • --timeout: Script execution timeout (seconds), optional parameter, default 600 seconds

Environment Variable Support

All parameters can also be provided through environment variables:

  • HW_ACCESS_KEY: Huawei Cloud AK (corresponds to --ak parameter)
  • HW_SECRET_KEY: Huawei Cloud SK (corresponds to --sk parameter)
  • HW_SECURITY_TOKEN: Temporary credential security token (corresponds to --security-token parameter)
  • HW_PROJECT_ID: Huawei Cloud Project ID (optional)

Common Issues Quick Solutions

IssueSolution
Instance creation failedCheck AK/SK permissions, ensure permission to create Flexus L instances
Model installation failedCheck if UniAgent status is ONLINE, if API Key is correct, if model-params parameter strictly uses JSON format
Channel installation failedCheck if bot parameters are correct, if bot is created on platform, if channel-list parameter strictly uses JSON array format
来自同一仓库

更多 Skills

全部 Skills
huaweicloud
社区

huawei-cloud-publish-work-to-gallery

Publish user's work to the Huawei Cloud University Operations Platform (华为云高校运营平台/作品陈列馆). Use this skill whenever the user wants to publish, submit, or upload a project/work to the gallery or a training camp (训练营) on the platform — including casual phrasings like "把作品发布上去", "投稿到陈列馆", "传作品到平台", "提交作品/项目", "报名发布作品", as well as formal ones like "publish to work gallery", "submit to training camp", "upload work to the platform". Do NOT use for general dev questions, git push to GitCode alone, or platform browsing without publishing intent.

安装量
5
GitHub Stars
50
最近更新
9月23日
huaweicloud
社区

huawei-cloud-eip-cost-optimizer

Huawei Cloud EIP (Elastic IP) cost optimization skill using hcloud CLI (KooCLI). 1. List and query EIPs across regions with detailed status 2. Identify idle/unbound EIPs and generate cost optimization reports 3. Set up idle EIP monitoring with webhook/email alerts 4. Generate HTML/JSON cost analysis reports 5. Maintain operation audit logs for compliance Read-only analysis only - NO bandwidth adjustment, tag management, or EIP release/deletion. Triggers include: "EIP cost optimization", "idle EIP analysis", "EIP audit", "cost report", "EIP status query", "EIP list", "EIP monitoring", "EIP alert", "cost analysis", "idle monitoring", "operation audit", "EIP 成本优化", "闲置 EIP 分析", "EIP 审计", "成本报告", "EIP 状态查询", "EIP 查询", "EIP 列表", "EIP 监控", "EIP 告警", "成本分析", "闲置监控", "操作审计"

安装量
1
GitHub Stars
50
最近更新
9月22日
huaweicloud
社区

huawei-cloud-flexus-l-deploy-jiuwenswarm

One-click deployment of JiuwenSwarm multi-Agent collaboration platform on Huawei Cloud Flexus L instances. Usage scenarios: When users need to quickly deploy JiuwenSwarm/JiuwenClaw on Huawei Cloud Flexus L instances, when they need to automatically create cloud instances and deploy AI Agent platforms, when they need to configure model APIs and message channels (Xiaoyi/Feishu/DingTalk). Automatically create instances, deploy applications via COC, configure models and message channels. Trigger keywords: JiuwenSwarm deployment, JiuwenClaw deployment, 九问Swarm部署, 九问Claw部署, 一键部署JiuwenSwarm, AI智能体平台部署, 部署九问Swarm, 部署九问Claw,云服务器部署AI平台.

安装量
1
GitHub Stars
50
最近更新
9月22日
huaweicloud
社区

huawei-cloud-flexus-l-server-flexusagent-deployment

Deploy AI Agent development platform (Dify) on Huawei Cloud Flexus L instance, providing deployment operations, password management, MaaS model configuration, and workflow import capabilities. Trigger keywords: deploy flexusagent/一键部署Flexus AI Agent开发平台、change password/修改开发平台管理员密码、change dify password/修改dify平台密码、add maas provider/添加MaaS模型供应商、configure maas model/配置MaaS模型、view workflow/查看AI Agent工作流、import workflow/导入AI Agent工作流

安装量
1
GitHub Stars
50
最近更新
9月22日