Skip to main content
BYOK is currently in development. Contact support@arouter.ai to join the beta.
Bring Your Own Key (BYOK) lets you register your own provider API keys with ARouter. When a request routes to a provider for which you have a registered key, ARouter uses your key instead of its shared key pool. Benefits:
  • Zero markup on token costs — pay providers directly at their list price
  • Your quota — requests count against your own provider rate limits, not ARouter’s shared pool
  • Your data policy — your existing provider agreements and data terms apply
  • Unified gateway — still get ARouter’s routing, fallback, and observability on top

How BYOK Works

  1. You register provider API keys in the ARouter Dashboard
  2. When ARouter routes a request to that provider, it substitutes your key
  3. Your account is not charged for token costs (only ARouter service fees, if any)
  4. usage.is_byok: true is returned in the response

Registering Keys

Add provider keys in the ARouter Dashboard. Supported providers and their key formats:

BYOK with Provider Ordering

Combine BYOK with provider.order to control when your key is used:
When OpenAI is in the order list and you have an OpenAI BYOK key registered, ARouter automatically uses your key for that provider.

Partial BYOK

You can register keys for some providers while using ARouter’s shared pool for others:
If you have an Anthropic BYOK key, Anthropic will be tried first with your key. If you have an AWS Bedrock key, it tries next. Otherwise ARouter falls back to its shared pool.

Azure OpenAI

Register your Azure OpenAI endpoint and key:
Then route to it:

AWS Bedrock

Two authentication options: Option 1: Bedrock API Keys (recommended)
Option 2: AWS Credentials

Google Vertex AI


Identifying BYOK Requests

Responses include is_byok: true in the usage object when your key was used:
When is_byok: true, usage.cost reflects your direct provider cost (not ARouter markup).

Key Priority and Fallback


Debugging BYOK Issues

Check the Activity page in the Dashboard to see which key was used for each request. Common errors: