Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@intentsolutionsio/zai-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ZAI CLI
Z.AI vision, search, reader, and GitHub exploration via CLI and MCP.
Features
- 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
Installation
# Set your API key
export Z_AI_API_KEY="your-api-key"
# Get a key at: https://z.ai/manage-apikey/apikey-listQuick 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
# Explore a GitHub repo
npx zai-cli repo search facebook/react "server components"
# Check setup
npx zai-cli doctorUsage
Simply describe what you need - ZAI activates when you:
- Need image or video analysis
- Want to search the web in real-time
- Need to read a webpage as markdown
- Want to explore GitHub repositories
Author
Numman Ali - @numman-ali
Resources
License
Apache-2.0