| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Use your WorkBuddy / CodeBuddy (Tencent) subscription as local OpenAI- and Anthropic-compatible APIs.
Requires Git and Docker Compose. The prebuilt GHCR image includes the WebUI; no local build is needed.
git clone https://github.com/maiphucgiang/codebuddy2api.git
cd codebuddy2api
cp .env.example .envEdit .env: set CODEBUDDY2API_KEY to your own random key and pick the image. Preserve an existing .env on upgrades:
CODEBUDDY2API_IMAGE=ghcr.io/maiphucgiang/codebuddy2api:latestdocker compose pull
docker compose up -d --no-buildlatest tracks stable releases; pin a published version tag for reproducible deployments. Image features belong to that version, not to unmerged source branches.
First use:
The template binds to localhost only. Configure HTTPS and restrict network access before allowing remote connections; keep and securely back up the auth/ data directory. To run current source or log in from a terminal instead, see the deployment guide.
| Protocol | Base URL |
|---|---|
| OpenAI Chat / Responses | http://127.0.0.1:8787/v1 |
| Anthropic Messages | http://127.0.0.1:8787 |
Codex CLI, Claude Code / CC Switch and other client examples →
. ├── converter.py # Gateway entry: protocol adaptation, routing, scheduling ├── app/ # Management API, credentials, catalogs, audit and policy modules ├── web/ # WebUI frontend (React/TypeScript; build output served by the gateway) ├── tests/ # Offline regression suites ├── docs/ # User guides, English and Chinese ├── examples/ # Client configuration examples ├── scripts/ # Version and dependency-lock tooling ├── Dockerfile # Multi-stage image: frontend build + Python runtime ├── docker-compose.yml # Recommended deployment ├── .env.example # Every runtime environment variable, annotated └── .github/workflows/ # CI: tests, image publishing, CodeQL
| Guide | Contents |
|---|---|
| WebUI guide | Accounts, model routing, audit logs, settings and backups |
| Deployment | Published images, upgrades, reverse proxy/HTTPS, local setup and CLI login |
| Client configuration | Codex CLI, Claude Code, CC Switch and generic clients |
| Advanced reference | Options, APIs, model scheduling, request limits and troubleshooting |
For personal learning only — no commercial use. Not affiliated with Tencent, WorkBuddy, CodeBuddy, OpenAI, or Anthropic. This project only calls official APIs of accounts you are logged into; use it solely with subscriptions you legally own. You are solely responsible for your account, credentials, and all associated risks.
Thanks to the LINUX DO community for providing an open and friendly platform for technical discussions.
| Back | FazBrowse Home | New Git URL |