Official Model Studio CLI(阿里云百炼 CLI)built for AI Agent frameworks, exposing models, search, multimodal, and workflow capabilities as structured tool calls.
# Add to your Claude Code skills
git clone https://github.com/modelstudioai/cliLast scanned: 6/11/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-11T08:49:35.673Z",
"npmAuditRan": false,
"pipAuditRan": true,
"promptInjectionRan": true
}cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by modelstudioai. Official Model Studio CLI(阿里云百炼 CLI)built for AI Agent frameworks, exposing models, search, multimodal, and workflow capabilities as structured tool calls. It has 269 GitHub stars.
Yes. cli passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/modelstudioai/cli" and add it to your Claude Code skills directory (see the Installation section above).
cli is primarily written in TypeScript. It is open-source under modelstudioai on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cli against similar tools.
No comments yet. Be the first to share your thoughts!
The official command-line interface for Aliyun Model Studio (DashScope) AI Platform
Aliyun Model Studio CLI Site · 中文文档 · API Documentation · Get API Key
Chat with Qwen, generate images & videos, understand images, call agents, manage memory, search the web — all from your terminal.
Built for AI Agents. Every command works as a structured tool call.
Equip your AI Agent out-of-the-box with these capabilities, composable across complex tasks:
Note: The features below are currently available only to China site (aliyun.com) account holders and are not yet supported for international / global site accounts.
finetune text|audio|image create; text covers SFT/LoRA/DPO/CPT), probe job status non-blockingly (finetune watch), query per-model training capability (finetune capability), and deploy trained models as endpoints (deploy text|audio|image create)model list) and Bailian apps (app list), review a unified usage view (usage summary), check free-tier quota (usage free), view model usage statistics (usage stats), manage workspaces (workspace list), and manage rate limits (quota list/request/check/history)A complete 2-minute, 16:9 cinematic short film — produced end-to-end from a single natural-language sentence, with zero manual editing. This showcase demonstrates how an AI Agent can compose a multi-step creative pipeline by orchestrating three primitives:
"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."
(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")
bl video generate dispatches each shot to HappyHorse 1.1 in parallel.No timeline scrubbing. No frame-by-frame editing. Just one sentence → one video.
npm install -g bailian-cli
npx skills add modelstudioai/cli --all -g
Requires Node.js >= 22.12.
# Authenticate, recommended
bl auth login --console
# Or authenticate with an API key
bl auth login --api-key sk-xxxxx
# Chat with Qwen
bl text chat --message "What is DashScope?"
# Multimodal chat (text + image + audio + video)
bl omni --message "Describe this image" --image ./photo.jpg
# Generate an image
bl image generate --prompt "A cat in a spacesuit" --out-dir ./images/
# Generate a video from local image
bl video generate --image ./cat.png --prompt "Make the cat move" --download cat.mp4
# Model recommendation — find the best model for your use case
bl advisor recommend --message "I need a visual-understanding chatbot"
# Compare specific models
bl advisor recommend --message "qwen-max vs deepseek-v3 for code generation"
# Browser login (required for console capability commands)
bl auth login --console
# Fine-tune & deploy — a one-shot train-to-serve workflow
bl dataset upload --file ./train.jsonl # Upload a .jsonl dataset (validated first)
bl finetune text create --model qwen3-8b --datasets ./train.jsonl --training-type sft-lora # Local paths auto-upload
bl finetune watch --job-id ft-xxx --output json # Non-blocking probe (running/succeeded return 0; failed/canceled report an error)
bl finetune capability --model qwen3-8b # Which training types a model supports
bl deploy text create --model qwen3-8b --name my-svc --plan mu # Deploy the trained model as an endpoint
# Browse models / apps / free-tier quota / usage statistics / workspaces
bl model list # Browse model families and pricing
bl app list
bl usage summary # Unified view: free-tier quota + recent usage overview
bl usage free # Free-tier quota across models (add --model/--expiring/--sort)
bl usage stats --workspace-id <id> # Model usage statistics (add --model for per-model)
bl workspace list # List all workspaces
# Rate limit management (list / check / request / history)
bl quota list # View RPM/TPM limits (add --model to filter)
bl quota check # Current usage vs rate limits (add --model/--period)
bl quota request --model qwen3.6-plus --tpm 6000000 # Request a temporary TPM increase
bl quota history # View quota-change history
# Token Plan team management (requires AK/SK, see auth below)
bl token-plan list-seats # View subscription seat details
bl token-plan add-member --account-name dev --org-id org_xxx
bl token-plan assign-seats --workspace-id ws_xxx --seat-type standard --account-id acc_xxx
bl token-plan create-key --account-id acc_xxx --workspace-id ws_xxx
More examples and scenarios: Aliyun Model Studio CLI Site
Required for most commands. Get your key from the DashScope Console.
# Option 1: Environment variable
export DASHSCOPE_API_KEY=sk-xxxxx
# Option 2: Login command (persisted to ~/.bailian/config.json)
bl auth login --api-key sk-xxxxx
# Option 3: Per-command flag
bl text chat --api-key sk-xxxxx --message "Hello"
Required for console capability commands (model list, app list, usage summary/free/stats, workspace list, quota list/request/check/history). Opens the Bailian console in your browser to sign in.
bl auth login --console
Required for the token-plan command group. Get your AccessKey from RAM Console.
Recommended: create a RAM sub-account with minimum privileges instead of using the root account's AK/SK.
# Option 1: Login command (persisted to ~/.bailian/config.json)
bl auth login --open-api --access-key-id LTAI5t... --access-key-secret ...
# Option 2: Environment