Aliyun Model Studio CLI MCP server
2026년 11월 13일 커밋모델 생성, 에셋 이해, 앱 오케스트레이션 등 Aliyun Model Studio의 기능을 AI 에이전트를 위한 구조화된 도구 호출로 제공합니다.
다른 이름 modelstudioai/cli
- 스타
- 370
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- Apache-2.0
Aliyun Model Studio CLI MCP란?
Aliyun Model Studio CLI은(는) MCP server입니다. 모델 생성, 에셋 이해, 앱 오케스트레이션 등 Aliyun Model Studio의 기능을 AI 에이전트를 위한 구조화된 도구 호출로 제공합니다.
프로젝트 README에서 생성된 요약
Aliyun Model Studio CLI MCP server 정보
이 명령줄 인터페이스는 Aliyun Model Studio 플랫폼으로 연결되는 브릿지 역할을 하며, AI 에이전트가 구조화된 도구 호출을 통해 복잡한 작업을 수행할 수 있도록 지원합니다. 텍스트, 이미지, 비디오, 음성에 대한 풀 모달리티 생성을 지원하며, 문서, 오디오, 긴 비디오에 대한 에셋 이해 기능도 제공합니다. 개발자는 이를 사용하여 관리형 에이전트, 워크플로, 지식 베이스를 오케스트레이션하거나 모델 학습 및 배포 작업을 관리할 수 있습니다.
이 서버는 네이티브 MCP 설정을 통해 Claude Code, Cursor, Gemini CLI를 포함한 다양한 환경에 통합할 수 있습니다. 사용자는 CSV 또는 JSONL 파일을 사용하여 배치 추론을 수행하고, 계정 할당량을 관리하며, 처리량 예약을 처리할 수 있습니다. 많은 기능이 전 세계적으로 제공되지만, 앱 오케스트레이션 및 학습과 같은 특정 기능은 현재 중국 사이트 계정 사용자에게만 제한됩니다. 사용을 위해서는 유효한 API key와 워크스페이스 설정이 필요합니다.
활용 사례
- 1멀티모달 콘텐츠 생성에이전트가 특정 이미지를 생성한 후, 해당 이미지를 비디오 시퀀스로 변환할 수 있습니다.
- 2구조화된 데이터 추출개발자는 ParseX API를 사용하여 문서나 미디어에서 특정 필드를 추출하여 JSON 형식으로 저장할 수 있습니다.
- 3비동기 배치 처리대규모 데이터셋을 추론에 제출하고 비동기 작업이 완료되면 결과를 다운로드할 수 있습니다.
- 4지식 베이스 관리AI가 파일을 지식 베이스로 가져와 검색 증강 생성(RAG) 기능을 활성화할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
README
GitHub에서 보기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 and edit images and videos, understand images, synthesize and recognize speech, call apps, manage memory, retrieve knowledge, search the web — every AI capability, one command away.
Built for AI Agents. Every command works as a structured tool call.
Features
- Model generation — Full-modality generation across text, image, video, and speech, with editing and reference-based generation
- Asset understanding — Parse and ask questions about images, documents, audio, and long videos
- App orchestration — Call Managed Agents, agents, and workflows published on Aliyun Model Studio, wired to knowledge bases, memory, web search, and MCP tools
- Native MCP setup — Register Bailian MCP servers in Codex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork (千问办公), Qwen Code, Gemini CLI, or Pi
- Training & deployment — Validate and upload datasets, fine-tune models, deploy dedicated models as endpoints
- Batch inference — Prepare CSV/JSONL, create and follow asynchronous Chat/Embedding tasks, download original results/errors with optional CSV, or send one synchronous Batch Chat request
- Account operations — Login, UI-based configuration, model marketplace, usage and quota, rate-limit increases, team seat management
- Plan onboarding — Connect subscription plans such as Token Plan to the CLI and common coding agents in one step
Note: App orchestration, native MCP setup, training & deployment, account operations, and plan onboarding are currently available only to China site (aliyun.com) account holders and are not yet supported for international / global site accounts.
Showcase 1: A Cinematic Short Film from One Sentence
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:
- Qwen Code — the agentic coding model that interprets the user's intent and drives the workflow
- Aliyun Model Studio CLI — invokes HappyHorse 1.1, Aliyun Model Studio's text-/image-/reference-to-video generation model
- spark-video Skill — handles scene decomposition, storyboarding, shot continuity, and final stitching
The single prompt
"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."
Showcase 2: A Short-Film Director Managed Agent from One Sentence
One sentence builds a reusable cloud-side short-film director for storyboarding, storyboard image generation, and video creation:
- Qwen Code — understands the requirement and generates the agent configuration
- Aliyun Model Studio CLI — validates the configuration, previews the changes, and completes the deployment
- Managed Agent — runs the director role along with its skills and tools in the cloud
The single prompt
"Build me a Managed Agent app that can produce short films — a director expert that generates videos and can also design the matching storyboards."
Installation
Agent install (recommended)
Send the following to your Agent — it will detect your environment, then install and verify the CLI for you:
Please read https://bailian.aliyun.com/cli/install.md and install the Aliyun Model Studio CLI for me
Install with NPM
npm install -g bailian-cli
bl skill init
Requires Node.js >= 18.17.
Install on macOS/Linux
curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash
No Node.js required. The installer automatically installs Bailian Skills.
Install on Windows
irm https://bailian.aliyun.com/cli/install.ps1 | iex
No Node.js required. The installer automatically installs Bailian Skills.
Quick Start
Once installed, just describe your task to your AI Agent — no need to assemble commands by hand.
| Scenario | What to say to your Agent |
|---|---|
| Managed Agent | "Create a Managed Agent that can generate short-film storyboards and videos." |
| Image & video generation | "Generate an image of a cat in a spacesuit on Mars, then turn it into a video." |
| Speech recognition | "Transcribe this audio; if proper nouns are wrong, add hot words and try again." |
| Usage & quota | "Show my recent model usage, free-tier quota, and rate limits." |
| Monitoring & alerts | "Show my model call stats, failures and logs, and create an alert rule." |
| Throughput reservations | "List my throughput reservations and capacity instances, then scale, renew or release capacity and wait for the operation to finish." |
| Model selection | "Recommend a model for image understanding and customer support." |
| Decision model | "Use the Bailian decision model to route this ticket and assess whether it needs escalation." |
| About Bailian CLI | "Tell me what Bailian CLI can do for me, and suggest how to use it for my needs." |
More examples and scenarios: Aliyun Model Studio CLI Site
Try a knowledge base
With a valid API key and workspace, preview initialization first:
bl knowledge init --workspace-id <workspace-id> --dry-run
Knowledge bases accrue running-time charges from creation, even without queries. The one-time Standard Edition 720-hour allowance is shared across knowledge bases and expires 30 days after activation for new users. Model calls cost extra; your remaining allowance is unknown. Review the plan and billing rules, then add --yes to the same command after confirming the operation, removing --dry-run to execute.
Keep the returned IDs and recovery record. Closing the CLI or a later failure does not stop billing; follow the reported cleanup actions to delete unused knowledge bases. See the Knowledge Studio quick start for retrieval and cleanup. The bailian-knowledge Skill is available through bl skill init.
RAG audio and video
bl knowledge doc import --index-id <id> --doc-id <fileId> imports an existing file into a knowledge base; doc list --details shows per-file processing settings. Media support includes parser options, streaming uploads, and media references in search/chunk output. Chat JSON separates the final answer from phases, tools, docs, usage, and raw events; quiet mode hides progress and informational messages while preserving the final result, including every JSON field. See the command guide.
ParseX
Parse documents or audio/video and extract structured fields through the workspace-scoped ParseX API:
bl parsex parse submit --workspace-id <workspace-id> --file-url "https://example.com/document.pdf" --file-name document.pdf --output-file-format markdown --output json
bl parsex parse result --workspace-id <workspace-id> --biz-id <parse-biz-id> --follow --output json
bl parsex extract submit --workspace-id <workspace-id> --parsed-file-biz-id <parse-biz-id> --schema-file schema.json --output json
bl parsex extract result --workspace-id <workspace-id> --biz-id <extract-biz-id> --follow --output json
Use an ordinary API key and a workspace with ParseX access. Submission returns data.biz_id immediately; result --follow waits for completion. schema.json contains a JSON Schema object, for example {"type":"object","properties":{"title":{"type":"string"}}}. Inputs are accessible HTTP(S) URLs; extraction also accepts a retained document parsing task. See the ParseX command guide for processing options, result slices, OSS credentials, dry-run and polling behavior.
Batch Inference
bl batch convert --help
bl batch convert --file input.csv --output-file input.jsonl --model qwen-plus
bl batch create --file input.jsonl --dry-run
bl batch create --file input.jsonl
bl batch get --batch-id <id> --follow
bl batch download --batch-id <id> --csv
bl text chat --batch --model qwen-plus --message "Hello" --timeout 3600
--help includes CSV, JSONL and result data examples. convert is local and needs no key; inference/task commands use a model API key. File inference uses asynchronous tasks via create → get → download: create uploads/submits and returns a task ID without waiting for completion. Query with get and download results after completion. Conversion/download files are atomically published per file and never silently overwritten. Use --force to recover partial downloads. JSONL is the authoritative result, while CSV is a lossy display; import IDs as text to preserve leading zeros. Ctrl-C stops local polling, not the remote task.
text chat --batch sends one synchronous request and waits for its response; it does not create an asynchronous task ID. Use --message or --messages-file, which contains one request's conversation context, not independent file requests. The total request timeout defaults to 300 seconds (--timeout: 60–3600 seconds). Timeout/Ctrl-C/disconnection do not guarantee server cancellation.
Synchronous Batch Chat is non-streaming; explicit realtime/international/Token Plan endpoints are rejected. An explicit realtime profile requires --base-url https://batch.dashscope.aliyuncs.com. Batch availability and limits depend on the service/model. Dry-run avoids business requests and output/directory writes; framework update checks/telemetry follow their settings.
Authentication
Console Login (OAuth, Recommended)
Required for console capability commands (model list, app list, MCP list, workspace, usage queries, rate-limit increases, direct console calls). It can create an ordinary API key when needed. Token Plan and other subscription plans cannot use --console; use the API Key login below.
bl auth login --console
Use --console-site international for the international console.
The CLI always prints the login URL. To choose a browser yourself, keep the command running and open the URL on the same machine:
bl auth login --console --no-browser --console-site international
If the browser blocks the local callback, check the console site's local-network permission or try Firefox. The PNA compatibility header does not bypass Chrome's local-network permission or Safari's mixed-content restrictions. No callback within 15 minutes is a failure (exit code 5), not a successful login.
If you already have a valid console access token, import it via stdin without a browser or local callback server. Specify the token's actual region and site; for example, in a POSIX shell:
bl auth login --console --token-stdin --console-site international --console-region ap-southeast-1 < /path/to/console-token.txt
Input must be one raw token (up to 64 KiB), not JSON or Bearer ...; interactive terminal input is rejected to avoid echoing secrets. Use a protected file or trusted pipe, never put the token in command arguments or shell history, and remove temporary secret files after use. The CLI validates the token before saving; failure leaves existing credentials and the active Profile unchanged. Add --config <name> to save and activate a specific Profile on success. This imports only the console session, not a model API key.
API Key
To use an existing ordinary API key or a Token Plan subscription key, run the same command:
bl auth login --api-key <API_KEY>
Get an ordinary key from the DashScope Console, or a Token Plan key from the subscription overview.
Alibaba Cloud OpenAPI AK/SK
Token Plan seat and member management requires an Alibaba Cloud AccessKey. Get yours from the RAM Console.
Recommended: create a RAM sub-account with minimum privileges instead of using the root account's AK/SK.
bl auth login --open-api --access-key-id LTAI5t... --access-key-secret ...
Configuration
# View current config
bl config show
# List all config profiles
bl config list
# Switch config profile
bl config use --name token-plan
# Switch the CLI interface to Chinese
bl config set --key language --value zh-CN
Config file location: ~/.bailian/config.json
Update
bl update
Upgrades the CLI to the latest version and refreshes the installed Agent Skills. Release notes for every version live in CHANGELOG.md.
Contributing
Bug reports, feature requests, and PRs are welcome. See CONTRIBUTING.md for developer setup, repo layout, and the workflow for adding or changing commands.
Scan the QR code to join the Aliyun Model Studio CLI DingTalk user group for usage help, troubleshooting, bug reports, and tips from other users.
Links
Memory documentation (Chinese): capability matrix · command guide.
| Resource | URL |
|---|---|
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?spm=a2ty07.github |
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ |
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models |
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/?spm=a2ty07.github |
| Get API Key | https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key |
| Get Token Plan API Key | https://bailian.console.aliyun.com/cn-beijing?spm=a2ty07.github&tab=plan#/efm/subscription/overview |
| Get AccessKey | https://ram.console.aliyun.com/manage/ak |
Aliyun Model Studio CLI MCP 질문
Aliyun Model Studio CLI로 무엇을 할 수 있나요?
텍스트, 이미지, 비디오, 음성을 포함한 풀 모달리티 생성, 문서 및 오디오와 같은 에셋 파싱, 관리형 에이전트 오케스트레이션, 모델 학습 및 배포 관리가 가능합니다.
이 CLI를 해외 계정에서도 사용할 수 있나요?
아니요, 앱 오케스트레이션, 네이티브 MCP 설정, 학습, 배포 및 계정 운영과 같은 기능은 현재 중국 사이트(aliyun.com) 계정 사용자에게만 제한적으로 제공됩니다.
배치 처리에 사용할 수 있나요?
네, CSV/JSONL 파일을 준비하여 비동기 작업을 생성 및 추적하거나, 동기식 배치 채팅 요청을 보내는 방식으로 배치 추론을 지원합니다.