跳转至

zhi CLI

Terminal AI assistant powered by Chinese LLMs

zhi is an open-source command-line tool that brings Zhipu GLM models to your terminal. It combines intelligent chat with a powerful skill system for document processing, OCR, and automation — all with built-in safety guardrails.

Install Get Started GitHub


Features

  • Dual Model Architecture

    GLM-5 for intelligent chat, GLM-4-flash for cost-effective skill execution (~10% the cost)

  • 15 Built-in Skills

    9 single-purpose + 6 composite workflows for documents, translation, OCR, and more

  • 8 Integrated Tools

    File read/write, OCR, shell execution, web fetch, skill creation, and interactive prompts

  • YAML Skill System

    Create custom automation skills in minutes with simple YAML configuration

  • Bilingual Support

    Full English and Chinese UI with automatic language detection

  • Security First

    No delete capability exists in the architecture — your files can never be removed or overwritten. All output is isolated to zhi-output/, with path traversal protection and shell command confirmation


Quick Start

pip install zhicli    # macOS / Linux (requires Python 3.10+)
zhi --setup           # Configure API key (30 seconds)
zhi                   # Start chatting

On Windows? Download standalone exe No Python required.