WorkBuddy 国际国内多账号反代网关,支持 Codex / Claude Code / DSH与标准 OpenAI 客户端。
# Add to your Claude Code skills
git clone https://github.com/ardeyouxipianyi/workbuddy2api-hubGuides for using api integration skills like workbuddy2api-hub.
Last scanned: 9/17/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-17T09:14:54.352Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how workbuddy2api-hub compares with popular alternatives.
workbuddy2api-hub is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ardeyouxipianyi. WorkBuddy 国际国内多账号反代网关,支持 Codex / Claude Code / DSH与标准 OpenAI 客户端。. It has 961 GitHub stars.
Yes. workbuddy2api-hub passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/ardeyouxipianyi/workbuddy2api-hub" and add it to your Claude Code skills directory (see the Installation section above).
workbuddy2api-hub is primarily written in Python. It is open-source under ardeyouxipianyi on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh workbuddy2api-hub against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
把腾讯 www.workbuddy.ai(国际版)与 codebuddy.cn(国内版)的原生服务封装成标准 OpenAI 兼容接口(Chat Completions / Responses)与原生 Anthropic Messages 接口,并补齐多账号调度与运维能力:
/v1/models;derive_id):以账号 UID 稳定派生机器码与会话标识,同一账号不漂移、不同账号互不关联;⚡ Vibe Coding 产物:本项目为 100% Vibe Coding 协同产物——人类开发者提出架构与业务意图,AI 助手端到端完成逆向分析、链路调度、WAF 指纹脱敏与界面编写。
Windows 双击 start-wb-proxy.bat,保持窗口运行;macOS 双击 start-wb-proxy.command(首次被 Gatekeeper 拦截时右键 →「打开」确认一次),或在终端执行 ./start-wb-proxy.sh [端口](默认 8788)。
启动后:API 地址 http://127.0.0.1:8788/v1,Web 看板 http://127.0.0.1:8788/。首次启动还没有账号,打开看板点「+ 添加账号 (OAuth)」完成授权即自动入库。
zip 解压后若提示权限不足,先执行一次:
chmod +x start-wb-proxy.sh start-wb-proxy.command start-wb-proxy-lan.sh start-wb-proxy-lan.command allow-firewall.command
看板需要面板访问密码(默认 admin),它与 API Key 相互独立:密码只用于打开看板,可在「设置」页修改(或启动时 --panel-password 指定),以 PBKDF2-SHA256 摘要存于 accounts/settings.json(不存明文),登录态只留在浏览器会话里。
本机 / 受信局域网自用可带 ?pwd=面板密码 免手输直接进面板(如 http://127.0.0.1:8788/?pwd=admin);公网暴露时不要用——密码会留在浏览器历史与反向代理日志里。注意它和局域网共享的 ?key= 不同:?key= 只把 API Key 存给 /v1 用,不会自动登录面板。首次登录后请立即改掉默认密码。
start-wb-proxy-lan.bat;macOS 双击 start-wb-proxy-lan.command,或 ./start-wb-proxy-lan.sh [端口] [Key];http://<本机局域网IP>:8788/v1;带密钥直达面板 http://<IP>:8788/?key=生成的Key;accounts/settings.json 并打印在终端,重启复用;也可用第二个参数指定自己的 Key;./allow-firewall.command 可查看状态并加白。「设置」页可管理多个 Key,每个 Key 独立出口——不同客户端各用各的 Key,国内外流量互不干扰:
deepseek*、gpt-6-astra,支持 *,逗号分隔),留空不限;不在列表里的请求本机直接返回 400,不送达上游、不消耗额度;deepseek-v4-pro)直接返回可读 400,而不是上游晦涩的 WAF 报错;--api-key 自动失效。预编译双架构镜像(linux/amd64、linux/arm64)发布在 GHCR 与 Docker Hub,无需克隆代码、无需本地编译:
方式一:一键脚本(推荐)
# 官方源(可直连 GitHub 环境):
curl -fsSL https://raw.githubusercontent.com/ardeyouxipianyi/workbuddy2api-hub/main/quick-deploy.sh | bash
# 国内网络 / NAS 加速(Connection reset 时用):
curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/ardeyouxipianyi/workbuddy2api-hub/main/quick-deploy.sh | sudo bash
NAS(如飞牛 fnOS)普通用户没有 Docker 权限时,把结尾的 bash 换成 sudo bash。再次运行同一条命令即平滑升级,账号与用量数据不受影响。
方式二:NAS / 面板单文件 Compose
在 NAS 或面板的 Compose 界面新建项目并粘贴以下内容保存启动,无需拉取源码:
services:
wb-proxy:
image: ghcr.io/ardeyouxipianyi/workbuddy2api-hub:latest # 或 ardeyouxipianyi/workbuddy2api-hub:latest
container_name: wb-proxy
restart: unless-stopped
ports:
- "8788:8788" # 左侧宿主端口可自选;右侧必须与下面的 PORT 一致
environment:
- HOST=0.0.0.0
- PORT=8788
# - API_KEY=your_secret_key # 留空则自动生成并打印在启动日志
- TZ=Asia/Shanghai
volumes:
- ./accounts:/app/accounts # 账号凭证与配置(更新/重建容器不丢)
- ./usage:/app/usage # 用量流水日志(更新/重建容器不丢)
更新:面板里点「拉取最新镜像并重启」,或 docker compose pull && docker compose up -d。
方式三:Watchtower 自动静默更新
docker run -d --name wb-proxy-watchtower --restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower:latest --interval 86400 --cleanup wb-proxy
补充与排错
./accounts 与 ./usage 由宿主机挂载,更新或重建容器都不丢数据;docker run -d --name wb-proxy --restart unless-stopped -p 8788:8788 \
-v $(pwd)/accounts:/app/accounts -v $(pwd)/usage:/app/usage \
ghcr.io/ardeyouxipianyi/workbuddy2api-hub:latest
--lan 启动,无显式 API_KEY 时自动生成 Key 写入 ./accounts/settings.json 并打印在日志里:docker compose logs wb-proxy | grep -i "api key";ardeyouxipianyi/workbuddy2api-hub 会去 Docker Hub 找并报 pull access denied,正确写法是 ghcr.io/ardeyouxipianyi/workbuddy2api-hub:latest(GHCR 公开包,拉取无需登录);0:0)运行;想以宿主用户跑就设 PUID / PGID(或 --user $(id -u):$(id -g)),并确保两个挂载目录对该 uid 可写;HEALTHCHECK(每 30s 探一次 /health),docker ps 的 STATUS 列会显示 healthy / unhealthy;docker compose -f docker-compose.build.yml up -d --build。python tests/run_all.py # 全部套件
python tests/run_all.py realm # 只跑名字里含 realm 的
node,缺失时会跳过并提示。tests/_mobile_check.py 是独立的 Playwright 手机/桌面布局检查器(需自行安装 Playwright),按需手动运行,不在上面的套件集里。.github/workflows/tests.yml)跑同一条命令:Ubuntu 上 python 3.9 与 3.12(3.9 是本项目声称的最低版本),Windows 上 python 3.12;推送 v* tag 时额外断言 tag == 源码版本(-ci 演练 tag 豁免)。对官方本地配置清单(50+ 底层模型)做清洗:剔除行内补全专用模型(codewise-*、completion-gf、hunyuan-3b/7b 等)与多云专线变体(*-volc、*-lkeap 等),严格对齐官方 Windows 桌面端,并宣告每个模型的上下文窗口、单次最大输出、视觉支持、工具调用与推理档位。
hy4-preview-f、hy3、deepseek-v4.1-flash、gpt-6-astra、gpt-5.6-sol、gpt-5.6-terra、gpt-5.6-luna、gpt-5.5、gpt-5.4、grok-4.7、gemini-3.5-flash、glm-5.3-flash、glm-5.3、glm-5.2、kimi-k3、kimi-k2.6、kimi-k2.8-previewhy4-preview-f、hy3、deepseek-v4.1-flash、deepseek-v4-pro、glm-5.3、glm-5.3-flash、glm-5.2、glm-5.1、glm-5v-turbo、minimax-m3、kimi-k3-1、kimi-k2.8-preview、kimi-k2.7、kimi-k2.6清单与上游 GET /v3/config 的 agents[cli].models 保持同步(接口不可用时依次回落到桌面端缓存文件、内置快照);过滤规则:去掉 5 个档位别名与 auto、去掉 -sg / -x 变体、同名的只留 0.00 倍率那一档。上游新上架的模型无需发版即出现在 /v1/models。
同名模型(如
deepseek-v4.1-flash)暂未实现跨国内 / 国际账号的混合轮询:两个区域作为独立出口分别配置与调度,请求只走当前所选网关。这是出站指纹对齐与账号防风控的取舍,待长期实测确认稳定后再补。
derive_id)国际版与国内版共用同一套算法内核:以账号 UID 结合固定业务盐值单向哈希派生机器码与会话标识——同一账号每次出站都来自同一台虚拟设备(不随机漂移),不同账号之间彼此独立(阻断跨账号关联风控)。
chat_request_send),点亮官方成长中心连登天数与热力墙;自动闭环检查昨日漏签(有补签卡则自动补签保连登)、领取新手礼包/补偿、兑换 7d/14d/28d 连登档位奖励,并自动抽完抽奖次数;常驻后台,按固定整点执行自动化运维排程:
四条账号级护栏放在同一张表里,每行一条、每列一个作用域:
| 护栏 | 作用 |
|---|---|
| 保留积分 | 账号余额低于该值时不再接单,避免余额被用尽后触发上游的提醒短信 |
| 每日 Token 限额 | 账号当日消耗的 token 达到该值时暂停接单,请求自动切到其他账号 |
| 每日积分限额 | 账号当日消费的积分达到该值后只服务免费模型,需要花积分的模型自动切号 |
| 按模型每日 Token 限额 | 账号在单个模型上当日消耗的 token 达到该值时只禁该模型,同账号其他模型照常 |
0 表示关闭(默认值);四条都按本地时间 0 点解封,只在请求路径生效(定时任务不受影响),且都是单账号独立计数。模型 · N tok 达限 标记。429(文案说明本地 0 点恢复,Retry-After 指向 0 点)。accounts/settings.json 里的一组 limits 映射({"global": …, "intl": …, "cn": …},null 表示继承全局);旧版写在外层的四个扁平键会在第一次读取时自动折入。把每条请求的 token 消耗按 OpenRouter 公布的模型价折算成等价金额,回答「这些 token 放在 OpenRouter 上值多少钱」——与账号实际扣除的积分是两个口径,看板里并列显示:
completion_tokens(已包含推理 token,不另计)。按条件定价的模型(按输入长度或按 UTC 时段)按每条请求取最紧的那一档。wb_pricing.py 另内嵌一份快照作出厂价。-lkeap / -taiji / -volc / -sg 等,仍要求唯一命中),继承可在设置里整体关掉。/pricing 列出未定价模型及分类(别名 / OpenRouter 无对应 / 剥后缀后无唯一基准)与相似候选(仅建议,不自动采用),可在「设置 → 定价刷新」为某条手填 OpenRouter id 并登记(写 pricing-overrides.json,不改源码,登记后立即取价)。*)。—,不猜数字。Codex App 这类客户端会在 Responses 请求里声明 web_search / web_fetch,而上游没有对应的执行器——声明送上去只会拿到一句 unsupported call。打开「设置 → 本地网络工具」后,网关把那份声明换成自己的同名 function,拦下模型的调用并在本地执行(搜索在 Duck