Reliable API Infrastructure for Your Coding Agents

One Binary LLM API Gateway.
Claude Code, Codex & Gemini. Zero Rate Limits.

Native support for OpenRouter, new-api, and any provider. Automatically patches ~/.claude/settings.json and standard configs—eliminating 429 rate limits through intelligent multi-key rotation and failover.

Native Support for Claude Code, Codex & Gemini

Directly patches ~/.claude/settings.json & ~/.codex/config.toml.
Clipal also serves as a unified proxy for Coding Agents such as Claude code, Codex, Gemini CLI, Aider, Continue ...,
and AI Apps such as Jan, Cherry Studio, Chatbox, and any app supporting custom API endpoints (OpenRouter, new-api, sub2api).

Supported Protocols

OpenAI
Anthropic
Google Gemini

CLI Tools & AI LLM Applications

DeepSeek
Groq
Claude Code
Codex CLI
Gemini CLI
OpenCode
Cline
Aider
Goose
Continue
Cherry Studio
OpenClaw
LobeChat
Ollama
Chatbox
Jan
AnythingLLM
Core Advantages

Advanced LLM Proxy Features. Built for Developer Workflows.

Three things that make Clipal the only LLM proxy worth running.

Universal LLM CLI Takeover

Stop hunting for hidden config files. Clipal natively patches ~/.claude/settings.json and standard configuration files, transforming into a zero-configuration local reverse proxy for Claude Code, AI CLI tools, and Desktop apps without env-var pollution.

Claude Code Codex CLI Gemini CLI Aider Continue Goose
Clipal Web UI interface showing universal one-click CLI takeover for Claude Code, Codex, and Gemini with automated setting.json patching

Smart 429 Bypass & Failover Routing

Conquer strict 3rd-party API rate limits. Clipal manages shared token pools, instantly detecting 429 errors to gracefully rotate keys or failover to backup providers—all while preserving your contextual session state.

Lightweight Single-Binary LLM Gateway

Unlike heavy Python proxies (like LiteLLM) or complex Docker deployments, Clipal is a high-performance, zero-dependency API Gateway compiled in Go for macOS, Linux, and Windows. Download. Executable. Proxy active.

Behind the Magic

The Clipal Blueprint

How we engineer stability: zero config loss, zero auth loops, and unified token pools.

AI CLI Tools
Claude Code / Codex / Gemini CLI. Fragile local config files securely patched.
AI Desktop Apps
Cherry Studio / OpenClaw / Chatwise. Unified behind one stable gateway endpoint.
AST-Merge Engine
Non-Destructive Takeover
Instead of overwriting settings.json, we parse the JSON AST and surgically patch ANTHROPIC_BASE_URL. Your enabledPlugins and custom env variables remain 100% untouched.
Protocol Normalizer
Socket-Level Header Scrubbing
Tired of Login Loops? Clipal actively scrubs conflicting Host headers and injects accurate API tokens at the proxy layer, enabling flawless AWS Bedrock / Google Vertex connections.
Routing Multi-Pool
Intelligent 429 & Sticky Sessions
Built for 3rd-party APIs. When a single Key hits 429 rate limits, Clipal instantly diverts to the next available Key within the same Provider, while enforcing Context Sticky Sessions so conversations never lose state.
Hierarchical Failover
Multi-Provider Fallback
Total endpoint outage? If a Primary Provider exhausts all keys or goes offline, priority-based hierarchical routing seamlessly cascades traffic to your Fallback Provider. Zero downtime.
Anthropic / Bedrock
100% Protocol match. Zero authentication loops.
OpenAI / Custom Models
High-performance Codex compatibility with load balancing.
Google Vertex / AI Studio
Rotating quotas softly, bypassing RPS limits transparently.
The Competitive Edge

Why Developers Switch to Clipal

Beyond simple proxying — Clipal is the infrastructure that cc-switch and ccNexus users have been waiting for.

Feature / Tool cc-switch ccNexus Clipal
Binary-only (No Docker) ✗ (Script)
Claude / Codex / Gemini Takeover Limited Unified
API Provider Multi-key Pools Bulletproof
Universal Base-url Support ✓ (w/ Metrics)
Non-destructive Config Merge ✗ (Overwrites) ✓ (Safeguarded)
Protocol Auth Emulation Limited ✓ (No Loops)
Real-time Flow Monitoring ✗ (Blackbox) ✓ (One-click)
Specialized Tool Optimizations
Deep Integration

Claude Code Proxy: Native & Powerful

