Wei-Shaw

Claude Relay Service — Git skill for Claude Code

Git community intermediate

GitHub Repo stars Self-built Claude code mirror service supporting multi-account switching Relay service.

How to install Claude Relay Service

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Wei-Shaw/claude-relay-service and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Relay Service does

[!CAUTION] > **安全更新通知**:v1.1.248 及以下版本存在严重的管理员认证绕过漏洞,攻击者可未授权访问管理面板。 > > **请立即更新到 v1.1.249+ 版本**,或迁移到新一代项目 **[CRS 2.0 (sub2api)](https://github.com/Wei-Shaw/sub2api)**

Alternatives in Git

  • Analysis Claude Code — GitHub Repo stars Complete reverse engineering research and analysis of Claude Code v1.0.33 Reverse engineerin 35k ★
  • n8n MCP — GitHub Repo stars MCP for Claude Desktop/Code to build n8n workflows n8n workflow integration 15.5k ★
  • Git MCP — GitHub Repo stars Free open-source remote MCP server for any GitHub project Git integration MCP 7.8k ★

README

Claude Relay Service

[!CAUTION] **安全更新通知**:v1.1.248 及以下版本存在严重的管理员认证绕过漏洞,攻击者可未授权访问管理面板。

**请立即更新到 v1.1.249+ 版本**,或迁移到新一代项目 **[CRS 2.0 (sub2api)](https://github.com/Wei-Shaw/sub2api)**

[](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://redis.io/) [](https://www.docker.com/) [](https://github.com/Wei-Shaw/claude-relay-service/actions/workflows/auto-release-pipeline.yml) [](https://hub.docker.com/r/weishaw/claude-relay-service)

**🔐 自行搭建Claude API中转服务,支持多账户管理**

[English](README_EN.md) • [快速开始](https://pincc.ai/) • [演示站点](https://demo.pincc.ai/admin-next/login) • [公告频道](https://t.me/claude_relay_service)


💎 Claude/Codex 拼车服务推荐

平台 服务 介绍
pincc.ai ✅ Claude Code
✅ Codex CLI 提供稳定的 Codex CLI 拼车服务

**全新上线 2API 渠道**:接入CC的效果媲美官方 Anthropic Console 账号,暂不支持 PDF 识别功能 💰 单价:0.8元=1美金额度 |


⚠️ 重要提醒

**使用本项目前请仔细阅读:**

🚨 **服务条款风险**: 使用本项目可能违反Anthropic的服务条款。请在使用前仔细阅读Anthropic的用户协议,使用本项目的一切风险由用户自行承担。

📖 **免责声明**: 本项目仅供技术学习和研究使用,作者不对因使用本项目导致的账户封禁、服务中断或其他损失承担任何责任。

🤔 这个项目适合你吗?

  • 🌍 地区限制: 所在地区无法直接访问Claude Code服务?
  • 🔒 隐私担忧: 担心第三方镜像服务会记录或泄露你的对话内容?
  • 👥 成本分摊: 想和朋友一起分摊Claude Code Max订阅费用?
  • ⚡ 稳定性: 第三方镜像站经常故障不稳定,影响效率 ?

如果有以上困惑,那这个项目可能适合你。

适合的场景

✅ **找朋友拼车**: 三五好友一起分摊Claude Code Max订阅 ✅ **隐私敏感**: 不想让第三方镜像看到你的对话内容 ✅ **技术折腾**: 有基本的技术基础,愿意自己搭建和维护 ✅ **稳定需求**: 需要长期稳定的Claude访问,不想受制于镜像站 ✅ **地区受限**: 无法直接访问Claude官方服务


💭 为什么要自己搭?

现有镜像站可能的问题

  • 🕵️ 隐私风险: 你的对话内容都被人家看得一清二楚,商业机密什么的就别想了
  • 🐌 性能不稳: 用的人多了就慢,高峰期经常卡死
  • 💰 价格不透明: 不知道实际成本

自建的好处

  • 🔐 数据安全: 所有接口请求都只经过你自己的服务器,直连Anthropic API
  • ⚡ 性能可控: 就你们几个人用,Max 200刀套餐基本上可以爽用Opus
  • 💰 成本透明: 用了多少token一目了然,按官方价格换算了具体费用
  • 📊 监控完整: 使用情况、成本分析、性能监控全都有

🚀 核心功能

基础功能

  • ✅ 多账户管理: 可以添加多个Claude账户自动轮换
  • ✅ 自定义API Key: 给每个人分配独立的Key
  • ✅ 使用统计: 详细记录每个人用了多少token

高级功能

  • 🔄 智能切换: 账户出问题自动换下一个
  • 🚀 性能优化: 连接池、缓存,减少延迟
  • 📊 监控面板: Web界面查看所有数据

...