Agent skill

Aliyun Model Studio CLI

by modelstudioai in modelstudioai/cli

Hub for the bl CLI of Alibaba Cloud Model Studio (Bailian): app calls, knowledge bases, model catalog, usage and quota, workspaces, MCP market, auth and skill installs.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Aliyun Model Studio CLI

skills CLI
$ npx skills add modelstudioai/cli --skill bailian-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install modelstudioai/cli bailian-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bailian-cli .claude/skills/bailian-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bailian-cli
GitHub stars
541
Token cost
~4.2k tokens
SKILL.md length
1,239 words
Files
3
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

Hub for the bl CLI of Alibaba Cloud Model Studio (Bailian): app calls, knowledge bases, model catalog, usage and quota, workspaces, MCP market, auth and skill installs.

  • Works in 3 steps: Open the owning skill's… → Open the matching reference/.md for… → Run bl --help for the same information…
  • Calling or managing Bailian apps from the command line
  • SKILL.md covers Command reference…, When to use which command, Quick examples and Agent workflows, plus 1 more section
  • Calls pnpm

What it does

The skill owns the Bailian resource commands: invoking apps and app memory, knowledge base retrieval, the model catalog, usage, quota and free allowance, workspaces, the MCP marketplace, pipelines, file upload, console API calls, login and configuration, and installing, listing, updating or removing skills through bl skill. Before running anything the agent must read the shared bailian-protocol skill for provider choice and consent, version checks, auth setup and error reporting, and if it is missing it runs bl skill init instead of guessing.

Neighboring skills take over by task: bailian-gen for images, video, speech and vision, bailian-finetune for datasets, training and deployment, bailian-managed-agent for agents.yaml, bailian-sandbox for sandboxes and bailian-web-search for search routing. A generated reference folder documents each command group. It is not for ordinary reasoning, coding, writing, translation, summaries or generic search, and for an unnamed usage or quota question it asks which product first.

When your agent uses it

  • Calling or managing Bailian apps from the command line
  • Checking Model Studio usage, quota or free allowance
  • Browsing the model catalog or workspaces
  • Installing, listing or updating Bailian skills with bl skill

Example prompts

  • “Show my Model Studio usage and quota for this month.”
  • “List the models available in my Bailian workspace.”
  • “Install the full Bailian skill family with bl skill init.”
  • “Run my Bailian app with the prompt Summarize this ticket and show the result.”

Requirements

  • The `bl` CLI from Alibaba Cloud Model Studio
  • A Model Studio account with credentials set up through the CLI

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Open the owning skill's reference/index.md (if that skill is installed) → Quick index (or By group) to locate the command.
  2. Open the matching reference/.md for Usage, Flags, and Examples.
  3. Run bl --help for the same information in the terminal.

What it can do on your machine

Read from SKILL.md and the folder at commit 8bbbbc7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aliyun Model Studio CLI loads about 4.2k tokens when it runs. Until then it costs about 173 tokens; SKILL.md has 1,239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~173
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from modelstudioai/cli at commit 8bbbbc7, republished under its Apache-2.0 licence (© modelstudioai). 1,239 words, ~4,170 tokens.

Download SKILL.mdSave it as .claude/skills/bailian-cli/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
bailian-cli
description
阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 `bl` CLI hub: 应用调用(bl app)、应用记忆、知识库检索、模型目录/模型列表、用量/额度/配额、免费额度、 工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、 Agent skill 安装/列表/更新/卸载(bl skill add|list|update|remove,百炼 skill registry)。 用户点名百炼 / DashScope / `bl`,或继续既有 `bl` 工作流时直接使用。 共享协议(consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol;官方安装 `bl skill init`。 家族路由:生图/生视频/配音/语音合成/转写 → bailian-gen;精调/微调/训练/数据集 → bailian-finetune; agents.yaml 托管 Agent → bailian-managed-agent;Sandbox 实例与模版 → bailian-sandbox; 联网搜索的模型路由(Token Plan 自带搜索 vs MCP 搜索 + 兜底)→ bailian-web-search。 不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。 未命名用量/额度问题:先问用户使用哪个产品,再运行 `bl usage` / `bl quota` 查询。
metadata.version
2.1.0

Aliyun Model Studio CLI (bl)

CRITICAL — Before executing, MUST read the shared protocol in ../bailian-protocol/SKILL.md: Provider selection and consent, Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. If that protocol file is missing, stop and run bl skill init; do not guess auth/consent.

Family hub — This skill owns Bailian resource commands and the hub reference/ (apps, knowledge, usage, auth, config, …). Shared protocol → ../bailian-protocol/SKILL.md (install the full family with bl skill init). Soft hand-offs by skill name (Read if installed; else bl … --help / prompt bl skill init): bailian-gen (media) · bailian-finetune (training) · bailian-managed-agent (agents.yaml IaC) · bailian-sandbox (Sandbox lifecycle) · bailian-web-search (web search routing). Do not invoke it for ordinary reasoning, coding, writing, translation, summarization, generic research, or image understanding the host agent can complete directly.

Install (supported): bl skill init

Command reference (authoritative)

Hub-owned commands, flags, usage strings, and examples are documented in:

Domain skills own their own generated reference trees (soft hand-off — do not require them for hub work):

  • bailian-gen → image / video / speech / omni / vision (fallback: bl image\|video\|speech\|omni\|vision --help)
  • bailian-finetune → dataset / finetune / deploy (fallback: bl dataset\|finetune\|deploy --help)
  • bailian-managed-agent → managed-agent (fallback: bl managed-agent --help)
  • bailian-sandbox → sandbox (fallback: bl sandbox --help)
  • bailian-web-search → web search routing (hub still owns reference/search.md flags; must route via this skill before bl search web)

Auto-generated from the CLI source at build time (pnpm --filter bailian-cli run generate:reference). Before running an unfamiliar command:

  1. Open the owning skill's reference/index.md (if that skill is installed) → Quick index (or By group) to locate the command.
  2. Open the matching reference/<group>.md for Usage, Flags, and Examples.
  3. Run bl <command> --help for the same information in the terminal.

Do not guess flags — use the reference files or --help.


When to use which command

Use this table only after the decision table in bailian-protocol has routed the request to bl (class 4, or class 2 after the user picks Bailian). Hub-owned intents only — for media / fine-tune / agents.yaml / Sandbox, soft hand-off to the domain skill.

User intentCommandNotes
Explicit Bailian model chat / text executionbl text chatDefault qwen3.8-max
Bailian agent / workflowbl app callNeeds --app-id
Find app by namebl app list then bl app callConsole auth
Bailian app memory CRUD (not host-agent memory)bl memory *reference/memory.md
Bailian knowledge base RAGbl knowledge search / chatAPI key + agent/workspace IDs
Upload a file as a step of a Bailian workflowbl file uploadWhen you need oss:// URL explicitly; not for generic hosting
Bailian model selection / recommendationbl advisor recommendIntent → candidate recall → LLM ranking
Bailian model catalog / pricing / paramsbl model listNo auth (public catalog); --model <family> for detail, --enrich for input params
Find a model by keyword / modalitybl model searchWeighted ranking; --input-modality / --output-modality; offline models hidden by default
SDK sample code for calling a modelbl model code--sdk openai|dashscope, --lang; text output is the snippet alone, safe to redirect
Install / list / update / remove registry skillsbl skill add / list / update / removeBailian skill registry; see reference/skill.md
Bailian MCP marketplace discovery / callbl mcp list / tools / call—
Register or remove a Bailian MCP in an Agentbl mcp connect / disconnectCodex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork, Qwen Code, Gemini, OpenCode, OpenClaw, DeepSeek Harness, ZCode, WorkBuddy
Bailian pipeline workflow (a step in a bl flow)bl pipeline run / validateJSON/YAML workflow definitions
Bailian rate limits / quotabl quota list / check / requestConsole auth; class 2 — ask which product first if unnamed
Bailian free tier / usage statsbl usage free / stats / freetierConsole auth; class 2 — ask which product first if unnamed
Bailian Token Plan quota usagebl usage token-planConsole auth; class 2 — ask which product first if unnamed
Token Plan harness entitlement quotabl token-plan harness-quotaConsole auth; issued quota usage + still-issuing harnesses
Bailian Coding Plan quota usagebl usage coding-planConsole auth; class 2 — ask which product first if unnamed
Model monitoring (calls, latency, errors, delivery)bl monitor overview / models / metrics / errors / delivery *Console auth; see reference/monitor.md
Model call logs / tracesbl log audit * / bl log inference * / bl log status / bl log trace *Console auth; audit and inference logs have separate APIs and switches; see reference/log.md
Model alert rules / templates / historybl alert list / create / update / delete / enable / disable / history / metrics / template *Console auth; contacts are managed in the CloudMonitor console; see reference/alert.md
Console API (advanced)bl console callConsole auth
Bailian workspace listingbl workspace listConsole auth
Switch CLI Help / Quick Start languagebl config set --key language --value zh-CNUse en-US to switch back; follows the active config profile
Image / video / speech / omni / vision→ skill bailian-genFallback: bl image|video|speech|omni|vision --help
Dataset / fine-tune / deploy→ skill bailian-finetuneFallback: bl dataset|finetune|deploy --help
agents.yaml IaC / managed-agent sessions→ skill bailian-managed-agentFallback: bl managed-agent --help; apply/destroy need --yes after plan
Bailian Sandbox instance / template lifecycle→ skill bailian-sandboxFallback: bl sandbox --help
Web search (model-aware routing)→ skill bailian-web-searchToken Plan vs MCP path + fallback; fallback: bl search web --help

Flags, usage, and examples: see hub reference/ or bl <command> --help — do not guess flags. Domain command details live in the owning skill's reference/.


Show full SKILL.md (384 more words)Show less

Quick examples

bash
bl text chat --message "Write a poem about spring in Chinese"
bl app list --output json
bl app call --app-id <code> --prompt "Hello"
bl usage stats
bl model list --model qwen

More examples per command: see reference/<group>.md (e.g. reference/text.md, reference/app.md).


Agent workflows

Find and call an app
  1. bl app list --name <keyword> --output json
  2. Pick code (app ID); handle user_prompt_params via --biz-params '{"key":"value"}'
  3. bl app call --app-id <code> --prompt "..."
Command metadata for agents

Use the owning skill's reference/index.md (or sibling skill reference trees), the matching reference/<group>.md, and bl <command> --help as the command schema surface. Do not call removed schema-export commands.


Routing reminders

  • Image/video/audio generation or editing → skill bailian-gen (class 3 consent from bailian-protocol). Fine-tuning / datasets / deployments → bailian-finetune. agents.yaml IaC → bailian-managed-agent. Soft hand-off: Read sibling skill if installed; else bl … --help or prompt bl skill init. Image understanding the host agent can do → host-first; use bl vision / bl omni only when the user names a Bailian model or the media (video/audio files) exceeds host capability.
  • Web search inside a Bailian workflow → skill bailian-web-search (model-aware routing: Token Plan → model-native search; default → bl search web; MCP failure → fall back once). Generic web research the host can do stays host-first — do not bounce it through bl.
  • Answer ordinary reasoning, coding, writing, translation, summarization, and generic research with the host agent's native capabilities; do not bounce them through bl text chat or bl search web.
  • Usage / quota / credits questions that do not name a product → ask which product (Bailian or another AI service) first; run bl usage / bl quota only after the user picks Bailian or Bailian context is already established.
  • "Remember this" and memory requests default to the host agent's own memory; bl memory * is only for Bailian app memory resources.
  • bl file upload and bl pipeline run are steps inside a Bailian workflow; do not use them to capture generic "upload this file" or "run a pipeline" requests.
  • For risk: high commands or requires_confirmation, follow the shared protocol; never add --yes automatically.
  • bl managed-agent apply / destroy have an additional domain rule: run plan first and show the diff before asking for confirmation.
  • When a matched bl command accepts a file URL, pass local paths directly; never require the user to host the file first.
  • Console login → use bl auth login --console for China; add --console-site international for the international site. It may create an ordinary API Key. Token Plan and other subscription plans must use bl auth login --api-key <key>. See ../bailian-protocol/assets/setup.md.

© modelstudioai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in skills/bailian-cli of modelstudioai/cli.

  • SKILL.md
  • README.md
  • README.zh.md

Open the folder on GitHubat commit 8bbbbc7

Compare with similar skills

Aliyun Model Studio CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aliyun Model Studio CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aliyun Model Studio CLI this skillmodelstudioai/cli541—~4.2kAutomated safety check: PassApache-2.0
DeepChat CLIThinkInAIXYZ/deepchat6.4k—~1.5kAutomated safety check: PassApache-2.0
Openmaopenma-ai/open-managed-agents315—~854Automated safety check: PassApache-2.0
Openai Knowledgeopenai/openai-agents-python30k1 repos~408Automated safety check: PassMIT
Ollama MCP Tool for NanoClawnanocoai/nanoclaw31k1 repos~3kAutomated safety check: NotesMIT
Copilot SDKgithub/awesome-copilot40k5 repos~6.3kAutomated safety check: PassMIT

Similar skills

  • DeepChat CLI

    ThinkInAIXYZ/deepchat

    Lets an agent drive DeepChat's bundled CLI for model calls, media generation, transcription, OCR, artifacts, configuration, Skills and MCP operations, within strict command rules.

    6.4k GitHub stars~1.5k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Openma

    openma-ai/open-managed-agents

    Use the openma platform to build, deploy, and manage AI agents.

    315 GitHub stars~854 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Openai Knowledge

    openai/openai-agents-python

    Official

    Retrieve authoritative OpenAI API and platform documentation when an integration or claim needs current external evidence.

    30k GitHub starsUsed in 1 repo~408 tokens
    AI & LLM EngineeringAuto-check passed
  • Adds an MCP server so the NanoClaw container agent can send prompts to local Ollama models, with optional tools to manage the model library.

    31k GitHub starsUsed in 1 repo~3k tokens
    AI & LLM EngineeringAuto-check: notes
  • Copilot SDK

    github/awesome-copilot

    Official

    Build agentic applications with GitHub Copilot SDK. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 5 repos~6.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Installs Codex as an agent provider for NanoClaw groups, with streaming, MCP tools, server-side history and vault-only credentials, next to or instead of Claude.

    31k GitHub stars~2.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes

More from modelstudioai/cli

All 8 skills in this repo
  • Bailian Media Generation

    modelstudioai/cli

    Chinese-language entry point into Alibaba Cloud Bailian's image, video and speech generation and understanding, routed through separate image, video, speech and vision commands.

    541 GitHub stars~2k tokensUpdated 7 days ago
    Auto-check passed
  • Bailian Shared Protocol

    modelstudioai/cli

    Shared execution protocol for the Alibaba Cloud Bailian bl skill family, covering consent, version checks, authentication and install, issue reporting and output conventions.

    541 GitHub stars~2.9k tokensUpdated 7 days ago
    Auto-check passed
  • Drives fine-tuning on Alibaba Cloud Model Studio with the bl CLI: validate and upload data, create a job, watch it, export results and deploy the model.

    541 GitHub stars~1.8k tokensUpdated 7 days ago
    Auto-check passed
  • Manages Alibaba Cloud Bailian knowledge bases with the bl command line: create bases, upload documents, deploy search services, fix chunks and handle data center files.

    541 GitHub stars~1.5k tokensUpdated 7 days ago
    Auto-check passed
  • Bailian Managed Agent CLI

    modelstudioai/cli

    Manages Alibaba Cloud Bailian managed agents as infrastructure as code with the bl managed-agent command, previewing every change before apply or destroy.

    541 GitHub stars~3.5k tokensUpdated 7 days ago
    Auto-check: notes
  • Decides whether a web search in Alibaba Cloud Bailian (Model Studio) workflows uses the model's built-in search or the Bailian MCP, based on the connection type.

    541 GitHub stars~1.8k tokensUpdated 7 days ago
    Auto-check passed

Questions about Aliyun Model Studio CLI

What does Aliyun Model Studio CLI do?

Hub for the bl CLI of Alibaba Cloud Model Studio (Bailian): app calls, knowledge bases, model catalog, usage and quota, workspaces, MCP market, auth and skill installs. The skill owns the Bailian resource commands: invoking apps and app memory, knowledge base retrieval, the model catalog, usage, quota and free allowance, workspaces, the MCP marketplace, pipelines, file upload, console API calls, login and configuration, and installing, listing, updating or removing skills through bl skill. Before running anything the agent must read the shared bailian-protocol skill for provider choice and consent, version checks, auth setup and error reporting, and if it is missing it runs bl skill init instead of guessing.

When should I use Aliyun Model Studio CLI?

Aliyun Model Studio CLI fits situations like: calling or managing Bailian apps from the command line; checking Model Studio usage, quota or free allowance; browsing the model catalog or workspaces; installing, listing or updating Bailian skills with bl skill.

How do I install Aliyun Model Studio CLI in Claude Code?

Run `npx skills add modelstudioai/cli --skill bailian-cli -a claude-code`. Or copy the skill folder (skills/bailian-cli in modelstudioai/cli) into .claude/skills/bailian-cli in your project. Claude Code loads it when a task matches its description.

How do I install Aliyun Model Studio CLI in Codex?

Run `npx skills add modelstudioai/cli --skill bailian-cli -a codex`. Or copy the skill folder (skills/bailian-cli in modelstudioai/cli) into .agents/skills/bailian-cli in your project. Codex loads it when a task matches its description.

Can I use Aliyun Model Studio CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modelstudioai/cli --skill bailian-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bailian-cli, .gemini/skills/bailian-cli, .github/skills/bailian-cli and .opencode/skills/bailian-cli in your project.

What does Aliyun Model Studio CLI need to run?

Going by SKILL.md and its folder, Aliyun Model Studio CLI needs the command-line tools its instructions call (pnpm). Our summary lists: The `bl` CLI from Alibaba Cloud Model Studio; A Model Studio account with credentials set up through the CLI.

Does Aliyun Model Studio CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Aliyun Model Studio CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Aliyun Model Studio CLI use?

Aliyun Model Studio CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aliyun Model Studio CLI use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Aliyun Model Studio CLI?

Skills that share tags, products or a category with Aliyun Model Studio CLI: DeepChat CLI (ThinkInAIXYZ/deepchat, 6.4k stars), Openma (openma-ai/open-managed-agents, 315 stars), Openai Knowledge (openai/openai-agents-python, 30k stars) and Ollama MCP Tool for NanoClaw (nanocoai/nanoclaw, 31k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aliyun Model Studio CLI?

modelstudioai (a GitHub organization) maintains it in modelstudioai/cli, which has 541 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 30, 2026.

Source: modelstudioai/cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.