Thriving Thriving HTML HT Python PY
↑ 48 ?
Coding2API RobbsLuo/Coding2API

Wraps ten upstream channels (CodeBuddy mainland China site and international version, TRAE SOLO, OpenCode Zen, Kilo Gateway, Qoder, CodeArts, OfficeAce, 小浣熊 (SenseTime Raccoon), and WPS 灵犀 (Lingxi)) as OpenAI / Responses / Anthropic compatible APIs, with a shared credential pool, health-based scheduling and session stickiness, model lists loaded per channel credential, quota probing and daily check-in, growth center automation, and per-user usage statistics. Reverse-engineered interfaces, for study and research only.

Translated from Chinese by Claude · original on GitHub ↗

https://github.com/RobbsLuo/Coding2API/pkgs/container/coding2api ↗
HEALTH ? 96 / Healthy
// solo builder// hidden gem// release machine api-gatewaycodebuddyfastapillmopenai-apisqlitetraeopencode-zencoding-agentcodearts ?

// readme

Coding2API

Ten channels, namely CodeBuddy (mainland China and international, as two separate channels), TRAE SOLO, OpenCode Zen, Kilo, Qoder, CodeArts, OfficeAce, 小浣熊, and 灵犀, are wrapped into an OpenAI-compatible API with a shared credential pool, unified model names and scheduling, and per-user usage statistics.

[!WARNING] Reverse-engineered interfaces, for study and research only, with no security audit performed. Public deployment requires a reverse proxy, authentication, and an IP allowlist.

Features

  • OpenAI-compatible endpoints: /v1/chat/completions (streaming / non-streaming), /v1/responses (Codex CLI), /v1/messages (Claude Code), /v1/models (including single-model lookup), /v1/user/balance.
  • Unified scheduling: flat names pick credentials by health; model@channel forces a specific channel. Priority: free channels, then fewest in-flight requests, then quota expiring soonest, then health plus tiered cooldown, then highest balance. Admins can set a weight on a credential (-1000..1000). It only reorders within the same health tier (positive values preferred, negative values as backup) and never pushes…