Client setup

Claude Code Setup Guide

Install Claude Code and configure the ZhenAPI endpoint and API key on Windows, macOS and Linux.

Install and connect to ZhenAPI with the setup script. It detects Node.js and Claude Code, helps install missing prerequisites, and writes the configuration. The copied command does not contain your API key.

Choose the setup script for your operating system

Copy the command for your operating system, run it, and enter your API key when prompted.

POWERSHELL
1irm https://zhenapi.ai/install/claude-code.ps1 | iex
💡 Restart any open CLI sessions after saving the configuration. This also applies to Claude Code terminals.