Логотип Huaweicloud Cli And Auth

Huaweicloud Cli And Auth

Організація
huaweicloud
huaweicloud-cli-and-auth

Safe Huawei Cloud KooCLI usage and authentication guidance. Use when working with hcloud, KooCLI, profiles, AK/SK, regions, projects, endpoints, CLI output, credential errors, or local Huawei Cloud account context.

Add to TypingMind

Огляд

Видавецьhuaweicloud
Репозиторійhuaweicloud-devkit
Назва навичкиhuaweicloud-cli-and-auth
Зірки
70
Форки
12
Файли в пакеті
1
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: huaweicloud. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Huaweicloud Cli And Auth у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-devkit.git /tmp/huaweicloud-devkit
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-devkit/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth .claude/skills/huaweicloud-cli-and-auth
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Huaweicloud Cli And Auth в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Huaweicloud Cli And Auth, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Huaweicloud Cli And Auth не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Huawei Cloud CLI And Auth

STOP - Do not answer from general knowledge. Follow the procedure below.

Use KooCLI hcloud for local inspection and reviewed operations. Never ask the user to paste AK/SK, SK, tokens, passwords, or credential files into chat.

Install KooCLI

Official guide: https://support.huaweicloud.com/qs-hcli/hcli_02_003.html.

Version pairing: this plugin is paired with KooCLI v7.3.12 (kooCliVersion in package.json). Prefer the pinned download below. The one-liner script hcloud_install.sh always installs the latest version and cannot be pinned — if you use it, check_cli/doctor will warn when the installed version does not match v7.3.12.

Windows

  1. Download and unzip: https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.3.12/huaweicloud-cli-windows-amd64.zip
  2. Extract to %USERPROFILE%\hcloud, add to user PATH
  3. Verify: hcloud version

Linux (amd64 / arm64)

Fixed download (recommended):

bash
# amd64
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.3.12/huaweicloud-cli-linux-amd64.tar.gz"
tar -zxvf huaweicloud-cli-linux-amd64.tar.gz
# arm64
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.3.12/huaweicloud-cli-linux-arm64.tar.gz"
tar -zxvf huaweicloud-cli-linux-arm64.tar.gz

Move to PATH: mv $(pwd)/hcloud ~/.local/bin/ Verify: hcloud version

One-liner (installs latest, may drift from v7.2.12):

bash
curl -sSL https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh -o ./hcloud_install.sh && bash ./hcloud_install.sh -y

macOS (amd64 / arm64)

Fixed download (recommended):

bash
# amd64
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.3.12/huaweicloud-cli-mac-amd64.tar.gz"
tar -zxvf huaweicloud-cli-mac-amd64.tar.gz
# arm64 (Apple Silicon)
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.3.12/huaweicloud-cli-mac-arm64.tar.gz"
tar -zxvf huaweicloud-cli-mac-arm64.tar.gz

Move to PATH: mv $(pwd)/hcloud /usr/local/bin/ Verify: hcloud version

One-liner (installs latest, may drift from v7.2.12):

bash
curl -sSL https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh -o ./hcloud_install.sh && bash ./hcloud_install.sh -y

No restart needed after install: DevKit locates hcloud dynamically on every call — it checks HCLOUD_BIN, then the fixed install dirs (~/.local/bin/hcloud on Linux, /usr/local/bin/hcloud on macOS, ~/hcloud/hcloud.exe on Windows), then PATH. Once install-hcloud or the background auto-install writes the binary to one of those dirs, the very next check_cli / run_* call uses it. Do not tell users to restart the agent.

Agent processes find executables through PATH; HCLOUD_BIN overrides it. DevKit re-locates hcloud from its fixed install dirs on every call, so a freshly installed binary (~/.local/bin on Linux, /usr/local/bin on macOS, ~/hcloud on Windows) or a re-set HCLOUD_BIN is picked up by the next check_cli / run_* call without restarting the agent. A custom PATH entry is only honored via HCLOUD_BIN or the PATH locator fallback, and shell PATH changes take effect only for processes started after the update.

Configure Credentials Outside Chat

NEVER let AK/SK enter shell history. This is the #1 credential leak vector.

  • Create AK/SK in the Huawei Cloud console under My Credentials -> Access Keys.
  • Configure credentials ONLY via npx huaweicloud-devkit auth init — the single entry point. It writes the unified ~/.config/huaweicloud/credentials.json and mirrors it to KooCLI (~/.hcloud/config.json) and OBS (~/.obsutilconfig), without AK/SK entering shell history.
  • Never configure KooCLI on its own: do not ask the user to run hcloud configure init or hcloud configure set --cli-access-key=... --cli-secret-key=... --cli-region=... (AK/SK would leak into shell history). If KooCLI lacks credentials, tell the user to run npx huaweicloud-devkit auth init.
  • If MCP is available, use huaweicloud_show_profile_redacted to check status without ever seeing credentials.
  • Never paste AK/SK, passwords, tokens, or profile files into the agent conversation.
  • KooCLI stores credentials in ~/.hcloud/config.json, NOT environment variables. HCLOUD_ACCESS_KEY / HCLOUD_SECRET_KEY / HCLOUD_REGION env vars are NOT read by KooCLI 7.x.

