Connect an OpenRouter Key
Learn how to create an OpenRouter API key and configure Automix to use it as your language-model provider, with options for workspaces that restrict usage to free models only.
1 Create an OpenRouter API key
Sign in to your OpenRouter account and navigate to the API keys page. Create a new key and copy it immediately, as you may not be able to retrieve it later. Note that a key is required even if you only plan to use OpenRouter's free models; free models bill zero against the key, but the key itself is still necessary for authentication.
2 Set the provider and paste the key
Open Settings → Providers and connect the OpenRouter key using its provider card. Then select BYOK OpenRouter in the AI model options and enter a model ID available to your OpenRouter account. The key connection and model choice are separate steps; do not assume a default model is prefilled.
Environment variables:
LLM_PROVIDER,LLM_API_KEY3 Optional: use more than one key
Use one key for this connection. If your provider offers multiple keys, connect and manage them through separate supported provider connections; this guide does not promise comma-separated key rotation.
Environment variables:
LLM_API_KEYS
After connecting
- After you select BYOK OpenRouter, supported AI actions use the connected key and selected model. OpenRouter bills its usage directly; Automix credits do not cover that provider bill.
- You can switch which specific OpenRouter model is used later in the settings without needing to repeat the key setup.
Next
Status: reviewed · reviewed by codex