AnyProxyAi - Universal AI API Gateway GUI | 通用 AI API 网关 GUI - Route, convert and manage multiple AI provider APIs (OpenAI, Claude, Gemini) through a single unified interface. 通过本地统一接口路由、转换和管理多个 AI 服务商 API相互转换。Built with Wails + Vue 3.
git clone https://github.com/cniu6/anyproxyai.gitAnyProxyAi is a cross-platform desktop application that unifies access to multiple AI provider APIs through a single local endpoint. It automatically converts between OpenAI, Claude (Anthropic), Gemini, Claude Code, and Cursor IDE formats, eliminating the need to rewrite code for different AI services. The tool features intelligent request routing across multiple API backends, real-time usage statistics with token monitoring, and a visual dashboard showing request performance and model rankings. Users configure routes by adding API keys and endpoints once, then point their applications to the local proxy at http://localhost:5642. Built with Go and Wails, it runs natively on Windows, macOS, and Linux without dependencies.
[{"step":"Install and launch AnyProxyAi from [DOWNLOAD_LINK]. Configure your API keys for [SOURCE_PROVIDER] and [TARGET_PROVIDER] in the settings panel under 'Provider Credentials'.","tip":"Use environment variables for sensitive keys (e.g., OPENAI_API_KEY) to avoid hardcoding."},{"step":"Define a routing rule in the 'Rules' tab: Set [SOURCE_PROVIDER] as the input and [TARGET_PROVIDER] as the output. Add a conversion script (JavaScript/Python) to transform the payload format if needed.","tip":"Pre-built templates are available for common providers (OpenAI → Claude, Gemini → OpenAI). Customize field mappings like 'model' or 'temperature' to match the target API."},{"step":"Send your API request to AnyProxyAi's local endpoint (e.g., http://localhost:3000/api/proxy). Include the original provider's payload in the request body with a 'source_provider' field.","tip":"Use tools like Postman or cURL to test the proxy endpoint before integrating it into your application."},{"step":"Monitor the 'Logs' tab in AnyProxyAi to verify the conversion and routing. Check for errors or rate limits in real-time.","tip":"Enable 'Verbose Logging' for detailed payload inspection during debugging."},{"step":"Retrieve the response from the target provider via AnyProxyAi's response headers (e.g., X-Target-Provider, X-Conversion-Time). Parse the output for your application.","tip":"Cache responses for identical requests to reduce costs and latency. Use the 'Cache' tab to set TTL rules."}]
Route Claude Code and Cursor IDE requests to OpenAI or Anthropic backends
Consolidate multiple AI API subscriptions into one unified interface
Monitor token usage and API costs across different providers in real-time
Load balance requests across multiple API keys or endpoints automatically
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/cniu6/anyproxyaiCopy 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.
Use AnyProxyAi to route a request from [SOURCE_PROVIDER] (e.g., OpenAI) to [TARGET_PROVIDER] (e.g., Claude) while converting the payload format. The request should include: [REQUEST_BODY]. Ensure the output is formatted for [TARGET_PROVIDER]'s API specifications. Log the conversion process and return the response from [TARGET_PROVIDER] in a structured format.
### Request Conversion & Routing Report
**Source Provider:** OpenAI (gpt-4-1106-preview)
**Target Provider:** Claude (claude-3-opus-20240229)
**Request ID:** proxy_20240515_142233
#### Original OpenAI Payload:
```json
{
"model": "gpt-4-1106-preview",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in simple terms."
}
],
"max_tokens": 150,
"temperature": 0.7
}
```
#### Converted Payload for Claude:
```json
{
"model": "claude-3-opus-20240229",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in simple terms."
}
],
"max_tokens": 150,
"temperature": 0.7,
"system": "You are a helpful assistant."
}
```
#### Routing Log:
- **Step 1:** Payload extracted from OpenAI request.
- **Step 2:** Converted `model` and `system` fields to match Claude's API.
- **Step 3:** Sent to Claude API via AnyProxyAi gateway.
#### Response from Claude:
```json
{
"id": "msg_20240515_142234",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Quantum computing leverages the principles of quantum mechanics to process information in ways that classical computers cannot. Imagine bits as tiny switches that can be either 0 or 1. Quantum bits (qubits) can exist in multiple states at once, thanks to a property called superposition. This allows quantum computers to perform complex calculations much faster for certain problems, like cryptography or simulating molecules. However, they're not better for all tasks—classical computers still excel at everyday computing."
}
],
"model": "claude-3-opus-20240229",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 25,
"output_tokens": 120
}
}
```
#### Conversion Summary:
- **Input Tokens:** 25
- **Output Tokens:** 120
- **Total Cost (Approx):** $0.004 (Claude pricing)
- **Latency:** 1.2s (including conversion overhead)
**Note:** AnyProxyAi automatically handled the API key injection and response parsing for the target provider.Google's multimodal AI model and assistant
AI assistant built for thoughtful, nuanced conversation
Advanced foundation models via API and ChatGPT
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan