zai-cli

Access Z.AI vision, search, reader, repository, tools, and code via command-line interface.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/fishyer/skills --skill zai-cli-fishyer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zai-cli
Source: https://github.com/fishyer/skills/tree/main/skills/zai-cli
Command: npx skills add https://github.com/fishyer/skills --skill zai-cli-fishyer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires zai-cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive command-line interface to access various Z.AI functionalities, such as vision analysis, real-time web search, web page reading, GitHub code search, and more, streamlining tasks and enhancing productivity.

Core Features & Use Cases

  • Vision: Analyze images, screenshots, and videos for content understanding.
  • Search: Perform real-time web searches with filtering options for domain and recency.
  • Reader: Extract markdown from web pages for easy reference.
  • Repo: Search and read GitHub code repositories.
  • Tools: Discover and use available MCP tools.
  • Code: Chain TypeScript tools for complex tasks.
  • Use Case: For a developer looking to quickly analyze a bug in an image or search for a specific code snippet on GitHub, this Skill provides a streamlined and efficient solution.

Quick Start

Use the zai-cli to analyze an image with the command: npx zai-cli vision analyze ./screenshot.png "What errors do you see?"

Frequently Asked Questions about zai-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze images for content understanding using a command line interface?

You can analyze images for content understanding by running the Z.AI vision command, passing the image path and a prompt like 'What errors do you see?' to extract visual insights directly in your terminal.

How do I extract markdown from web pages for easy reference?

Extract markdown from web pages by using the reader command, which processes the URL and outputs clean markdown text for easy reference and integration into your documentation or notes.

Can I search GitHub code repositories from the terminal?

Yes, you can search GitHub code repositories from the terminal using the repo command to find specific code snippets and read repository files without leaving your command line environment.

Do I need an API key to perform real-time web searches?

Yes, you need a Z_AI_API_KEY for authentication to perform real-time web searches, as the tool requires this key to access Z.AI's search capabilities with domain and recency filtering.

What is the best way to chain TypeScript tools for complex tasks?

Chain TypeScript tools for complex tasks by using the code command, which allows you to sequence multiple Z.AI operations together to handle intricate workflows requiring combined vision, search, and reading actions.

Does the Z.AI CLI support filtering web search results by domain and recency?

Yes, the Z.AI CLI supports filtering web search results by domain and recency, allowing you to narrow down real-time web searches to specific sites and recent timeframes for targeted information retrieval.