About CLI
CLI is an MCP server published by modelstudioai in the Search category: official Model Studio CLI(阿里云百炼 CLI)built for AI Agent frameworks, exposing models, search, multimodal, and workflow capabilities as structured tool calls. Conduid read 13 tools from its source: ask_user, bailian_memo_forget, bailian_memo_pause, bailian_memo_remember, bailian_memo_resume, bailian_memo_search and 7 more. No package is published for it, so it installs from a source checkout.
The repository has 377 stars and 38 forks, is licensed Apache-2.0, and its last commit was on 2 Dec 2026. The latest release is v2.14.0 (27 Nov 2026): Inspect servers with bl mcp get, create, update or delete custom servers, and activate or deactivate official and custom servers in batches. It follows v2.13.0 (27 Nov 2026), and the 5 most recent releases go back to v2.11.1 (24 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-cli, aliyun, bailian, cli, command-line-tool and dashscope.
Install
git clone https://github.com/modelstudioai/cliTools (13)
ask_userAsk the user a multiple-choice question to resolve ambiguity. Only use when different choices lead to completely different recommendations; max 2 rounds.| Parameter | Type | Description |
|---|---|---|
| default_if_skip * | string | |
| options * | array | |
| question * | string |
bailian_memo_forgetLocate candidate personal memories matching a query and delete confirmed observation nodes after user approval. Profile value deletion uses need_detail + PATCH when available.bailian_memo_pausePause automatic Bailian personal memory read/write. Does not delete cloud data.bailian_memo_rememberExplicitly remember a user-approved fact into Bailian personal memory. Provide the exact text the user wants stored.bailian_memo_resumeResume Bailian personal memory after a pause; continues initialization if needed.bailian_memo_searchSearch Bailian personal memories (observations) for the configured user_id. Use when personal context may change the answer.bailian_memo_statusShow Bailian personal-memory enablement status, identity ids (not secrets), and recent async write tasks.kb_chatAsk the knowledge base directly and get a complete, domain-tuned answer from a specialized RAG pipeline (multi-round retrieval + reranking + grounded generation). For knowledge Q&A this typically outperforms searching and synthesizing yourself when the question can be answered by the knowledge base alone; use kb_search instead when you need raw chunks to verify, cite, or combine with other work. The pipeline runs an internal analysis/retrieval loop and may take a few minutes. Credentials and workspace resolve automatically from DSH config (the Bailian knowledge base plugin page, BAILIAN_KB_API_KEY in ~/.dsh/.credentials.yaml) — never read or pass them yourself. agent_id is REQUIRED (see its parameter description). If no listed service covers what the user is asking about, say so plainly rather than trying the closest-looking id.kb_searchSemantic search over a Bailian knowledge base. Returns raw knowledge chunks with scores and source references for you to verify, cite, or combine with other context. Retrieval scope and strategy (multi-KB weighting, routing, reranking) come from the service configuration. top_k caps how many chunks return (client-side cut of the score-ranked results). Use kb_chat instead when the user question can be answered by the knowledge base alone. Credentials and workspace resolve automatically from DSH config (the Bailian knowledge base plugin page, BAILIAN_KB_API_KEY in ~/.dsh/.credentials.yaml) — never read or pass them yourself. agent_id is REQUIRED (see its parameter description). If no listed service covers what the user is asking about, say so plainly rather than trying the closest-looking id: unrelated evidence is worse for the user than none.read_fileRead a file inside the loaded skill's directory (or the skills root). Use relative paths as instructed by the skill's SKILL.md (e.g. 'models/models.jsonl', 'wiki/index.md'). Only use after loading a skill via use_skill.| Parameter | Type | Description |
|---|---|---|
| path * | string | File path relative to the skill's base path |
recommendRecommend models for the user's request. Takes no arguments: the system automatically passes the user's original request plus every answer collected via ask_user. Returns top-N recommendations + decision signals (confidence/candidatePool), or need_clarify (user clarification required). Also covers comparison/alternative requests.search_filesSearch a file inside the loaded skill for a keyword (case-insensitive substring) and return the matching lines. PREFERRED over read_file for large data files like models.jsonl or families.jsonl — those are truncated when read whole, but search scans the full file. Example: search_files(path='models/models.jsonl', pattern='qwen-image').| Parameter | Type | Description |
|---|---|---|
| path * | string | File path relative to the skill's base path |
| pattern * | string | Keyword to search for (case-insensitive substring) |
use_skillLoad a skill's full instructions (SKILL.md) by name. Use this when the user's request matches a skill in the Available Skills list — e.g. asking about a specific model's usage, API parameters, calling examples, pricing details, or any documentation lookup. Returns the skill's instructions and its base path; then follow those instructions using read_file.| Parameter | Type | Description |
|---|---|---|
| skill * | string | The skill name from the Available Skills list |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.9K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- !No dynamic code executionScanned 880 source files and found 8 calls to eval or shell execution, in packages/commands/src/commands/update.ts:317, packages/commands/src/commands/update.ts:30 and packages/core/src/isolation/os-isolation/darwin.ts:59 among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- Streamable HTTP and HTTP with SSEpackages/commands/src/commands/mcp/connect.ts:31, packages/commands/src/commands/mcp/connect.ts:31
- Starts other programs
- 40 callspackages/commands/src/commands/config/agent-launch.ts:48, packages/commands/src/commands/config/agent-launch.ts:82, packages/commands/src/commands/config/agent-launch.ts:87
- Outbound network calls
- 19 callspackages/commands/src/commands/config/ui-html.ts:798, packages/bailian-kb-dsh/src/web/bailian-card-controller.ts:177, packages/bailian-kb-dsh/src/web/bailian-card-controller.ts:199
- Writes or deletes files
- 1 callpackages/core/src/config/paths.ts:22
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 880 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.9K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README