Multi-Backend · Proxy · Claude Code

hi

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

Hot-switch between multiple LLM backends without leaving Claude Code. When launched via hi cc, the proxy automatically intercepts and routes all Claude Code API requests — completely transparent, no files modified, restored on exit. Single binary, cross-platform, zero dependencies.

🔒 Privacy-first by default — All Anthropic and Claude telemetry requests are automatically disabled. No usage data ever leaves your machine. Zero privacy leakage.

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

⭐ If you like hi, please give us a star on GitHub!
🐧 Linux 🍎 macOS 🪟 Windows

⌨️ CLI tool — launch proxy + Claude Code in one command. Auto-detect API keys from config or env vars. Proxy automatically intercepts all Claude Code API requests — no manual setup.

Get Started View on GitHub
hi quick start
# hi cc starts Claude Code — proxy auto-intercepts ALL API traffic
# Telemetry & analytics: BLOCKED by default. Zero data leakage.
 
# 1. Auto-detect API keys & generate config
$ hi init-config
[OK] config saved to ~/.hi/config.yaml
 
# Quick-start: download pre-built config covering Claude + CN open-source models
$ curl -fsSL https://raw.githubusercontent.com/mars-base/hi/main/config.sample.yaml -o ~/.hi/config.yaml
[OK] pre-built config ready — just fill in your API keys
 
# 2. Launch proxy + Claude Code
$ hi
[OK] proxy listening on 127.0.0.1:3999
 
# 3. Hot-switch backends mid-session
$ /deepseek # switch to DeepSeek V4 Pro
$ /claude # switch back to Claude
 
# Or proxy-only, attach agent later
$ hi proxy # start proxy, no Claude Code
$ hi cc # attach agent to existing proxy
Core capabilities
Why hi?

A transparent proxy that gives you the freedom to choose the best model for every task.

🔄

Hot-Switch Backends

Instantly switch between Claude, DeepSeek, MiniMax, GLM, Kimi (K2.6 / K2.7-code), Qwen, and MIMO — no restart needed. Auto-generated slash commands for every model.

🪞

Fully Transparent

No files modified on disk. hi intercepts API calls transparently and restores original configuration on exit. Your Claude Code setup stays pristine.

🔒

Privacy Protected

All Anthropic and Claude telemetry requests are blocked by default when using hi cc. No usage data, no crash reports, no analytics — nothing leaves your machine.

📦

Zero Dependencies

Single static binary — download and run. Cross-platform support for Linux, macOS, and Windows. No runtime, no package manager, no hassle.

💰

Cost Tracking

Track token usage and cost across all backends with persistent history. Know exactly what each model costs you, session after session.

Elastic Scaling

Route to faster/cheaper models for simple tasks, switch to premium models for complex reasoning. Optimize cost and latency per prompt.

🔧

Flexible Config

Auto-detect settings with hi init-config, or skip config entirely and use environment variables. Your choice.

Workflow
How it works

Three steps from zero to multi-backend Claude Code.

1

Install

One command via curl or irm. Single binary, no dependencies.

2

Configure

Run hi init-config to auto-detect API keys. Or grab the pre-built config template covering Claude and all Chinese open-source models — just fill in your keys.

3

Launch

Run hi — proxy starts and intercepts all API requests. Claude Code launches automatically. Telemetry blocked.

4

Switch

Type /claude, /deepseek, /kimi — hot-switch backends mid-session.

Get started
Install in one command

Pre-built binaries for Linux, macOS, and Windows. Same command for install and upgrade.

curl -fsSL https://raw.githubusercontent.com/mars-base/hi/main/install.sh | sh

⚠️ Run the following commands in PowerShell (not CMD)

irm https://raw.githubusercontent.com/mars-base/hi/main/install-windows.ps1 | iex

Or use CMD:

curl -fsSL https://raw.githubusercontent.com/mars-base/hi/main/install-windows.cmd -o install.cmd && install.cmd && del install.cmd

After install, run hi init-config to auto-detect your API keys.

Config files: ~/.hi/config.yaml (Linux/macOS) · %USERPROFILE%\.hi\config.yaml (Windows)

Or skip config — use env vars: ANTHROPIC_API_KEY=sk-xxx DEEPSEEK_API_KEY=sk-xxx hi

Backends
Supported Models

Multiple LLM providers, one proxy. Hot-switch between them with a single slash command.

Provider Model Docs
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 →