zai-cli
A CLI tool that bundles multiple Z.AI capabilities including image/video analysis with GLM-4.6V, real-time web search with filtering, web page extraction to markdown, and GitHub code exploration. It provides a unified interface for developers needing visual content analysis, research, or code investigation tasks.
Packaged view
This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.
Install command
npx @skill-hub/cli install numman-ali-cc-mirror-zai-cli
Repository
Skill path: .agent/skills/zai-cli
A CLI tool that bundles multiple Z.AI capabilities including image/video analysis with GLM-4.6V, real-time web search with filtering, web page extraction to markdown, and GitHub code exploration. It provides a unified interface for developers needing visual content analysis, research, or code investigation tasks.
Open repositoryBest for
Primary workflow: Research & Ops.
Technical facets: Data / AI, Tech Writer, Designer.
Target audience: Developers and researchers who need quick access to AI-powered vision analysis, web content extraction, or GitHub code exploration without building custom integrations.
License: Unknown.
Original source
Catalog source: SkillHub Club.
Repository owner: numman-ali.
This is still a mirrored public skill entry. Review the repository before installing into production workflows.
What it helps with
- Install zai-cli into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
- Review https://github.com/numman-ali/cc-mirror before adding zai-cli to shared team environments
- Use zai-cli for ai/ml workflows
Works across
Favorites: 0.
Sub-skills: 0.
Aggregator: No.
Original source / Raw 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
# Explore a GitHub repo
npx zai-cli repo search facebook/react "server components"
# Check setup
npx zai-cli doctor
```
## Output
Default: **data-only** (raw output for token efficiency).
Use `--output-format json` for `{ success, data, timestamp }` wrapping.