About this project

RouteTok is a local-first inference router with OpenAI- and Anthropic-compatible APIs. It combines a resilient multi-provider proxy, an operations dashboard, and a standalone model Fieldbook in one dependency-light Node.js service. ### Three Surfaces, One Router - **Proxy (`/v1`)**: Gives existing OpenAI and Anthropic clients one stable endpoint with explicit routing, health-aware failover, canonical model IDs, and usage metadata. - **Dashboard (`/dashboard`)**: Operates providers, credentials, model catalogs, route orders, custom cascades, health circuits, costs, live requests, and retained telemetry. - **Sandbox (`/sandbox`)**: Provides the standalone Model Fieldbook for Chat, Compare, Room, Evaluate, Images, and browser-local multi-agent Studio workflows. ### Highlights - OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages compatibility - Health-aware pre-output fallback without splicing streams across models - Virtual routes: `auto`, `best`, `free`, plus ordered custom cascades - Provider-isolated credentials and canonical routes such as `openrouter:model-id` - Explicit enablement for paid or unknown-price external models - Live request telemetry, historical metrics, TTFT, throughput, tokens, cache activity, and cost - Browser-local Fieldbook notes, evaluations, rooms, scratchpads, and virtual Studio projects - Opaque, network-blocked HTML/SVG/canvas previews and ephemeral generated media ### Quick Start Requirements: Node.js 22 or newer for a native install, or Docker Engine with Docker Compose for container deployment.