PlugWiki

bailian-cli Skill for Claude Code: Aliyun Model Studio

Lets your agent run the bl command for Aliyun Model Studio (Bailian): call apps and models, run batch jobs, check usage and quota, and manage MCP and alerts.

Installs
18.8K
on skills.sh
Stars
367
on GitHub
Files
2
besides SKILL.md
Updated
Nov 2026
last repo commit

This is the hub skill for the bl command-line tool from Aliyun Model Studio (Bailian). It makes your agent call Bailian text models, find and call Bailian apps, run batch inference, parse documents, check usage and quota, browse the model catalog, and set up MCP, monitoring and alerts. It also installs and updates other Bailian skills.

It only triggers when you name Bailian, DashScope or bl, or continue a bl workflow. SKILL.md says not to route ordinary chat, coding, writing or translation through it. It tells the agent to read the bailian-protocol skill before any command, so install both. Media generation, fine-tuning, sandboxes and memory live in sibling skills.

Good for

  • Developers who build on Alibaba Cloud Model Studio (DashScope) and want an agent to drive its CLI
  • Teams checking usage, quota, free tier or Token Plan from the terminal
  • Anyone running large batch inference jobs from CSV files

Install bailian-cli

Claude Code

  1. 1

    Copy this prompt.

    Install the bailian-cli skill in Claude Code. Run this command:
    
    npm install -g bailian-cli
    bl skill init
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js 18.17 or newer.

The skill drives the bl command and tells the agent to read the bailian-protocol skill first, so both are installed here. bl skill init installs the whole Bailian family, including media, fine-tuning and sandbox skills.

From the project README. Source.

What's in the skill

When it loads

阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 `bl` CLI hub: 应用调用(bl app)、决策模型推理(bl decision)、模型目录/模型列表、用量/额度/配额、免费额度、 工作空间、MCP 市场、pipeline、文件上传、ParseX 文档/音视频解析与字段抽取、Batch 批量推理与 CSV 转换、同步 Batch Chat、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; 个人长期记忆与应用记忆资源 → bailian-memory;个人历史资料辅助任务、资料接入与知识库管理 → bailian-knowledge; 联网搜索的模型路由(Token Plan 自带搜索 vs MCP 搜索 + 兜底)→ bailian-web-search。 不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。 未命名用量/额度问题:先问用户使用哪个产品,再运行 `bl usage` / `bl quota` 查询。

Sections in SKILL.md

  1. Command reference (authoritative)
  2. When to use which command
  3. Quick examples
  4. Agent workflows
  5. Find and call an app
  6. Batch 文件工作流
  7. Command metadata for agents
  8. Routing reminders

Key facts

Installs on skills.sh
18,849 as of 2026-11-02
Last repo commit
2026-11-01

What it includes

  • Chat with a Bailian model

    Explicit Bailian model chat. With --batch it sends one synchronous batch request and waits for it.

    Try: “Use bl to ask a Bailian model to write a short poem about spring.”

    Runs code · bl text chat

  • Find and call a Bailian app

    Lists apps by name, then calls one by app ID with a prompt. Listing needs console sign-in.

    Network · bl app list / call

  • Asynchronous batch inference from CSV or JSONL

    Converts a CSV to JSONL, validates with --dry-run, creates a task, follows it to the end and downloads results. Creating a task needs your confirmation of model, upload and cost.

    Write · bl batch convert / create / list / get / cancel / download

  • Typed decision model inference

    Returns choice, score or probability values for a workspace endpoint, not generated text.

    Network · bl decision

  • Parse documents and audio, extract fields

    Submits a source URL for parsing or structured field extraction and waits for the result with --follow.

    Network · bl parsex parse / extract

  • Model catalog and recommendations

    Lists and searches models, shows SDK sample code and recommends a model for an intent. The catalog needs no sign-in.

    Network · bl model list / search / code, bl advisor recommend

  • Usage, rate limits and plan quota

    Shows usage stats, free tier, Token Plan and Coding Plan usage, and rate limits, and can request a quota increase. If you did not name a product, the agent asks which one first.

    Network · bl usage, bl quota, bl token-plan

  • Monitoring, call logs and alert rules

    Reads model call metrics, errors and traces, and creates, updates, enables, disables and deletes alert rules.

    Delete · bl monitor, bl log, bl alert

  • Bailian MCP marketplace

    Finds and calls MCP servers in the Bailian marketplace, and registers or removes one in a supported coding agent.

    Write · bl mcp list / tools / call / connect / disconnect

  • Manage Bailian registry skills

    Installs, lists, updates and removes skills from the Bailian skill registry. bl skill init installs the whole family.

    Delete · bl skill add / list / update / remove

  • Sign in, settings and workspaces

    Console login or API key login, language and profile settings, and workspace listing.

    Write · bl auth, bl config, bl workspace

  • Workflow helpers and the console API

    Upload a file for a Bailian workflow, run a pipeline definition, or call a console API directly. SKILL.md says not to use upload or pipeline for generic requests.

    Write · bl file upload, bl pipeline run, bl console call

