# Zai CLI

> Zai CLI is an open-source agent skill for files and documents. Z.AI CLI providing: - Vision: image/video analysis, OCR, UI-to-code, error diagnosis (GLM-4.6V) - Search: real-time web search with domain/r. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/numman-ali/zai-cli/tree/main/skills/zai-cli
- **Repository:** https://github.com/numman-ali/zai-cli
- **GitHub stars:** 111
- **License:** MIT
- **Skill name:** zai-cli
- **Collection:** https://github.com/numman-ali/zai-cli
- **Categories:** files and documents, design and media
- **Listing updated:** 2026-11-17

## About

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.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/numman-ali/zai-cli/tree/HEAD/skills/zai-cli)
- [License: MIT](https://github.com/numman-ali/zai-cli/tree/HEAD/skills/zai-cli)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/zai-cli` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/numman-ali/zai-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/zai-cli &&
cp -R "$tmp/skills/zai-cli" ~/.claude/skills/zai-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/zai-cli` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/zai-cli` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/numman-ali/zai-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/zai-cli &&
cp -R "$tmp/skills/zai-cli" ~/.agents/skills/zai-cli &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/zai-cli` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/zai-cli` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/numman-ali/zai-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/zai-cli &&
cp -R "$tmp/skills/zai-cli" ~/.cursor/skills/zai-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/zai-cli` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/numman-ali/zai-cli.git --path skills/zai-cli
```

Or copy the folder to `~/.gemini/skills/zai-cli` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/zai-cli`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/numman-ali/zai-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/zai-cli &&
cp -R "$tmp/skills/zai-cli" ~/.copilot/skills/zai-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/zai-cli` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/numman-ali/zai-cli.git
```

Then copy `zai-cli/skills/zai-cli` into your agent's skills folder as `zai-cli`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Zai CLI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/zai-cli to use it in all your projects, or to .claude/skills/zai-cli in one project.

### Does Zai CLI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Zai CLI?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Zai CLI?

The closest alternatives to Zai CLI are Rea tool design, Codebase design, PDF, DOCX and XLSX.

## Alternatives

- [Rea tool design](https://ai-powered.com/skills/rea-tool-design): Rea tool design is an open-source agent skill for design and media.
- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [PDF](https://ai-powered.com/skills/pdf-anthropics): PDF is an agent skill for files and documents.
- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is an agent skill for files and documents.
- [XLSX](https://ai-powered.com/skills/xlsx): XLSX is an agent skill for files and documents.
- [Canvas design](https://ai-powered.com/skills/canvas-design): Canvas design is an agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design): Frontend design is an agent skill for design and media.
- [Power bi model design review](https://ai-powered.com/skills/power-bi-model-design-review): Power bi model design review is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/zai-cli
