Bailian CLI

Updated at:

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:

Training and deployment:

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:

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