Skip to content

Releases

v1.0.0 · Initial open-source release

Choose a tag to compare

@lszyk26 lszyk26 released this 31 Oct 00:53

First public release.

Highlights

  • OpenAI-compatible /v1/chat/completions (SSE passthrough), /v1/models, /v1/messages (Anthropic style)
  • Users: signup, email-code login, GitHub OAuth, password reset, referral rewards
  • API keys: sk-wb- prefix, count limited by plan, only a hash plus an encrypted copy stored, rotatable
  • Billing & plans: points from tokens x model multiplier, daily quota resets daily, sponsor/contributor tiers stack with a cap
  • Account pool: OAuth authorize -> self-test -> join pool -> rotate egress; session-level cn/intl split with cross-side retry
  • Payments: two epay-style drivers with signed async callbacks
  • Admin: users, orders, redeem codes, account review, live plan pricing, upstream health, settlement
  • Single-binary deploy: Go serves the built frontend itself, bash deploy/install.sh does the rest (also starts the account hub)

Deploy: see README and docs/en/DEPLOY.md. You need your own upstream account hub (contract: docs/en/UPSTREAM.md) — without it you cannot add accounts and /v1 returns 502.

License: AGPL-3.0


下载 / Downloads

文件 说明
wb2api-v1.0.0-linux-amd64.tar.gz Linux x86_64,解压得到 wb2api + dist/(静态前端,与二进制同目录)
wb2api-v1.0.0-linux-arm64.tar.gz Linux arm64,同上
wb2api-v1.0.0-source.zip 源码快照(tag 内容)
SHA256SUMS 上面三个文件的校验和
sha256sum -c SHA256SUMS
tar xzf wb2api-v1.0.0-linux-amd64.tar.gz -C /opt/wb2api
cd /opt/wb2api && WB2_LISTEN=127.0.0.1:8078 WB2_DATA_DIR=/opt/wb2api/data ./wb2api

部署要点见 docs/DEPLOY.md;需要先有上游账号 hub,否则 /v1 会返回 502(见 docs/UPSTREAM.md)。