Skip to content
Cloud & Infrastructure
Skill

/alibabacloud-agent-toolkit-install

Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer token exchange), then install the toolkit via the current client's supported plugin mechanism. Use when: alibabacloud

BOOST
From plugin
alibabacloud-aiops-skills
256200 skills
Install
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-agent-toolkit-install --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/alibabacloud-agent-toolkit-install

Context preview

The summary Claude sees to decide when to auto-load this skill.

Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer token exchange), then install the toolkit via the current client's supported plugin mechanism. Use when: alibabacloud

SKILL.md

alibabacloud-agent-toolkit-install.SKILL.md
name: alibabacloud-agent-toolkit-install
description: >
  Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites
  (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer
  token exchange), then install the toolkit via the current client's supported
  plugin mechanism. Use when: alibabacloud agent toolkit install, environment check,
  prerequisite check, setup alibabacloud, plugin install, toolkit setup, mcp core
  setup, aliyun CLI setup.
license: Apache-2.0
metadata:
  domain: environment-setup
  owner: sdk-team

Alibaba Cloud Agent Toolkit — Installation

This skill sets up all prerequisites and installs the Alibaba Cloud Agent Toolkit. Execute each step **in order** — later steps depend on earlier ones.

Safety Policy

Each step is classified by risk level. Follow these rules strictly:

| Classification | Agent behavior | |----------------|----------------| | **Auto** (read-only check) | Execute without asking. | | **Confirm** (local install / CLI plugin install) | Show the user the exact command, explain what it does, and **wait for explicit approval** before executing. Never pipe-to-shell silently. | | **User-only** (interactive / browser-based) | Display instructions for the user to run in a **separate terminal**. Do not attempt to execute. | | **Confirm-cloud** (cloud-side write) | Explain the cloud resource that will be created, then **wait for explicit approval** before executing. |

---

Prerequisites

**Pre-check: Aliyun CLI >= 3.3.3 required** > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, run > `/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/setup.sh)"` to install or update.

Observability (MUST follow for every aliyun command)

Before any cloud API invocation, read `references/manifest.json` from this skill's root and use only its top-level non-empty string `version` as `{skill-version}`. If missing or invalid, STOP. NEVER invent, guess, or reuse a version from another skill.

Bind version and session to the current skill name and skill root. Before this skill's first cloud API invocation in a conversation, generate a fresh random 32-character lowercase hexadecimal session ID. Reuse that session ID for this skill throughout the conversation; each skill MUST use a distinct session ID. NEVER copy one from documentation, examples, another skill, or a previous conversation, and NEVER send the literal `{session-id}` placeholder. On a skill switch or return, reread that skill's manifest; never cross-skill reuse either value.

**Rule: Every `aliyun` CLI command that calls a cloud API MUST include the `--user-agent` flag.**

Markdown examples may omit the flag for brevity. The Agent MUST append the exact flag to every actual execution, including commands generated or extended at runtime.

Local utility commands (e.g. `configure`, `plugin`, `version`) do not support this flag and should be excluded.

--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-agent-toolkit-install/{session-id} skill-version/{skill-version}"

---

Checklist Overview

Run through these steps sequentially. **Skip any step whose check already passes.**

1. [Check / Install `uv`](#step-1-uv) — Confirm 2. [Check / Install Alibaba Cloud CLI (`aliyun`)](#step-2-aliyun-cli) — Confirm 3. [Check CLI authentication](#step-3-cli-authentication) — Auto (check) / User-only (login) 4. [Check / Install CLI plugins](#step-4-cli-plugins) — Confirm 5. [Check / Create MCP Server Core](#step-5-mcp-server-core) — Auto (check) / Confirm-cloud (create) 6. [Check Bearer token exchange](#step-6-bearer-token-exchange) — Auto (check) 7. [Install Alibaba Cloud Agent Toolkit](#step-7-install-toolkit) — Confirm

Step 1: `uv` {#step-1-uv}

`uv` is the Python package manager required to start MCP servers.

Check (Auto)

uv --version
  • **Pass** → output shows a version string (e.g. `uv 0.6.x`). Proceed to Step 2.
  • **Fail** → `command not found`. Install below.

Install (Confirm — ask user before executing)

Present the appropriate command to the user and **wait for approval**:

| Platform | Command | |-----------------|---------| | macOS / Linux | `curl -LsSf https://astral.sh/uv/install.sh \| sh` | | Windows (PowerShell) | `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 \| iex"` |

> **Security note:** These are pipe-to-shell commands. Show the command to the user > and let them decide whether to run it. Do not execute without explicit consent.

After installation, verify with `uv --version`. If the shell cannot find `uv`, instruct the user to restart their terminal or source their shell profile (`source ~/.bashrc`, `source ~/.zshrc`, etc.) so the PATH update takes effect.

---

Step 2: Alibaba Cloud CLI (`aliyun`) {#step-2-aliyun-cli}

Check (Auto)

aliyun version
  • **Pass** → outputs version 3.3.3 or later. Proceed to Step 3.
  • **Fail** → `command not found` or version below 3.3.3. Install or update below.

Install (Confirm — ask user before executing)

Present the appropriate command to the user and **wait for approval**:

macOS / Linux

/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"

> **Security note:** This is a pipe-to-shell command. Show the command and let the > user decide. Do not execute without explicit consent.

Windows (PowerShell)

The installer script is located at [`scripts/install-aliyun-cli-windows.ps1`](scripts/install-aliyun-cli-windows.ps1).

Instruct the user to download or copy the script, then run:

powershell.exe -ExecutionPolicy Bypass -File .\install-aliyun-cli-windows.ps1

After installation, verify with `aliyun version`. If the command is not found, instruct the user to open a new terminal session so the updated PATH takes effect.

---

Step 3: CLI Authentication {#step-3-cli-authentication}

Check (Auto)

aliyun sts get-caller-iden
Read more
Ships withalibabacloud-aiops-skills

Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.

Get the whole plugin

Other skills on alibabacloud-aiops-skills.