What problem does it solve?
Streamline AI task automation by unifying vision, search, page reading, and code operations under one CLI.
Core Features & Use Cases
- Vision: image and video analysis, OCR, UI-to-code assistance.
- Search & Reader: real-time web search with domain/recency filtering; web page to Markdown extraction.
- Repo & Tools: GitHub code search and reading via ZRead; MCP tool discovery and raw calls; TypeScript tool chaining.
- Use Case: Imagine quickly diagnosing UI issues in a screenshot, then searching the web for fixes, reading docs, and examining related code in a single session.
Quick Start
Export your API key and try basic commands:
export Z_AI_API_KEY="your-api-key"
npx zai-cli vision analyze ./screenshot.png "What errors do you see?"
npx zai-cli search "React 19 new features" --count 5
npx zai-cli read https://docs.example.com/api
npx zai-cli repo tree openai/codex --path codex-rs --depth 2