Skip to content

About

把 WorkBuddy / CodeArts / Qoder / TRAE 六个 AI 订阅渠道聚合成一个本地 OpenAI 兼容网关 · Aggregate six AI coding-assistant subscriptions into one OpenAI-compatible gateway

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

FreeModelHub

把六个 AI 编程助手的订阅额度,汇聚成一个 OpenAI 兼容网关。
Aggregate six AI coding-assistant subscriptions into one OpenAI-compatible gateway.

release platform license tests

中文 · English


中文

这是什么

一个 Windows 桌面应用。把 WorkBuddy(腾讯 CodeBuddy)、CodeArts(华为云)、Qoder、TRAE 这些 AI 编程助手的账号接进来,统一成一个本地 OpenAI 兼容端点:

http://127.0.0.1:18901/v1

任何支持自定义 Base URL 的客户端(DeepSeek Harness、Cherry Studio、CC Switch、Cline……)都能直接用。

同时管三件麻烦事:

能力 说明
多账号池 同一渠道多个账号轮换,自动探活、暂停失效账号、凭据到期前续期
每日签到 定时跑签到 / 旅行 / 成长任务 / 抽奖,攒积分
用量统计 每个请求的输入 / 输出 / 思考 token、耗时、首字延迟,带可视化

界面

概览
概览 — 今日积分、任务状态、网关概况
渠道
渠道 — 六个渠道,各自的账号与模型数量
账号
账号 — 多账号池,状态与操作集中在一行
任务
任务 — 签到 / 旅行 / 成长 / 抽奖,可回溯每次结果
网关
网关 — 本机端点 + 局域网转发,两把密钥互不相通
用量
用量 — Token 趋势、模型分布、请求明细

设置
设置 — 暖沙 / 暗黑两套主题,同一套深青色骨架

六个渠道

渠道 上游 特点
WorkBuddy 国内版 copilot.tencent.com 每日签到 + 猫猫旅行 + 成长任务
WorkBuddy 国际版 workbuddy.ai 无签到体系,活跃上报是唯一积分途径
CodeArts Agent 华为云 STS 换票 + DPoP 签名,每日领积分需三层确认
Qoder api2.qoder.sh PKCE + nonce 轮换,加密推理走 WASM
Qoder 中国版 gateway.qoder.com.cn 另一套域名与 clientId,与 Qoder 不互通
TRAE trae-api-cn.mchost.guru SOLO 协议,不是 OpenAI 形状

安装

从 Releases 下载 FreeModelHub_0.1.0_x64-setup.exe。

⚠️ 关于 Windows 拦截

安装包使用自签名证书。Win11 的「智能应用控制」开启时会拦截未受信任的发布者, 且没有「仍要运行」按钮。两种解法:

  1. 右键 exe → 属性 → 底部勾选 解除锁定 → 确定
  2. 导入证书:Import-Certificate -FilePath freemodelhub.cer -CertStoreLocation Cert:\LocalMachine\Root

彻底消除只能靠 EV 代码签名证书。

从源码构建

需要 Node 24+、Rust 1.80+、MSVC 14.4x、Windows SDK 10。

npm install
npx tsc --noEmit              # 类型检查
node scripts/build-service.mjs # 服务端
node scripts/build-ui.mjs      # 前端
node scripts/prepare-desktop.mjs
npm run test                   # 130 项单元测试
npx tauri build                # 出安装包

签名(可选):

npm run sign:setup       # 首次生成自签名证书
npm run sign:installer   # 打包后签名

架构

┌─────────────────────────────────────────────┐
│ Tauri 窗口(WebView2)                       │
│   React 19 + 本地打包前端                     │
└──────────────┬──────────────────────────────┘
               │ stdout JSON 握手