Safe Flow

  1. Check whether hcloud is installed.
  2. KooCLI first-run privacy agreement: On a fresh KooCLI install, hcloud blocks with 同意并继续使用(y)/不同意并退出(N) and fails with [USE_ERROR]您输入的是无效字符 in non-interactive mode. Detection: check command output for these strings. Ask the user: "KooCLI needs to accept its privacy agreement. May I accept it on your behalf?" If the user agrees, run huaweicloud_run_readonly_command with args=["version"] and stdin="y\n". This accepts the agreement once, after which hcloud works normally.
  3. Ask the user to configure credentials outside the agent conversation when setup is needed.
  4. Inspect profile and region only through redacted tooling.
  5. Always discover exact operation names and parameters with --help BEFORE constructing the command. Never guess from general knowledge — parameter names change across API versions. The discovery chain is:
    1. hcloud --help → available services
    2. hcloud <Service> --help → operations (use huaweicloud_list_operations or step 2/3 directly)
    3. hcloud <Service> <Operation> --help → exact parameter names, required flags, and value formats
    4. Execute only after the help text confirms the operation and its parameters
    • Service skills may skip steps 1-2 when they already provide the correct service and operation names, but step 3 (<Operation> --help) is never skippable before planning a write operation or a command with parameters.
    • Example: ECS instance listing is commonly ECS ListServersDetails; ECS creation is commonly ECS CreateServers; image lookup may be under IMS GlanceShowImage.
  6. Use --cli-output=json for machine-readable responses when supported.
  7. For resource operations, include --cli-region, --cli-profile, and service-specific project information when required.
  8. Classify every command before running it:
    • Read-only: List*, Show*, Get*, Describe*.
    • Write: Create*, Delete*, Update*, Resize*, Start*, Stop*, Authorize*, and similar.
    • Secret: any operation returning secret string, binary secret, token, or password.
  9. For write operations, show the exact command and ask for explicit approval.

KooCLI Syntax Notes

  • Prefer --param=value; KooCLI 7.x may reject some space-separated parameter forms.
  • Array-style parameters use 1-based indexes, for example --server.nics.1.subnet_id=<subnet-id>, not .0.
  • For ECS creation, first inspect help: hcloud ECS CreateServers --help.
  • Minimal create shape to refine after help lookup:
bash
hcloud ECS CreateServers --cli-region=<region> --server.name=<name> --server.flavorRef=<flavor-id> --server.imageRef=<image-id> --server.nics.1.subnet_id=<subnet-id> --server.root_volume.volumetype=<type>

If a command needs an adminPass or other password field, do not leave plaintext secrets in shell history. Prefer local-only input or runtime injection.

Language / Service Catalog Trap

  • KooCLI loads the service list from a per-language catalog: ~/.hcloud/metaRepo/services_{cn,en}.json. The English catalog is incomplete (149 services vs 220 in Chinese; ~70 services — BSS, DevStar, CloudTable, FRS, ASM, ... — are missing). A command against a service that only exists in the Chinese catalog fails with a misleading Unsupported service: X.
  • KooCLI has no per-command --cli-lang flag — appending --cli-lang=cn is rejected as 不正确的参数:cli-lang. The language switch is global only: hcloud configure set --cli-lang=cn (changes ALL CLI output language).
  • huaweicloud-devkit detects Unsupported service: X and, when the cause is the en-catalog gap, returns an actionable hint to run hcloud configure set --cli-lang=cn (or to check the service name / refresh metadata for genuinely unknown services). It never mutates your command.
  • Distinguish from region metadata limits (e.g., BSS only supports cn-north-1): a region error is NOT solved by switching language.

Output Formatting

bash
# JSON format (recommended for Agent)
hcloud <Service> <Op> --cli-output=json

# Table format (manual viewing)
hcloud <Service> <Op> --cli-output=table

# JMESPath filtering (extract specific fields)
hcloud <Service> <ListOp> --cli-output=json --cli-query "items[?status=='ACTIVE'].{ID:id,Name:name}"

# Debug mode (when commands fail)
hcloud <Service> <Op> --cli-debug=true

Credential Resolution Priority

Credentials are resolved in this order (highest priority first):

PrioritySourceWhen activePersistence
1Runtime (session) credentialshuaweicloud_auth_init / huaweicloud_auth_switch action=temporary set themMemory (MCP restart clears)
2S1 global file with configuredBySession: trueset by huaweicloud_auth_switch action=persist (session-configured account wins over env)Permanent (S1)
3Environment variablesHW_ACCESS_KEY / HW_SECRET_KEY (platform/devspace-injected default account)MCP process lifetime
4CodeArts / CodeArts Work.codeartsdoer/mcp/mcp_settings.json / .codeartswork/mcp/mcp_settings.jsonFile
5S1 global file (no session flag)auth init permanent credentialsPermanent (S1)
6KooCLI profile~/.hcloud/config.json (KooCLI commands only)Permanent

When switching accounts within the same Agent session, use huaweicloud_auth_init to set runtime credentials (overrides all sources for the current MCP process), or huaweicloud_auth_switch action=persist, which writes S1 with configuredBySession: true so the session-configured account outranks HW_ACCESS_KEY / HW_SECRET_KEY. Note: running auth init clears the configuredBySession flag.

Global Services & domain-id

KooCLI resolves the account/domain-id automatically from a valid AK/SK, so global services (BSS, IAM, CDN) normally do not need an explicit --cli-domain-id.

If a command fails with [USE_ERROR]...缺少必填参数 cli-domain-id, the real cause is almost always invalid or expired credentials (APIGW.0301 Incorrect IAM authentication information): KooCLI's internal account-id lookup failed and it misreports that as a missing domain-id. Fix the credentials instead (npx huaweicloud-devkit auth init).

Some IAM operations take a genuine business parameter for the account-id (e.g. --domain_id, --agency.domain_id, --agency.trust_domain_id, --agency_urn). Discover those with --help; get the account-id value with:

bash
hcloud STS GetCallerIdentity --cli-region=<region>   # account_id = the account/domain-id
  • <region> is the profile's current region. STS is not deployed in cn-north-1 — use another region if needed.
  • Temporary credentials (AK/SK + security token) work too: add --cli-security-token=<token>.

Preferred Toolkit Tools

  • huaweicloud_auth_init
  • huaweicloud_auth_status
  • huaweicloud_check_cli
  • huaweicloud_show_profile_redacted
  • huaweicloud_plan_cli_command
  • huaweicloud_run_readonly_command
  • huaweicloud_list_operations
  • huaweicloud_run_approved_command

Do Not Run Directly

  • Raw hcloud configure show/list/get/export in agent tools.
  • Commands reading .hcloud or .huaweicloud files.
  • Commands dumping cloud credential environment variables.
  • Secret value reads such as CSMS ShowSecretVersion.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Huaweicloud Cli And Auth?

Safe Huawei Cloud KooCLI usage and authentication guidance. Use when working with hcloud, KooCLI, profiles, AK/SK, regions, projects, endpoints, CLI output, credential errors, or local Huawei Cloud account context.

Навіщо використовувати Huaweicloud Cli And Auth у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Huaweicloud Cli And Auth — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Huaweicloud Cli And Auth у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Huaweicloud Cli And Auth?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Huaweicloud Cli And Auth?

Зі скількома забажаєте. У TypingMind ви можете використовувати Huaweicloud Cli And Auth із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Huaweicloud Cli And Auth?

Так. На GitHub цю навичку публікує huaweicloud за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Discord E2e

openclaw
ОрганізаціяПопулярне

Тестуйте Discord за допомогою QA-ботів, орендованих через Convex: перевіряйте облікові дані без Gateway, тестуйте власні повідомлення або підтверджуйте відповіді OpenClaw, роботу з файлами, гілками обговорень, реакціями, потоковою передачею та індикатором набору тексту. Розрізняйте дані, отримані через API та…

82.2K
391K
Файлів: 4
Відкрити
Логотип openclaw

Openclaw Ghsa Maintainer

openclaw
ОрганізаціяПопулярне

Перевіряйте, виправляйте, підтверджуйте, публікуйте або перевіряйте статус рекомендацій безпеки OpenClaw GHSA та приватних форків.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Openclaw Secret Scanning Maintainer

openclaw
ОрганізаціяПопулярне

Виконуйте первинне опрацювання, редагування конфіденційних даних, очищення та усунення сповіщень GitHub Secret Scanning в issues або PR OpenClaw.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Release Openclaw Announcement

openclaw
ОрганізаціяПопулярне

Готуйте або публікуйте в Discord анонси бета-, стабільних і розширено стабільних релізів OpenClaw на основі ченджлогу, тегів, даних реєстру та результатів перевірок. Використовуйте цю навичку, щоб анонсувати реліз чи кандидата на реліз або…

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