Team9-2API is a Team9 -> OpenAI-compatible proxy with:
- protected
GET /v1/models - protected
POST /v1/chat/completions - both non-stream and stream support
- authenticated sketch-style admin WebUI
- Docker / GHCR / Zeabur deployment path
- Canonical model IDs that prefer real names like
chatgpt,gemini, andclaude - Authenticated admin UI for model discovery, refresh, and prompt probing
- Authenticated proxy API using a single admin key
- OpenAI-compatible SSE streaming for
stream=true - Team9 polling adapter that filters status-only messages such as
Execution complete.
GET /healthzis public- All other routes require auth
- Proxy routes require:
Authorization: Bearer <ADMIN_API_KEY>- Admin WebUI uses the same key on the login page and receives an httpOnly session cookie
See .env.example.
Real secrets must not be committed to git. In production, put them in Zeabur Variables only.
npm install
npm test
npm run devDefault local address:
http://127.0.0.1:3000
GET /healthzGET /v1/models
Authorization: Bearer <ADMIN_API_KEY>POST /v1/chat/completions
Authorization: Bearer <ADMIN_API_KEY>
Content-Type: application/jsonExample request:
{
"model": "claude",
"stream": true,
"messages": [
{ "role": "user", "content": "Say hello." }
]
}/login/admin
Protected admin APIs:
POST /api/admin/loginPOST /api/admin/logoutGET /api/admin/meGET /api/admin/modelsPOST /api/admin/models/discoverPOST /api/admin/models/refreshPOST /api/admin/probe/send
Build locally:
docker build -t team9-2api:local .Run locally:
docker run --rm -p 3000:3000 --env-file .env team9-2api:localThe repo includes .github/workflows/ghcr.yml, which publishes:
ghcr.io/thewisewolfholo/team9-2api:latest
Recommended path:
- Push to GitHub
- Wait for GHCR image build
- Use Zeabur CLI to create a service from the GHCR image
- Mount a volume to
/app/data - Set all runtime secrets in Zeabur Variables
- Expose a domain and verify
/healthz,/v1/models, and/v1/chat/completions
- No real Team9 tokens, refresh tokens, tenant IDs, admin keys, or session secrets should appear in:
- repo files
- README examples
- GitHub Actions plaintext
- Docker build args
- frontend bundles
- GHCR images should contain code only, not runtime secrets Team9 to OpenAI-compatible proxy with authenticated admin web UI, GHCR packaging, and Zeabur deployment support.