AI API Gateway Platform - 将 AI 订阅配额分发和管理
-
计费头 CCH 签名:基于 xxHash64 的可选 CCH 签名替代默认占位符,管理后台可开关
-
计费头版本同步:x-anthropic-billing-header 中的 cc_version 与 User-Agent 指纹保持一致
-
Channel 服务重构:拆分长函数(Update/buildCache/Create),提取共享校验逻辑,计费验证下沉至 Service 层
-
OpenAI 网关内容级会话哈希:非 Codex 客户端在无显式会话信号时,基于请求内容生成稳定路由种子 (#1421)
-
Go 版本升级至 1.26.2,修复 6 个标准库 CVE(crypto/x509, crypto/tls, archive/tar, html/template)
-
修复非 CC 客户端 OAuth 伪装被 Anthropic 检测为第三方应用的问题(补全 claude-code beta 头 + system 数组格式)
-
修复 OAuth refresh token 竞态条件导致误判 invalid_grant 并永久标记账号异常的问题 (#1382)
-
修复非流式响应路径 SSE 检测仅限 OAuth 账号,导致 API Key 账号空 output 透传的问题 (#1493)
-
修复 OpenAI 网关空 base64 图片载荷导致上游报错的问题 (#1417)
-
修复 Gemini Google Search grounding 工具在 Claude 兼容层和 antigravity 中被错误丢弃的问题 (#1418)
-
修复多处 errcheck lint 告警
📥 Installation
Docker:
# Docker Hub
docker pull weishaw/sub2api:0.1.110
# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.1.110One-line install (Linux):
curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bashManual download:
Download the appropriate archive for your platform from the assets below.