Status: [UNTESTED] Endpoints found: http://127.0.0.1:8787/v1/chat/completions http://127.0.0.1:8787/v1/models http://127.0.0.1:8787/v1/messages http://127.0.0.1:8787/v1/responses Source: https://github.com/hawklithm/workbuddy2api # WorkBuddy2API > A local proxy exposing WorkBuddy, Trae CN, Loomy, and Qoder CN/Global models through OpenAI, Anthropic, and Responses compatible APIs. > **中文版文档见 [README_zh.md](README_zh.md).** Login is provided by `buddy-agent-auth` and check-in by `buddy-agent-checkin`; both are available on PyPI and installed as dependencies. Python 3.10 or later is required. For unexplained Windows process exits, use the [independent process monitor](docs/external-process-monitor.md) to collect uv/Python exit codes, lifecycle, memory, health, and available Windows events without restarting the proxy. The experimental Trae CN OpenAI endpoints are `GET /trae/v1/models` and `POST /trae/v1/chat/completions`. They use linked Trae accounts; if multiple accounts exist, use the `X-Trae-Account-Id` header for the standalone Trae endpoints or configure per-model routing for the unified endpoints. Account IDs are available as `accounts[].id` from the local `GET /admin/api/trae/accounts` endpoint. Model lists are cached per account for six hours; `GET /trae/v1/models?refresh=true` forces a refresh. The response's `source` and `stale` fields identify upstream data and fallbacks; the static fallback can be outdated and does not prove account access. Supply a Trae model name and `messages` for chat. Streaming and non-streaming responses are supported; the standalone Trae endpoint accepts Chat Completions; the unified /v1 endpoint also converts Responses and Anthropic requests. Basic text generation was tested against a real account; tool calls have only been tested offline. Trae usage is separate from WorkBuddy account selection. The account management page can query remaining WorkBuddy and Trae CN credits per account on demand, including package details. Unreadable balances and failed queries are not treated as zero. Qoder CN and Global accounts support persistent credit/check-in status, manual claims, token keepalive, and an independent automatic check-in setting (off by