Claude Code model router
Ccany
Proxy Claude Code to Any Open API
Install
git clone https://github.com/ca-x/ccany.gitFrom the README
CCany 中文 | English 一个用Go语言重写的Claude Code代理服务器,提供完整的前后端界面,支持将Claude API请求转换为OpenAI API调用。 特性 - 完整的Claude API兼容性: 支持完整的 /v1/messages 端点 - 多提供商支持: OpenAI、Azure OpenAI、本地模型(Ollama)和任何OpenAI兼容的API - 智能模型映射: 通过环境变量配置大小模型 - 函数调用: 完整的工具使用支持和转换 - 流式响应: 实时SSE流式支持 - 图像支持: Base64编码图像输入 - Web管理界面: 苹果设计风格的管理面板 - 数据库支持: 使用ent和SQLite3进行数据持久化 - 用户管理: 完整的用户认证和授权系统 - 请求日志: 详细的API请求日志记录和分析 - 系统监控: 实时系统性能监控和健康检查 - 缓存优化: 智能缓存系统提升性能 - 错误处理: 全面的错误处理和日志记录 快速开始 1. 安装依赖 2. 可选环境变量配置 3. 使用Docker运行(推荐) 使用发布的镜像: 使用Docker Compose(生产环境): 4. 本地开发运行 5. 初始化设置 6. 配置API密钥 6. 使用Claude Code 7. 访问Web界面 打开浏览器访问 http://localhost:8082 查看管理面板。 配置 环境变量(可选) 系统配置: - CLAUDE_PROXY_DATA_PATH - 数据存储目录 (默认: ./data) - CLAUDE_PROXY_MASTER_KEY - 主密钥用于加密敏感配置 (生产环境建议设置) - JWT_SECRET - JWT密钥用于用户认证 (生产环境建议设置) 后台配置(通过Web界面管理) API配置: - OpenAI API密钥和基础URL - Claude API密钥和基础URL - Azure API版本(可选) 模型配置: - 大模型 (默认: gpt-4o) - 小模型 (默认: gpt-4o-mini) 服务器设置: - 服务器主机 (默认: 0.0.0.0) - 服务器端口 (默认: 8082) - 日志级别 (默认: info) 性能配置: - 最大Token限制 (默认: 4096) - 最小Token限制 (默认: 100) - 请求超时秒数 (默认: 90) - 最大重试次数 (默认: 2) - 温度参数 (默认: 0.7) - 流式响应 (默认: true) 💡 注意: 所有API和服务配置现在都通过Web管理界面进行配置,不再需要环境变量。首次运行时访问 /setup 页面进行初始化设置。 模型映射 代理将Claude模型请求映射到你配置的模型: 提供商配置示例 OpenAI 通过Web界面配置: - OpenAI API密钥:sk-your-openai-key - OpenAI基础URL:https://api.openai.com/v1 - 大模型:gpt-4o - 小模型:gpt-4o-mini Azure OpenAI 通过Web界面配置: - OpenAI API密钥:your-azure-key - OpenAI基础URL:https://your-resource.openai.azure.com/openai/deployments/your-deployment - Azure API版本:2024-02-01 - 大模型:gpt-4 - 小模型:gpt-35-turbo 本地模型 (Ollama) 通过Web界面配置: - OpenAI API密钥:dummy-key(必需但可以是虚拟的) - OpenAI基础URL:http://localhost:11434/v1 - 大模型:llama3.1:70b - 小模型:llama3.1:8b Claude官方API 通过Web界面配置: - Claude API密钥:sk-ant-your-claude-key - Claude基础URL:https://api.anthropic.com Web管理界面 访问…
Details
- Repository
- ca-x/ccany
- Language
- Go
- License
- MIT
- Last updated
- 13 October 2025
FAQ
What is Ccany?
Proxy Claude Code to Any Open API It is a model router for Claude Code, from ca-x/ccany on GitHub.
How do I install Ccany?
Clone ca-x/ccany from GitHub and follow the setup steps in its README.
Is Ccany popular?
ca-x/ccany has 67 GitHub stars and 13 forks. It was last updated on 13 October 2025.
More model routers & proxies
HydraTeams
67Pickle-Pixel/HydraTeams
Translation proxy that makes Claude Code Agent Teams model-agnostic. Any model as a teammate — GPT, Gemini, Ollama — with full Claude Code tooling.
Tokenmaxx
70RubricLab/tokenmaxx
A local proxy that aggregates usage across your Codex and Claude Code accounts — with live token-throughput analytics.
Claude Code Helper
82xqnode/claude-code-helper
Windows tray proxy: route Claude Code desktop (Code + Cowork) to DeepSeek, Qwen, and other domestic LLM APIs.
Cursor Bridge
71hkc5/cursor-bridge
Claude Code that runs on your Cursor subscription. One Rust binary, zero config.
CC Simplerouter
83kdsuomi/cc-simplerouter
Install and setup in 26 seconds. Simplerouter configures Claude Code to use any compatible OpenRouter model in seconds, WITHOUT manual editing of config files, environment variables, or messing with local webservers/webUIs. It also doesn't overwrite your existing Claude Code subscription sign-in!
Dev Agent Lens
68Teraflop-Inc/dev-agent-lens
Proxy Claude Code Requests through LiteLLM to Arize
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.