Directly hijacking ANTHROPIC_BASE_URL without environment pollution. Perfect for relaying requests to Bedrock, Vertex AI, or any 3rd-party Claude Mirror without protocol header errors.

Quota Management

Gemini CLI: Bypass RPS Limits

Distribute requests across multiple Google Gemini API keys. Automatically fallback to Flash models via weighted pools when Pro quotas hit their ceiling.

Quick Start

Up and Running Clipal in Minutes

Choose your preferred installation method.

Copy this prompt and paste it into Claude Code, Aider, or Goose — it will handle the entire binary installation and PATH setup for you:

PROMPT
Please help me install and start Clipal. Project: https://github.com/lansespirit/Clipal

Please detect my current OS and architecture, check the project's Releases and docs, and complete the download, installation, and startup for me. Then confirm that I can open the Web UI successfully. Use these official links when needed:
- Releases: https://github.com/lansespirit/Clipal/releases
- Getting Started: https://github.com/lansespirit/Clipal/blob/main/docs/en/getting-started.md
- Web UI Guide: https://github.com/lansespirit/Clipal/blob/main/docs/en/web-ui.md

After that, guide me through using the Web UI to enable CLI takeover and add my first provider.
1

Download the Binary

Download Binary
2

Move to PATH & Start

# macOS / Linux
chmod +x clipal-darwin-arm64
mv clipal-darwin-arm64 /usr/local/bin/clipal
clipal service install
clipal service start
✓ Running on http://127.0.0.1:3333
3

Open Web UI & Configure

Visit http://127.0.0.1:3333 to add your API keys, apply CLI Takeover, and manage providers.

F.A.Q.

Frequently Asked Questions for Clipal

Is Clipal a local SaaS or cloud proxy?

Neither. Clipal is a standalone local binary. Your API keys are stored in an encrypted config.json on your own machine. Zero cloud storage, zero data leakage.

Can I use Clipal with OpenRouter, new-api, or sub2api for both Claude Code and OpenAI-based tools?

Yes. Clipal natively supports OpenAI-compatible, Anthropic Claude, and Google Gemini protocols. You can route your Claude Code terminal, OpenAI-powered Codex, and Gemini CLI traffic through any third-party provider or local endpoint effortlessly.

How does Clipal solve the "429 Too Many Requests" error for aggregate APIs?

Clipal provides a multi-dimensional reliability layer. Beyond single-provider multi-key rotation, it supports multi-provider concurrency and intelligent sticky sessions. If your primary OpenRouter key hits a rate limit, Clipal instantly diverts to another key or provider while ensuring your session context remains consistent.

Does using Clipal for Codex affect my chat history or session stability?

In fact, it makes it more stable. For Codex/OpenCode, Clipal uses a standardized model_provider = "clipal" configuration. Unlike other proxies that force provider changes (which resets history), Clipal keeps the provider constant while swapping the underlying endpoints in the background, preserving all your context and history.

How is Clipal different from cc-switch?

While cc-switch manages multiple configs, Clipal is a high-performance gateway that supports complex multi-key token pools, deep config injection for settings.json, and real-time observability.

Does Clipal solve "Invalid API Key" for Bedrock?

Yes. Most proxies break when talking to Bedrock/Vertex via Claude Code due to header strictness. Clipal provides native protocol emulation to fix these issues at the socket level.

Is there any performance overhead?

Negligible. Written in Go, Clipal processes requests in microseconds. It consumes less than 50MB of RAM, far more efficient than Node.js or Python-based proxies.

How does Clipal protect my existing configuration?

Unlike other tools that overwrite your settings, Clipal uses a non-destructive AST-merging strategy to patch settings.json. We only update necessary fields and preserve your enabledPlugins, custom environment variables, and manual tweaks.

I'm tired of the "Login Loop" in Claude Code. Can Clipal fix this?

Yes. Most Login Loops are caused by incorrect header handling when proxying. Clipal's protocol emulation layer ensures headers are properly scrubbed and injected, keeping your session stable without repeated authentication prompts.

How do I know if the proxy is actually working?

Clipal provides a real-time observability dashboard. You can see the full request flow, response times, and error codes in one click. If a request fails, we'll tell you exactly if it was a network timeout or an invalid key.

Get Clipal

Free & Open Source. Always.

Download for Your Platform

Or download directly:
Download Binary
Latest stable: v0.11.6 All releases →
100% local. Your keys never leave your machine. MIT License.

Join the Community

Get setup help, share configs, and discuss new providers with other developers.

Clipal WeChat Developer Community QR Code - Join for Claude Code and Gemini setup support

Scan to join WeChat group