Cline Proxy — Development skill for Claude Code
High-fidelity Rust gateway for aggregating multiple Cline API keys with Claude Code and OpenAI compatibility.
How to install Cline Proxy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jacek4yang/cline-proxy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cline Proxy does
High-fidelity Rust gateway for aggregating multiple Cline API keys with Claude Code and OpenAI compatibility.
Alternatives in Development
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Cs2 Knife — Create a high-fidelity procedural Three.js 3D reconstruction of 14.1k ★
- Claude Code Proxy — Run Claude Code on OpenAI models 3.3k ★
README
cline-proxy
`cline-proxy` is a small Rust gateway that exposes OpenAI Chat Completions and Anthropic Messages APIs over one or more Cline API keys. Its primary use is running Claude Code against Cline while filling one configured key at a time.
**Routing invariant: ONLY an effective upstream HTTP 429 may trigger Cline API-key switching.** This includes a direct HTTP 429 and a high-confidence proxy wrapper that explicitly reports an upstream HTTP 429. Generic 5xx, network failures, timeouts, ambiguous error text, and interrupted streams never switch keys or replay a request.
Architecture
The binary contains five intentionally small subsystems:
- Axum serves
/v1/messages,/v1/messages/count_tokens,/v1/chat/completions,/v1/models,/healthz, and/readyz. - One long-lived rustls
reqwest::Clientprovides HTTP/2, gzip, pooling, keep-alive, connect timeout, and read-inactivity timeout behavior. - A concurrency-safe pool holds the sticky active key, per-key effective-429 cooldown metadata (Healthy → Cooling → HalfOpen with single-flight probing), and runtime counters. No lock is held over a network await.
- A debounced writer persists key cooldowns and the active key to a local JSON state file (name-keyed, wall-clock deadlines, atomic rename) so restarts never re-probe keys with known quota cooldowns.
- The Anthropic adapter converts structured messages, images, tool use/results, reasoning, usage, stop reasons, and stateful OpenAI SSE into Anthropic SSE.
- Central error and redaction paths remove configured secrets, Bearer values, API-key fields, cookies, and JWT-like values.
There is no OAuth, credential refresh, database, Redis, web UI, or balance poller. Configuration is read once from JSON at startup; `/admin/status` is a read-only, authenticated operational snapshot.
Build and install
Rust 1.88 or newer is required by the locked dependency graph.
cargo build --release
install -m 0755 target/release/cline
Related Skills
Codex OpenAI Proxy
Proxy server to use ChatGPT Plus tokens with CLINE/Claude Code extensions via OpenAI API compatibility
Claude Code API Rs
A high-performance Rust implementation of an OpenAI-compatible API gateway for Claude Code CLI.
BOB Gemini Free
High-performance local 3-in-1 gateway unlocking Google Gemini as standard OpenAI, Anthropic (Claude Code), and
Dario
A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline,
Claude Proxy Rs
OpenAI-compatible proxy for Claude Pro/Max - use with Cline, Roo Code, Kilo Code
Spillage
Find the API keys your coding agents spilled into their logs. Claude Code, Codex, Gemini CLI, Cline and more.
Related Agents
Gateway Worker
Worker for gateway/ (Rust, axum, tokio). Owns provider adapters, bar cache, REST/WS API, SQLite persistence, a
Appsec Secrets Scanner
Use proactively to hunt for hardcoded secrets, credentials, tokens, and high-entropy strings across the entire
Reviewer High
High-risk independent reviewer for dev-workflow (authentication, authorization, payments, migrations, destruct