aliyun/alibabacloud-aiops-skills/alibabacloud-agent-toolkit-install
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-agent-toolkit-installSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-agent-toolkit-install.
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
Runaliyun versionto 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.
Checklist Overview
Run through these steps sequentially. Skip any step whose check already passes.
- Check / Install `uv` — Confirm
- Check / Install Alibaba Cloud CLI (`aliyun`) — Confirm
- Check CLI authentication — Auto (check) / User-only (login)
- Check / Install CLI plugins — Confirm
- Check / Create MCP Server Core — Auto (check) / Confirm-cloud (create)
- Check Bearer token exchange — Auto (check)
- Install Alibaba Cloud Agent Toolkit — Confirm
Step 1: uv {#step-1-uv}
uv is the Python package manager required to start MCP servers.
Check (Auto)
- 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 userand 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)
- Pass → outputs version 3.3.3 or later. Proceed to Step 3.
- Fail →
command not foundor 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
Security note: This is a pipe-to-shell command. Show the command and let theuser decide. Do not execute without explicit consent.
Windows (PowerShell)
The installer script is located at `scripts/install-aliyun-cli-windows.ps1`.
Instruct the user to download or copy the script, then run:
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)
- Pass → returns JSON containing
AccountId,Arn, andUserId. **Record the
authentication mode** (AK vs OAuth) — it affects Step 6. Proceed to Step 4.
- Fail → error response (e.g.
InvalidAccessKeyId,ERROR: ...,
or similar). Guide the user through OAuth login below.
Note: The output ofaliyun sts get-caller-identitytells you who the currentuser is. Share this with the user so they can confirm the correct identity is in use.
OAuth Login (User-only — user must run in a separate terminal)
The OAuth login flow is interactive — it opens a browser. The agent must not attempt to execute this. Display the following instructions for the user:
After the user confirms they have completed the OAuth flow, set the profile as current and re-run the check:
If it still fails, suggest the user verify their profiles:
Step 4: CLI Plugins {#step-4-cli-plugins}
Two CLI plugins are required. Check each and install any that are missing.
Check (Auto)
- All pass → each outputs plugin metadata. Proceed to Step 5.
- Any fail →
plugin not foundor error. Install the missing ones below.
Install (Confirm — ask user before executing)
Install only the missing plugins. Show the command and wait for approval:
After installation, re-run the check commands to verify.
Step 5: MCP Server Core {#step-5-mcp-server-core}
The MCP Server Core is a cloud-side resource that can only be created once per account.
Check (Auto)
- Pass → response contains
"totalCount": 1. The MCP Core already exists. Proceed to Step 6. - Fail (totalCount 0) → no core exists. Create one below.
- Fail (permission error) → the user's RAM identity lacks the required permission.
See Permission Error below.
Create (Confirm-cloud — ask user before executing)
This will create a cloud-side MCP Server Core resource in the user's Alibaba Cloud account (region: cn-hangzhou). Explain this to the user and wait for explicit approval.
Possible outcomes:
| Result | Meaning | Action | |
|---|---|---|---|
| Success (200) | Core created | Re-run the check to confirm totalCount: 1 | |
| Quota exceeded error | Core already exists (only one allowed) | Treat as success — the core is already provisioned | |
| Permission denied / Forbidden | Missing RAM permission | See below |
Permission Error {#permission-error}
If the user receives a permission error when listing or creating the MCP Core, they need the following system policy attached to their RAM identity:
Instruct the user (or their account administrator) to:
- Go to the RAM Console
- Find the RAM user or role in use
- Attach the system policy AliyunOpenAPIMCPServerStaticCredentialAccess
- Re-run the check / create commands
Step 6: Bearer Token Exchange {#step-6-bearer-token-exchange}
This step verifies that the MCP Server Core can successfully exchange a bearer token, which is required for the MCP server to authenticate API calls at runtime.
Check (Auto)
CRITICAL — use the exact command below, do NOT modify or substitute it.aliyun RamOAuth GenerateAccessTokenis a non-standard aliyun CLI invocation.It does NOT follow the normalaliyun <product> <action>pattern and will NOTappear inaliyun help, product listings, or OpenAPI metadata. The product nameRamOAuth, the actionGenerateAccessToken, the--version,--ClientId,--Scope,--endpoint, and--methodflags are all hardcoded values thatmust be used verbatim.Do NOT:- Attempt to discover or construct an alternative command (e.g.aliyun auth ...,aliyun ram ...,aliyun sts ...)- Call RAM/STS/IMS APIs to "check" token exchange capability — those APIs servedifferent purposes- Skip this step or replace it with other verification methodsJust copy and run the command exactly as written:
- Pass → returns a valid token response. All prerequisites are satisfied.
- Fail (permission error) → see Token Permission Error.
- Fail (other error) → see OAuth Application Not Installed.
Token Permission Error {#token-permission-error}
If the error indicates insufficient permissions (e.g. Forbidden, NoPermission, User not authorized), the user needs the system policy:
This is the same policy required in Step 5. If it was already attached, verify it covers the current RAM identity by re-checking aliyun sts get-caller-identity.
OAuth Application Not Installed {#oauth-app-not-installed}
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/developertools/openapiexplorer/alibabacloud-agent-toolkit-install/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 27
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-agent-toolkit-install)