From the official docs

Permissions

Medium risk

It runs a cloud command-line tool with your account, and some commands spend money, delete alert rules or upload local files. Approve high-risk commands one by one and keep sensitive files out of the paths you pass.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Some commands cost money or delete things

    Batch tasks, model calls and quota requests use your account, and alert and skill removal commands delete. The protocol makes the agent stop and ask before high-risk commands. Read what it asks and decline if unsure. github.com

  • Local files are uploaded when you pass a path

    Commands that accept a file URL also accept a local path, and the CLI uploads the file to DashScope temporary storage for 48 hours. Do not point it at files you cannot send to Alibaba Cloud. github.com

  • The install route runs a script from the web

    The README's macOS, Linux and Windows installers pipe a script from bailian.aliyun.com into your shell. The npm install route is the other documented option. github.com

  • Every agent command carries caller telemetry variables

    The protocol has the agent set BAILIAN_CALLER_TYPE, BAILIAN_CALLER_NAME, BAILIAN_SKILL_NAME and BAILIAN_SKILL_VERSION in front of each bl command except --help and --version, and it calls this telemetry. The values name the host agent and the skill, for example claude-code. github.com

  • It may offer to report a bug

    After a failure that looks like a CLI bug, the protocol has the agent ask you once whether to file an issue on the CLI repo. It redacts secrets first and acts only if you agree. github.com

Security advisories

No published security advisories as of Nov 2, 2026.

Technical details
Turning on read-onlyNo read-only mode. The protocol marks risk: high commands and stops for your confirmation, and tells the agent never to add --yes on its own.
Talks toAliyun Model Studio (Bailian) services receive your prompts, files and requests. Local file paths passed to commands are uploaded to DashScope temporary storage (oss://, 48 hours). After a CLI bug, the agent may offer to file an issue on github.com/modelstudioai/cli
Sign-in and keysSign-in is handled by bl auth login (browser or API key). SKILL.md does not say where it stores credentials.
Scopes
  • Runs the bl command in your terminal with your Bailian sign-in

  • Some commands create paid batch tasks, delete alert rules or remove skills

  • bl mcp connect registers a Bailian MCP server in a supported coding agent

Questions

What does the bailian-cli skill do?

It makes your agent drive bl, the command-line tool for Aliyun Model Studio (Bailian, also called DashScope). You can call apps and models, run batch jobs, check usage and quota, browse models and set up MCP, monitoring and alerts.

How do I install it?

Use the install box at the top of this page. It installs the skill with its required protocol skill and the bl command. The Claude app ZIP upload is not listed because the skill needs the bl command and a second skill folder.

Does it need an API key or account?

Yes. You sign in with bl auth login, either through the browser console login or with an API key. Token Plan and other subscription plans need an API key login.

Does it work outside China?

Partly. The README says app orchestration, native MCP setup, training and deployment, account operations and plan onboarding are for China-site (aliyun.com) accounts only. The console login has an international site option.

Why do I need bailian-protocol too?

SKILL.md tells the agent it must read the shared bailian-protocol skill before running anything. That covers consent, version checks, sign-in and error reports, and the protocol says a partial install should include it.

Is it safe?

It runs a cloud tool with your account, so commands can cost money, delete alert rules or upload local files. The protocol requires your confirmation for high-risk commands, and the agent should never add the skip-confirmation flag itself.

Does it handle image or video generation?

No. SKILL.md hands media work to the bailian-gen skill, fine-tuning to bailian-finetune, and other areas to sibling skills. You install those separately or with bl skill init.

Information

updated Nov 2, 2026

Folder
skills/bailian-cli

modelstudioai/cliskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 7
  1. modelstudioai/cli README · github.com
  2. bailian-protocol SKILL.md · github.com
  3. skills CLI commands · github.com
  4. bailian-cli SKILL.md · github.com
  5. bailian-cli skill README · github.com
  6. bailian-cli on skills.sh · skills.sh
  7. modelstudioai/cli · github.com

Updated Nov 2, 2026.