1. Local setup
Install dependencies, copy the example environment file, and run the web app locally.
npm install
npm run typecheck
npm run dev -w @auto-router/webThis public repo contains the full self-hostable product: the router, admin UI, BYOK flows, ingest worker, schema, and Cloudflare deployment path. Commercial hosting, billing, and operations stay outside the repo by design.
Install dependencies, copy the example environment file, and run the web app locally.
npm install
npm run typecheck
npm run dev -w @auto-router/webProvision D1 and KV, apply the schema, then deploy the web app and ingest worker.
infra/d1/schema.sql
docs/deployment-cloudflare.mdOpen the dashboard, add a gateway, create an API key, and point any OpenAI SDK at /api/v1.
POST /api/v1/chat/completions
model: "auto"Hosted BYOK service, pricing, and internal operations are intentionally not part of this repo. Self-hosted and hosted customers use the same public API contract.
No hosted-only API behavior is introduced here. The self-hostable app and the managed BYOK service share the same external interface.
POST /api/v1/chat/completionsPOST /api/v1/responsesGET /api/v1/modelsAdditional setup and release guidance lives in README, quickstart, and release process.