Minimal LLM API reverse proxy for Claude Code, Codex CLI & Gemini CLI — YAML routing, hot reload, and automatic provider failover. 极简 LLM API 反向代理:面向 Claude Code / Codex CLI / Gemini CLI,支持 YAML 配置、多上游优先级与自动故障转移。
git clone https://github.com/lansespirit/Clipal.gitMinimal LLM API reverse proxy for Claude Code, Codex CLI & Gemini CLI — YAML routing, hot reload, and automatic provider failover. 极简 LLM API 反向代理:面向 Claude Code / Codex CLI / Gemini CLI,支持 YAML 配置、多上游优先级与自动故障转移。
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/lansespirit/ClipalCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Set up a Clipal reverse proxy for [COMPANY] to route requests between [PRIMARY_PROVIDER] and [FALLBACK_PROVIDER]. Use the following YAML configuration: [YAML_CONFIG]. Ensure automatic failover is enabled and hot reload is configured for [INDUSTRY] compliance.
```yaml
# Clipal Configuration for AI Model Routing
providers:
- name: Claude Code
api_key: ${CLAUDE_API_KEY}
priority: 1
- name: Gemini CLI
api_key: ${GEMINI_API_KEY}
priority: 2
routes:
- path: /api/v1/chat
provider: Claude Code
- path: /api/v1/code
provider: Gemini CLI
failover:
enabled: true
max_retries: 3
retry_delay: 1000
reload:
enabled: true
interval: 30000
```
### Configuration Explanation
- **Providers**: Defines the primary and fallback providers with their respective API keys and priorities.
- **Routes**: Specifies the paths and the corresponding providers for each route.
- **Failover**: Enables automatic failover with a maximum of 3 retries and a 1-second delay between retries.
- **Reload**: Enables hot reload with a 30-second interval for configuration updates.AI assistant built for thoughtful, nuanced conversation
Your one-stop shop for church and ministry supplies.
Google's multimodal AI model and assistant
Automate your browser workflows effortlessly
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power