hi

Transparent, simple, fast, reliable, elastic — multi-backend proxy for Claude Code

Prerequisite: install Claude Code first, then install hi below.

⭐ If you like hi, please give us a star on GitHub!

Linux / macOS curl -fsSL https://raw.githubusercontent.com/mars-base/hi/main/install.sh | sh
Windows PowerShell irm https://raw.githubusercontent.com/mars-base/hi/main/install-windows.ps1 | iex
Windows CMD curl -fsSL https://raw.githubusercontent.com/mars-base/hi/main/install-windows.cmd -o install.cmd && install.cmd && del install.cmd

Quick Start

hi init-config — auto-detect settings
→ Config — you can edit the following files if needed:
→ Linux/macOS: ~/.hi/config.yaml
→ Windows: %USERPROFILE%\.hi\config.yaml
→ Or skip config, use env vars:
Linux/macOS: ANTHROPIC_API_KEY=sk-xxx DEEPSEEK_API_KEY=sk-xxx hi
PowerShell: $env:ANTHROPIC_API_KEY="sk-xxx"; $env:DEEPSEEK_API_KEY="sk-xxx"; hi
CMD: set ANTHROPIC_API_KEY=sk-xxx && set DEEPSEEK_API_KEY=sk-xxx && hi
hi — launch proxy + Claude Code
hi cc — attach agent to existing proxy
hi proxy — proxy only, no Claude Code
/deepseek /claude — hot-switch backends
  • Hot-switch between Claude, DeepSeek, MiniMax, GLM, Kimi (K2.6 / K2.7-code), Qwen, MIMO
  • Transparent — no files modified, restored on exit
  • Cross-platform single binary — download and run, no dependencies
  • Cost tracking with persistence across sessions
  • Auto-generated slash commands for instant switching
  • Supported Models

    ProviderModelDocs
    Anthropic Claude Sonnet 4.6 / Opus 4.8 / Haiku 4.5 Docs
    DeepSeek V4 Pro / V4 Flash Docs
    MiniMax M3 Docs
    Zhipu GLM GLM 5.1 Docs
    Moonshot Kimi Kimi K2.6 / K2.7-code (256K) Docs
    Alibaba Qwen Qwen 3.7-Max Docs
    Xiaomi MIMO MIMO V2.5-Pro Docs
    GitHub Download