Account auth stays in ZergAI
ZergAI remains the identity authority and mints short-lived router JWTs for workspaces and zerg service tokens.
zergrouter.com / zrouter.io
ZergRouter separates model routing from the main ZergAI app: provider credentials, quotas, usage logs, and compatibility endpoints live in a focused service that Zerg, ZTC, and ZDE can share.
curl https://zrouter.io/v1/chat/completions \
-H "Authorization: Bearer $ZERGROUTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"provider": "openai",
"model": "gpt-5.4-mini",
"messages": [
{ "role": "user", "content": "ship it" }
]
}'surface area
The public router contract is intentionally narrow. ZergAI handles accounts; ZergRouter handles model traffic and provider operational state.
ZergAI remains the identity authority and mints short-lived router JWTs for workspaces and zerg service tokens.
Workspace provider credentials are encrypted in ZergRouter, with platform environment keys as controlled fallback.
Use OpenAI-compatible, Anthropic-compatible, and legacy Zerg LLM endpoints without changing client ergonomics.
Every non-streaming route records model, provider, workspace, source, and token counts for quota and admin visibility.