claude/codex proxy更新v2.0.22 换了新皮,快速添加渠道,多渠道智能调度

前一段受某上游不可用的影响,还是加上了多渠道调度的功能,顺手换了一张新皮,希望大家喜欢 :partying_face:

项目地址: GitHub - BenedictKing/claude-proxy: only one claude code proxy

新增提供直接下载的版本: Releases · BenedictKing/claude-proxy · GitHub

最新版本支持gpt 5.2,添加了/compact接口转发

添加渠道默认是快速添加模式,只需要丢进去base url和一个key就可以快速配置,方便混论坛/QQ捡点大善人的公开key来用。

已加入总用量统计图

支持同站多端点

182 个赞

感谢分享。

7 个赞

太强了,大佬

7 个赞


这个文件删了,但是Dockerfile里面没删,会报错

11 个赞


这也有问题
看到最新提交了,已经修复了

4 个赞

:ok_hand:已经修改并推送,现在docker build应该没问题了

6 个赞


Zeabur 搭建好像有点问题

3 个赞
\033[0;32m📦 构建生产版本...\033[0m 
internal/config/config.go:15:2: missing go.sum entry for module providing package github.com/fsnotify/fsnotify (imported by github.com/BenedictKing/claude-proxy/internal/config); to add:
        go get github.com/BenedictKing/claude-proxy/internal/config
internal/converters/chat_to_responses.go:10:2: missing go.sum entry for module providing package github.com/tidwall/gjson (imported by github.com/BenedictKing/claude-proxy/internal/converters); to add:
        go get github.com/BenedictKing/claude-proxy/internal/converters
internal/converters/chat_to_responses.go:11:2: missing go.sum entry for module providing package github.com/tidwall/sjson (imported by github.com/BenedictKing/claude-proxy/internal/converters); to add:
        go get github.com/BenedictKing/claude-proxy/internal/converters
internal/middleware/auth.go:9:2: missing go.sum entry for module providing package github.com/gin-gonic/gin (imported by github.com/BenedictKing/claude-proxy); to add:
        go get github.com/BenedictKing/claude-proxy
main.go:16:2: missing go.sum entry for module providing package github.com/joho/godotenv (imported by github.com/BenedictKing/claude-proxy); to add:
        go get github.com/BenedictKing/claude-proxy
make[1]: Leaving directory '/src/backend-go'

还是构建不了 :rofl:

4 个赞

well,想集邮我怎么编辑不了啦:tieba_009:

5 个赞

我弄个主机编译一下试试看

2 个赞

主贴过期了?

3 个赞

@magicdqq 麻烦再试试看,应该少个go mod tidy,现在加上了。

4 个赞

build成功了,也启动容器了
但是无法打开页面,容器报错:

stderr: 2025/12/08 21:30:24 没有找到 .env 文件,使用环境变量或默认值
stderr: 2025/12/08 21:30:24 ✅ 会话管理器已初始化
stderr: 2025/12/08 21:30:24 ✅ 多渠道调度器已初始化 (失败率阈值: 50%, 滑动窗口: 10)
stdout: 
stdout: 🚀 Claude API代理服务器已启动
stdout: 📌 版本: v2.0.25-go
stdout: 🕐 构建时间: 2025-12-08_12:55:42
stdout: 📍 本地地址: http://localhost:3000
stdout: 🌐 管理界面: http://localhost:3000
stdout: 📋 Claude Messages: POST /v1/messages
stdout: 📋 Codex Responses: POST /v1/responses
stdout: 💚 健康检查: GET /health
stdout: 📊 环境: production
stdout: 
stdout: [GIN] 2025/12/08 - 21:30:55 | 200 |     168.911µs |       127.0.0.1 | GET      "/health"
stderr: 
stderr: 
stderr: [31m2025/12/08 21:31:06 [Recovery] 2025/12/08 - 21:31:06 panic recovered:
stderr: runtime error: invalid memory address or nil pointer dereference
stderr: /usr/local/go/src/runtime/panic.go:261 (0x450317)
stderr: /usr/local/go/src/runtime/signal_unix.go:881 (0x4502e5)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:971 (0x7d4ddc)
stderr: /src/backend-go/internal/handlers/frontend.go:31 (0x81c7c5)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x7d3e6a)
stderr: /src/backend-go/internal/middleware/auth.go:49 (0x839098)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x7d3e6a)
stderr: /src/backend-go/internal/middleware/cors.go:35 (0x8396b6)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x7d99f9)
stdout: [GIN] 2025/12/08 - 21:31:06 | 500 |     960.241µs |      172.24.0.1 | GET      "/"
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0x7d99e7)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x7d8b24)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 (0x7d8b0b)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x7d7f11)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 (0x7d7980)
stderr: /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 (0x7d7611)
stderr: /usr/local/go/src/net/http/server.go:3142 (0x690f4d)
stderr: /usr/local/go/src/net/http/server.go:2044 (0x68d4c7)
stderr: /usr/local/go/src/runtime/asm_amd64.s:1695 (0x46d5a0)
stderr: [0m
stdout: [GIN] 2025/12/08 - 21:31:25 | 200 |      49.325µs |       127.0.0.1 | GET      "/health"
stdout: [GIN] 2025/12/08 - 21:31:55 | 200 |      52.701µs |       127.0.0.1 | GET      "/health"
stdout: [GIN] 2025/12/08 - 21:32:25 | 200 |     123.477µs |       127.0.0.1 | GET      "/health"
stdout: [GIN] 2025/12/08 - 21:32:55 | 200 |      62.984µs |       127.0.0.1 | GET      "/health"
stdout: [GIN] 2025/12/08 - 21:32:57 | 500 |     543.504µs |      172.24.0.1 | GET      "/"

浏览器尝试打开页面之后才报错的,不打开不报错,刷新一次报错一次

4 个赞

这下应该好了,麻烦更新试试

2 个赞

目前没有需求,不过佬这个UI看着真好看

6 个赞

可以了,用上了 :partying_face:

3 个赞

这UI界面做的太好看了(òωó):+1:

3 个赞

这类产品我用下来很迷的主要有2点,1个是优先级的逻辑和预期的不一致,1个是渠道健康度的判定一直很不完善,各种错误码和内容都是渠道自定义的,可能需要一直花时间适配。

3 个赞

优先级的目的就是让用户无感,最近用的好的渠道就一直用(有缓存肯定舒服)。如果连续失败了就继续找下一个渠道。

4 个赞

我现在用的是claude relay service,主要的问题就是一直会重试一个用不了的渠道,不会迁移,优先级也很混乱,当然我知道是有一套判断逻辑的,但是其实工作起来因为各种错误的判断条件,导致一直需要人工的管理渠道的状态,很费劲。anyway,我想说的此类产品的痛点还是宣称的负载均衡这个条件判断不好,还不是缓存的问题,就是用不了。

4 个赞