Skip to content
Agent Orchestration
Skill

/zai-cli

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

From plugin
n-skills
1.1k5 skills

Claude Code

$ npx -y skills add numman-ali/n-skills --skill zai-cli --agent claude-code

SKILL.md

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

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

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

Read more
@numman-ali
Ships withn-skills

Curated plugin marketplace for AI agents - works with Claude Code, Codex, and openskills

Stars on GitHub

Momentum

stars in total
1.1k
Star history of numman-ali/n-skills on GitHub, a chart by star-history.com

Other skills on n-skills.

dev-browser

dev-browser

Browser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take…

@numman-ali@numman-aliInstall Skill
gastown

gastown

Multi-agent orchestrator for Claude Code. Use when user mentions gastown, gas town, gt commands, bd commands, convoys, polecats,…

@numman-ali@numman-aliInstall Skill
orchestration

orchestration

Multi-agent orchestration for complex tasks. Use when tasks require parallel work, multiple agents, or sophisticated…

@numman-ali@numman-aliInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about zai-cli.

Which coding agents can use zai-cli?
zai-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.