Skip to main content

zai-cli

Z.AI CLI providing: - Vision: image/video analysis, OCR, UI-to-code, error diagnosis (GLM-4.6V) - Search: real-time web search with domain/recency filtering - Reader: web page to markdown extraction - Repo: GitHub code search and reading via ZRead - Tools: MCP tool discovery and raw calls - Code: TypeScript tool chaining Use for visual content analysis, web search, page reading, or GitHub exploration. Requires Z_AI_API_KEY.

跳到安装

来源信息

仓库
TuYv/ccpm
最近来源活动
2026年6月28日 00:16
检测到的 SKILL.md 语言
英语
星标
1
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
zai-cli
description
Z.AI CLI providing: - Vision: image/video analysis, OCR, UI-to-code, error diagnosis (GLM-4.6V) - Search: real-time web search with domain/recency filtering - Reader: web page to markdown extraction - Repo: GitHub code search and reading via ZRead - Tools: MCP tool discovery and raw calls - Code: TypeScript tool chaining Use for visual content analysis, web search, page reading, or GitHub exploration. Requires Z_AI_API_KEY.
# ZAI CLI Access Z.AI capabilities via `npx zai-cli`. The CLI is self-documenting - use `--help` at any level. ## Setup ```bash export Z_AI_API_KEY="your-api-key" ``` Get a key at: https://z.ai/manage-apikey/apikey-list ## Commands | Command | Purpose | Help | |---------|---------|------| | vision | Analyze images, screenshots, videos | `--help` for 8 subcommands | | search | Real-time web search | `--help` for filtering options | | read | Fetch web pages as markdown | `--help` for format options | | repo | GitHub code search and reading | `--help` for tree/search/read | | tools | List available MCP tools | | | tool | Show tool schema | | | call | Raw MCP tool invocation | | | code | TypeScript tool chaining | | | doctor | Check setup and connectivity | | ## Quick Start ```bash # Analyze an image npx zai-cli vision analyze ./screenshot.png "What errors do you see?" # Search the web npx zai-cli search "React 19 new features" --count 5 # Read a web page npx zai-cli read https://docs.example.com/api npx zai-cli read https://docs.example.com/api --with-images-summary --no-gfm # Explore a GitHub repo npx zai-cli repo search facebook/react "server components" npx zai-cli repo search openai/codex "config" --language en npx zai-cli repo tree openai/codex --path codex-rs --depth 2 # Check setup npx zai-cli doctor ``` ## Output Default: **data-only** (raw output for token efficiency). Use `--output-format json` for `{ success, data, timestamp }` wrapping. ## Advanced For raw MCP tool calls (`tools`, `tool`, `call`), Code Mode, and performance tuning (cache/retries), see `references/advanced.md`.
在 GitHub 查看