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 @custom-router/web
This 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.
A managed hosted version is available with automatic updates, no infrastructure setup, and a free tier to get started. View plans →
Install dependencies, copy the example environment file, and run the web app locally.
npm install
npm run typecheck
npm run dev -w @custom-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: "planning-backend"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/responsesPOST /api/v1/completionsGET /api/v1/modelsAdditional setup and release guidance lives in README, quickstart, and release process.