Bearer tokens to specialized headers like x-api-key, or even dynamic OAuth2 flows.
Open Next Router (ONR) abstracts this entirely. Your clients (the users of your gateway) only need to authenticate with ONR using one standard format (Authorization: Bearer <your-client-key>), and ONR deals with the translation to the upstream providers.
Standard Token Injection
The most common approach for providers like OpenAI, Anthropic, or DeepSeek is a simple static API key. When you configurekeys.yaml, you map a client token to an upstream profile. In the DSL loaded from config/onr.conf and its included provider files, you define how ONR injects the upstream key (accessible dynamically as $channel.key).
Bearer Token
Custom Headers
For providers like Anthropic that ask forx-api-key: