Skip to content
Back to skills

Zai

ASecurity

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

  • 666 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 2, 2026
ai-agentstypescriptbashreactgitapiperformance

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill zai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-zai-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-zai-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ZAI命令行
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 | |

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.