Documentation Index
Fetch the complete documentation index at: https://to11.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Passthrough Routing
Passthrough is the gateway’s default routing mode. The gateway acts as a transparent proxy — it forwards yourAuthorization header directly to the upstream provider without reading or storing your API key.
When passthrough applies
A request uses passthrough when the requested model does not match any configured function ([functions.*]) or route ([routes.*]). The gateway looks up which provider registered that model name and forwards the request to that provider’s base_url.
If the model does not match any provider either, the gateway returns a 404 UnknownModel error.
Provider model registration
Each provider declares itsmodels list. The gateway uses this to resolve passthrough requests to the correct upstream.
gpt-4o routes to OpenAI and a request for claude-sonnet-4-6 routes to Anthropic. Both require the caller to supply their own API key.
The simplest deployment mode
Passthrough requires only[providers.*] blocks — no targets, routes, or functions. This is the minimal viable gateway configuration:
Authorization header (or equivalent provider-specific header). The gateway adds telemetry, security scanning, and cross-format translation without touching credentials.
Explicit provider prefix
You can force passthrough to a specific provider using theprovider::model prefix syntax:
gpt-4o, the prefix sends the request through passthrough to the OpenAI provider.
Credential defaults on providers
Providers can declare acredential field:
[targets.*] entries that do not declare their own credential.
When
credential is omitted, the gateway uses a convention-based default derived from the provider name (e.g. env::OPENAI_API_KEY for the openai provider). This convention applies only to managed routing targets, never to passthrough requests.Coexistence with managed routing
Passthrough continues to work for any model that does not have a matching route or function. A single configuration can serve both managed and passthrough models simultaneously:Next steps
Simple Routing
Set up gateway-owned credentials for specific models.
Providers
Supported providers and format translation.
Configuration
Full TOML reference for all gateway settings.