ZAI CLI provides access to Z.AI capabilities including image/video analysis, real-time web search, web page extraction, and GitHub code exploration. It integrates with Claude Code via MCP protocol for seamless AI-powered content analysis.
export Z_AI_API_KEY="your-key"
npx zai-cli doctor to verify setupnpx zai-cli --help to see available commands--help on any subcommand for detailed optionsAccess Z.AI capabilities via npx zai-cli. The CLI is self-documenting - use --help at any level.
Default: data-only (raw output for token efficiency).
Use --output-format json for { success, data, timestamp } wrapping.
See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.