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 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.
NoteTo improve the stability and usability of Bailian CLI, the CLI collects command invocation information when you run commands, including command name, success status and duration, CLI version and runtime environment, caller source type, and parameters that do not contain business content. This data is used to measure command usage and improve the product. The CLI does not collect prompts, command output, API input/output content, or credentials, and does not use this data for model training.
You can disable collection at any time without affecting normal command use: run bl config set telemetry false, or run bl config ui and turn it off in the configuration UI.
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
- ParseX Document Parsing — Document and media parsing, structured field extraction
- Batch Inference — CSV to JSONL conversion, asynchronous batch tasks, and result downloads
- Decision Model — Typed decision inference with probabilities
Training and deployment:
- Dataset Management — Upload, validate, and manage datasets
- Fine-tuning — Create text, audio, image, and video fine-tuning jobs
- Deployment — Create text, audio, image deployments and throughput reservations
- Model Import — Import custom models from OSS and manage import jobs
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
- Monitoring, Logs & Alerts — Call monitoring, logs, and alert rules
- Configuration & Tools — Auth, profiles, and general tools
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