A student-maintained fork that turns Tencent CodeBuddy into an OpenAI API
An unofficial Go gateway that wraps your own Tencent WorkBuddy accounts as OpenAI/Anthropic-compatible endpoints, with a web panel and a very honest README.

What it does
WorkBuddy2API Panel is a self-hosted reverse-proxy gateway that takes Tencent CodeBuddy (copilot.tencent.com) accounts — added via OAuth device authorization — and exposes them as standard POST /v1/chat/completions, /v1/responses, and /v1/messages endpoints. It’s built for personal multi-account use: a rotating account pool, circuit breaking, cooldowns, and session stickiness so multi-turn conversations don’t hop accounts. It also wraps WorkBuddy’s media models as image/video generation endpoints plus an MCP endpoint, and runs scheduled chores (sign-ins, keep-alive, growth tasks) to keep accounts healthy.
The interesting bit
The README is the real artifact here: it documents a fork chain where every upstream has been deleted or abandoned, and the current maintainer — a self-described student with a weekend job — discloses that issues, reviews, and fixes are handled with AI coding agents. It’s the most transparent look at hobby-project maintenance economics you’ll read this week. Technically, the scheduling layer (expiring-credits-first pool selection, error-classified cooldowns, upstream-degradation sliding-window alerts) is genuinely thoughtful inherited design.
Key highlights
- OpenAI, Anthropic, and Codex-style endpoints; model names passed through untouched,
claude-*not rewritten - Account pool with weighted-random/round-robin/sequential strategies, 429 exponential backoff, 402 hard cooldown until 04:00 next day
- Session stickiness via
conversation_idwith optional Redis mirroring to survive restarts - Image generation, image editing, async video tasks, and a
/mcpJSON-RPC endpoint for agent tooling - Embedded web panel: account pool visualization, hot-reloading config, daily log export, credit-task automation (17/18 growth tasks)
Caveats
- Unofficial gateway using non-official clients — the README itself warns accounts may be rate-limited or banned, and Tencent could shut the channel down at any time
- Maintenance is explicitly “as energy permits” from a student; the direct upstream already stopped maintaining because of abuse (resold quotas, bulk fake accounts)
Verdict
Worth a look if you have your own CodeBuddy accounts and want them behind one OpenAI-shaped door — read the compliance notes first. Skip it if you’re hoping for a supported product or anything you’d point at other people’s accounts.
Frequently asked
- What is misakano7545/workbuddy2api-panel?
- An unofficial Go gateway that wraps your own Tencent WorkBuddy accounts as OpenAI/Anthropic-compatible endpoints, with a web panel and a very honest README.
- Is workbuddy2api-panel open source?
- Yes — misakano7545/workbuddy2api-panel is open source, released under the MIT license.
- What language is workbuddy2api-panel written in?
- misakano7545/workbuddy2api-panel is primarily written in Go.
- How popular is workbuddy2api-panel?
- misakano7545/workbuddy2api-panel has 1.1k stars on GitHub.
- Where can I find workbuddy2api-panel?
- misakano7545/workbuddy2api-panel is on GitHub at https://github.com/misakano7545/workbuddy2api-panel.