Skip to content
Skill

ZAI命令行

by majiayu000

AI Summary

ZAI CLI is a command-line tool that brings AI-powered capabilities—including vision analysis, web search, page reading, and GitHub exploration—directly to developers and AI coding assistants. It's useful for developers who need programmatic access to vision, search, and code discovery features.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "ZAI命令行" skill in my project.

Please run this command in my terminal:
# Install skill into your project (2 files)
mkdir -p .claude/skills/zai && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/zai/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/zai/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/zai/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/zai/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Z.AI CLI 提供: - 视觉:图像/视频分析、OCR、UI 到代码、错误诊断(GLM-4.6V) - 搜索:带有域名/时间过滤的实时网络搜索 - 阅读器:网页到 Markdown 提取 - 仓库:通过 ZRead 进行 GitHub 代码搜索和阅读 - 工具:MCP 工具发现和原始调用 - 代码:TypeScript 工具链 用于视觉内容分析、网络搜索、页面阅读或 GitHub 探索。需要 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 | |

Analyze an image

npx zai-cli vision analyze ./screenshot.png "What errors do you see?"

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption100+ stars on GitHub
119 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars119
Forks20
Issues1
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code