┌──────────────▼──────────────────────────────┐
│ Node 24 子进程(内嵌 runtime/node.exe)       │
│  ┌────────────────────────────────────────┐ │
│  │ 渠道层    6 个适配器 + 账号池 + 凭据库   │ │
│  ├────────────────────────────────────────┤ │
│  │ 网关层    Chat / Responses / Anthropic  │ │
│  ├────────────────────────────────────────┤ │
│  │ 任务层    签到 / 旅行 / 成长 / 抽奖      │ │
│  ├────────────────────────────────────────┤ │
│  │ 存储      node:sqlite + AES-256-GCM    │ │
│  └────────────────────────────────────────┘ │
└─────────────────────────────────────────────┘

密钥存两处:本机网关 127.0.0.1:18901(不对外)与局域网转发 0.0.0.0:18326(可选开启),两把密钥不通用。

已知限制

  • Qoder 上游不返回 usage —— 这是服务端限制。本项目的 token 数是本地估算,UI 里带 ~ 标记
  • WorkBuddy 国际版部分账号可能被上游限制(11140 账号存在异常行为)
  • 仅支持 Windows

文档

完整的设计与踩坑记录在 docs/:

许可

MIT


English

What is this

A Windows desktop app that connects WorkBuddy (Tencent CodeBuddy), CodeArts (Huawei Cloud), Qoder, and TRAE accounts into a single local OpenAI-compatible endpoint:

http://127.0.0.1:18901/v1

Any client that supports a custom Base URL works — DeepSeek Harness, Cherry Studio, CC Switch, Cline, and so on.

It also handles three tedious things:

Capability Detail
Account pool Multiple accounts per channel, health checks, auto-pause on failure, credential refresh before expiry
Daily check-in Scheduled check-in / travel / growth / lottery tasks to collect credits
Usage stats Per-request input / output / reasoning tokens, latency, time-to-first-token, with charts

Screens

Overview

The six channels

Channel Upstream Notes
WorkBuddy CN copilot.tencent.com Daily check-in, cat travel, growth tasks
WorkBuddy Intl workbuddy.ai No check-in system; activity reporting is the only credit source
CodeArts Agent Huawei Cloud STS token exchange + DPoP signing
Qoder api2.qoder.sh PKCE + rotating nonce; encrypted inference via WASM
Qoder CN gateway.qoder.com.cn Separate domain and clientId, isolated from Qoder
TRAE trae-api-cn.mchost.guru SOLO protocol, not OpenAI-shaped

Install

Download FreeModelHub_0.1.0_x64-setup.exe from Releases.

⚠️ About Windows blocking

The installer uses a self-signed certificate. Windows 11 Smart App Control blocks untrusted publishers without offering a "Run anyway" button. Two workarounds:

  1. Right-click the exe → Properties → check Unblock at the bottom → OK
  2. Import the certificate: Import-Certificate -FilePath freemodelhub.cer -CertStoreLocation Cert:\LocalMachine\Root

Fully eliminating the warning requires an EV code-signing certificate.

Build from source

Requires Node 24+, Rust 1.80+, MSVC 14.4x, Windows SDK 10.

npm install
npx tsc --noEmit
node scripts/build-service.mjs
node scripts/build-ui.mjs
node scripts/prepare-desktop.mjs
npm run test                   # 130 unit tests
npx tauri build

Signing (optional):

npm run sign:setup
npm run sign:installer

Architecture

Tauri window (WebView2 + React 19) talks over a stdout JSON handshake to an embedded Node 24 process. That process hosts the channel layer (6 adapters + account pool + encrypted credential vault), the gateway layer (Chat / Responses / Anthropic), the task scheduler, and a node:sqlite store with AES-256-GCM encrypted credentials.

Two separate keys: local gateway on 127.0.0.1:18901 (loopback only) and an optional LAN relay on 0.0.0.0:18326. The two keys are not interchangeable.

Known limitations

  • Qoder's upstream returns no usage data — a server-side limitation. Token counts for Qoder are locally estimated and marked with ~ in the UI
  • Some WorkBuddy International accounts may be restricted upstream (11140 unusual account activity)
  • Windows only

License

MIT

About

把 WorkBuddy / CodeArts / Qoder / TRAE 六个 AI 订阅渠道聚合成一个本地 OpenAI 兼容网关 · Aggregate six AI coding-assistant subscriptions into one OpenAI-compatible gateway

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages