All phases
07
AI Gateway
OpenAI-compatible API surface for all inference.
Progress
100%
Tasks done
8 / 8
0 remaining
Owner
Gateway lead
Status: complete
Tasks
Kanban for this phase. Move tasks between columns to update status.
Backlog
0
To do
0
In progress
0
In review
0
Done
8
Gateway service scaffold (Fastify + Drizzle + node-postgres, port 7004)
p0
Eng lead + AI agents1 SP
Gateway schema (6 tables: models, deployments, api_keys, requests, rate_limits, audit log)
p0
Eng lead + AI agents1.5 SP
Stub backends: chat (sync + SSE streaming), embeddings, image generation
p0
Eng lead + AI agents2 SP
API key management: issue (secret-once), list, revoke, verify on every request
p0
Eng lead + AI agents1.5 SP
Usage tracking + sliding-window rate limiting
p0
Eng lead + AI agents2 SP
Routes: /v1/models, /v1/chat/completions, /v1/embeddings, /v1/images/generations, /v1/usage, /v1/keys
p0
Eng lead + AI agents2 SP
E2E test: 50+ assertions across 13 sections (green on first run)
p0
Eng lead + AI agents1.5 SP
@aigarth/sdk → gateway end-to-end (list, chat, stream, embed)
p0
Eng lead + AI agents1.5 SP