Install
/plugin marketplace add numman-ali/zai-cliRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@zai-skills.
- 1zai-cliZ.AI vision, search, reader, and repo tools via zai-cli
/plugin install zai-cli@zai-skills
Files
ZAI CLI
MCP-native command line interface for Z.AI capabilities: vision analysis, web search, web reader, and GitHub repo exploration.
Found this useful? Follow @nummanali for more AI tooling!
Features
- Vision - Analyze images, screenshots, diagrams, charts, videos using GLM-4.6V
- Search - Real-time web search with domain and recency filtering
- Reader - Fetch and parse web pages to markdown
- Repo - Search and read GitHub repository code via ZRead
- Tools - MCP tool discovery, schemas, and raw calls
- Code Mode - TypeScript tool chaining for agent automation
Quick Start
export Z_AI_API_KEY="your-api-key" npx zai-cli --help npx zai-cli vision analyze ./screenshot.png "What errors do you see?" npx zai-cli search "React 19 new features" --count 5
Get your API key at: https://z.ai/manage-apikey/apikey-list
Installation
As an Agent Skill
OpenSkills (universal - works with any AI coding agent):
npx openskills install numman-ali/zai-cli
Claude Code (native skill marketplace):
claude skill install numman-ali/zai-cli --skill zai-cli
As a CLI Tool
npm i -g zai-cli zai-cli --help
Or use directly with npx:
npx zai-cli --help
Usage
The CLI is self-documenting. Use --help at any level:
zai-cli --help # All commands zai-cli vision --help # Vision commands zai-cli search --help # Search options zai-cli repo --help # GitHub repo commands
Examples
# Vision - analyze images zai-cli vision analyze ./image.png "Describe this" zai-cli vision ui-to-code ./design.png --output code zai-cli vision extract-text ./screenshot.png --language python zai-cli vision diagnose-error ./error.png # Search - web search zai-cli search "TypeScript best practices" --count 10 zai-cli search "security news" --recency oneDay # Reader - fetch web content zai-cli read https://docs.example.com/api zai-cli read https://blog.example.com --format text # Repo - GitHub exploration zai-cli repo tree facebook/react zai-cli repo search vercel/next.js "app router" zai-cli repo read anthropics/anthropic-sdk-python README.md zai-cli repo search openai/codex "config" --language en zai-cli repo tree openai/codex --path codex-rs --depth 2 # Doctor - check setup zai-cli doctor zai-cli doctor --no-vision
Output Format
Default output is data-only for token efficiency. Use --output-format json for structured responses:
{
"success": true,
"data": "...",
"timestamp": 1234567890
}
Notes
repo searchdefaults to English results. Use--language zhfor Chinese.repo treesupports--path(directory scope) and--depth(expand subtrees).tools,tool,call,doctoraccept--no-visionto speed startup when vision tools are not needed.readsupports--with-images-summary,--no-gfm, and--keep-img-data-urlfor richer parsing control.- Vision tool calls automatically retry transient 5xx/network errors (default: 2 retries). Configure with
ZAI_MCP_VISION_RETRY_COUNT(orZAI_MCP_RETRY_COUNTfor all tools). - Tool discovery can be cached to speed
tools/tool/doctor(default: on, 24h TTL). Configure withZAI_MCP_TOOL_CACHE,ZAI_MCP_TOOL_CACHE_TTL_MS,ZAI_MCP_CACHE_DIR.
Repository Layout
├── packages/zai-cli/ # npm package source
├── skills/zai-cli/ # Agent skill (SKILL.md)
└── .claude-plugin/ # Claude Code marketplace config
Development
cd packages/zai-cli npm install npm run build npm test node scripts/bench-tools.mjs
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
MIT - see LICENSE.
Links
{
"name": "zai-skills",
"owner": "Numman Ali <numman.ali@gmail.com>",
"metadata": {
"version": "1.0.0",
"description": "Z.AI capabilities for AI agents - vision, search, reader, and GitHub repo exploration"
},
"plugins": [
{
"name": "zai-cli",
"description": "Z.AI vision, search, reader, and repo tools via zai-cli",
"skills": [
"./skills/zai-cli"
],
"strict": false
}
]
}Facts
- Kind
- Marketplace
- Repo
- numman-ali/zai-cli
- Group
- Uncategorized
- Stars
- 110
- Marketplace name
- zai-skills
- Owner
- Numman Ali <numman.ali@gmail.com>
- License
- MIT
- Language
- TypeScript
- Created
- 2025-12-29
- Last push
- 2026-01-02
- Forks
- 13
- Plugins
- 1
- 1obra/superpowersobra/superpowersAn agentic skills framework & software development methodology that works.297.9k
- 2affaan-m/everything-claude-codeaffaan-m/ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.277.5k
- 3anthropics/skillsanthropics/skillsPublic repository for Agent Skills180.6k
- 4f/prompts.chatf/prompts.chatf.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.172.7k
- 5anthropics/claude-codeanthropics/claude-codeClaude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.150.3k
- 6nextlevelbuilder/ui-ux-pro-max-skillnextlevelbuilder/ui-ux-pro-max-skillAn AI skill that provides design intelligence for building professional UI/UX across multiple platforms.135k