API Gateway & Developer Platform for the Wraith Protocol managed platform. Handles developer authentication, API key management, rate limiting, usage metering, billing, and proxies agent requests to Spectre (TEE).
- Framework: NestJS
- Database: PostgreSQL
- Cache: Redis
- Auth: Passport.js (Google OAuth, GitHub OAuth, email/password)
- Billing: Stripe
- Proxy: HTTP proxy to Spectre TEE
- Node.js 22+
- pnpm 9+
- PostgreSQL 16+
- Redis 7+
pnpm installcp .env.example .env
# Edit .env with your values# Start dependencies
docker compose up db redis -d
# Start dev server
pnpm start:devpnpm buildpnpm testdocker compose upGET /health— Health checkPOST /auth/register— RegisterPOST /auth/login— LoginGET /auth/me— Current developer profileGET /teams— List teamsPOST /teams/:id/keys— Create API keyGET /billing/plans— List plansGET /usage/summary— Usage summary/v1/*— Proxied to Spectre (API key auth)