Bailian CLI
A command-line tool built for AI Agents — invoke Alibaba Cloud Bailian's full-modal AI capabilities from your terminal with a single instruction.
Bailian CLI (npm package bailian-cli, commands bl / bailian) is a command-line tool built for AI Agents. It exposes Alibaba Cloud Bailian's full-modal capabilities as structured tool calls. Once installed and authenticated, a single natural-language instruction lets your Agent orchestrate 10+ atomic capabilities — text chat, image and video generation, speech synthesis and recognition, knowledge retrieval, long-term memory, and more. It is compatible with mainstream Agent frameworks such as Claude Code, Qwen Code, OpenCode, Cursor, and Codex.
ImportantThe CLI itself is free and open source; you are billed by actual usage of each model and application service, and new users get a free quota. Source and full docs are on the GitHub repository.
Capabilities
CLI commands are organized by product line: model invocation, training and deployment, Agent infrastructure, and platform management and tools.
Model invocation:
- Text Chat & Omni — Text generation and Omni multimodal interaction
- Image Generation & Editing — Image generation and multi-image composition
- Video Generation & Editing — Text-to-video, image-to-video, reference-to-video, video editing
- Speech Synthesis & Recognition — TTS and ASR
- Vision Understanding — Image, document, and video parsing
Training and deployment:
- Dataset Management — Upload, validate, and manage datasets
- Fine-tuning & Deployment — Fine-tuning, deployment, and checkpoint management
Agent infrastructure:
- Managed Agent — Agent lifecycle, sessions, and state management
- Flow Agent — Agent apps and workflow invocation
- RAG — Knowledge base semantic search and RAG Q&A
- Memory — Long-term memory and user profiles
- Web Search — Real-time internet retrieval
- MCP & Skill — MCP orchestration and skill management
- Sandbox — Sandbox instance and template lifecycle
Platform management and tools:
- Usage & Quota — Usage stats, rate limits, and permissions
- Configuration & Tools — Auth, profiles, and general tools
NoteAgent infrastructure (Managed Agent, Flow Agent, RAG, Memory, Web Search, MCP & Skill, Sandbox) and training and deployment are currently available only to China site (aliyun.com) accounts and are not yet supported for international / global site accounts.
Start here
- Installation & Auth — Install the CLI and Skills, configure authentication, and verify
- Quickstart — Onboard in 3 steps and send your Agent its first request
- Changelog — Version changes and newly added capabilities
Resources
- Playground: try capabilities in the console without installing
- GitHub repository: source, issues, and full documentation