SuperAPIAI Directory

cliproxy-rs

github.com · Other AI tools

cliproxy-rs is a local proxy tool written in Rust that translates requests from Codex CLI and Claude Code into the API formats of providers such as DeepSeek, GLM, Kimi, and OpenRouter, and supports multi-key failover. It is compatible with CLIProxyAPI's configuration and credential formats, provides a built-in dashboard, and runs as a single binary.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

cliproxy-rs is a Rust rewrite of CLIProxyAPI, designed to provide a unified local endpoint for coding tools such as Codex CLI and Claude Code so they can use third-party API keys from DeepSeek, GLM, Kimi, OpenRouter, and others. It reads the same config.yaml and credential formats as CLIProxyAPI and implements client routing and the v8 management API. Compatibility with CLIProxyAPI v8.0.35 is partial; see PARITY.md for specific coverage.

Main capabilities include: API translation, converting Codex CLI Responses requests and Claude Code Messages requests into formats supported by target providers (such as Chat Completions), including tool calls; multi-key and multi-provider failover, where when a key returns 429, that key enters cooldown for the current model and the request is transferred to other available keys or providers under the same alias; a built-in dashboard for viewing provider keys, traffic, request history, and tool settings.

Usage: install via the installation command (no sudo or Rust toolchain required on macOS/Linux) or via Windows PowerShell, Homebrew, Scoop, Cargo, Docker, etc. After installation, the proxy runs by default on 127.0.0.1:8317 (if the port is occupied, it tries 8317 through 8336), and the port and key are saved in ~/.cliproxy-rs/keys.env. Open the dashboard and log in with CLIPROXY_MANAGEMENT_KEY, add a provider (select OpenAI-compatible, fill in the group name, base URL, API key, and model name, with an optional alias), then select the model and tool (Claude Code or Codex CLI) in "Use with tools" and copy the configuration. You can also edit config.yaml directly; the proxy reloads it on save.

Use cases: individuals using their own multiple API accounts on a local machine, letting coding tools access models from different providers through one endpoint, and automatically switching when a key is rate-limited. The project emphasizes personal use only, requires compliance with each provider's terms, and prohibits sharing accounts or using it to serve others.

Limitations:Compatibility with CLIProxyAPI is incomplete (of 1951 audited items, 1053 covered, 872 partially covered, 26 missing); not all model and tool combinations have been tested; when Claude Code has thinking enabled, DeepSeek and Kimi models require the is-compat setting; Codex CLI only supports the Responses API, and using wire_api = "chat" will cause an error; some features (such as the AUR package and plugin functionality) are not yet available.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools