huawei-cloud-maas-setup

Automates Huawei Cloud MaaS service purchase, API key creation, and model configuration via browser scripts.

7.1k|1.1k|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill huawei-cloud-maas-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huawei-cloud-maas-setup
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/skills/huawei-cloud-maas-setup
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill huawei-cloud-maas-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, pyyaml, and includes scripts (resource) components.

What problem does it solve?

Setting up Huawei Cloud MaaS (ModelArts as a Service) requires navigating multiple console pages, completing authorization, creating API keys, and enabling models manually. This Skill automates the repetitive browser steps while keeping the user in control of sensitive actions like login, payment, and identity verification, reducing the whole setup to about 3-5 minutes.

Core Features & Use Cases

  • Browser Automation via CDP: Scripts launch a Chromium-based browser (Edge/Chrome/Chromium) and drive the Huawei Cloud console through the Chrome DevTools Protocol, handling navigation, popup dismissal, and form filling.
  • Automated Credential Provisioning: Automatically agrees to the MaaS service statement, completes delegated authorization, creates an API key, and extracts the full key value, with detection for insufficient balance and missing real-name authentication.
  • Batch Model Enablement and Config Writing: Opens preset text-generation models defined in models.json in one batch dialog, then writes the API base and key to .env and appends model entries to config.yaml without changing the user's default model.
  • Use Case: A first-time jiuwenswarm user wants to use Huawei Cloud models. The Skill opens the billing center, waits for the user to log in and top up, then automatically authorizes MaaS, creates an API key, enables GLM-5.2, Kimi-K2.6, and DeepSeek-V4-Flash, and writes the configuration.

Quick Start

Ask the assistant to guide you through the Huawei Cloud MaaS one-click setup to purchase the service, create an API key, and configure models.

Frequently Asked Questions about huawei-cloud-maas-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Huawei Cloud MaaS API access automatically?

Run the guided setup flow: scripts launch a browser over CDP, navigate the Huawei Cloud console, complete MaaS delegated authorization, create an API key, and enable preset models. You only handle login, payment, and real-name verification manually.

How do I create a Huawei Cloud MaaS API key with a script?

The auto_create_apikey.py script navigates to the API key management page, fills the tag and description with a unique timestamp suffix, selects full permission scope, submits the form, and extracts the complete key from the result dialog.

Which browsers are supported for the Huawei Cloud MaaS setup automation?

Chromium-based browsers are supported: Edge, Chrome, or Chromium. On Windows Edge is preferred since it ships with the OS; on macOS Chrome is preferred; on Linux Chrome or Chromium is used. The browser is launched with a dedicated user-data directory and CDP port.

Why does API key creation fail with insufficient balance or real-name errors?

Huawei Cloud requires account balance and real-name authentication before creating API keys. The script detects these states and returns specific failure stages, after which the flow guides you to top up or complete verification, then retries key creation.

Does the setup overwrite my existing model configuration?

No. Credentials are written to .env with a HUAWEI_MAAS_ prefix, and model entries are appended to config.yaml by alias. Existing entries keep their is_default values, so your current default model remains unchanged.

How do I change which Huawei Cloud models get enabled?

Edit the models.json file in the skill directory. Each entry defines display_name for console enablement, api_name for config.yaml, alias, and description. Both the enablement script and config writer read from this single file.