SRouter documentation

Overview

The source, mapped.

Static docs · source-grounded
Local-first AI gateway

Build on one clear endpoint.

SRouter puts one inspectable endpoint between your tools and model providers. These docs connect the product surface to the source files that make it work.

20source-mapped pages
4workspace surfaces
/v1gateway contract
Explore the workspace

One endpoint, clear boundaries.

Follow a request from the client-facing API to the provider edge without losing the boundary between transport, business decisions, and reusable runtime behavior.

01 / ClientTools and SDKs

OpenAI-compatible and Anthropic-compatible clients use the local `/v1` surface.

02 / GatewayHono API

Routes validate, authenticate, and adapt incoming requests into domain calls.

03 / RuntimeRouting and policy

Combos, fallback, quota, pricing, and logs keep provider decisions visible.

04 / EdgeProvider executors

Executors handle upstream auth, protocol differences, retries, and streaming.

Request path

From client to provider edge.

Each boundary has a home in the repository. Use the docs to move from behavior to implementation without guessing.

Search documentation

Press Esc to close · to browse