By default, the gateway sends each request to the provider that matches its format. Routing rules override that. They let you send traffic to a specific provider or swap the model, without the caller changing anything.Documentation Index
Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
How rules work
On the Config page, add rules under Routing. Each rule has two parts:- Match: which requests it applies to.
- Incoming format:
openaioranthropic. Leave blank to match any. - Model: an exact model name. Leave blank to match any.
- Incoming format:
- Target: where matching requests go.
- Provider: a connected provider to send to.
- Model: an optional model to use instead of the one in the request.
Example
- Match incoming format
openai, modelgpt-4o. Target providerfoundry_openai, modelmy-gpt-4o-deployment. - Match incoming format
anthropic. Target providerfoundry_anthropic.
Common uses
- Pin a provider: send all traffic to one upstream, whatever the caller targets.
- Swap a model: map a public model name onto your own deployment name.
- Mix providers: route some models to one provider and the rest to another.

