# 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. _Takes About 10 minutes._ ## Before you start > **You'll need an OpenRouter account** > > Sign up or sign in at OpenRouter to create an API key. > > [Open OpenRouter API keys](https://openrouter.ai/keys) > **Read this guide's overview first** > > This guide assumes you already know what the LLM & Providers setting is for. > > [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) ## 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_KEY` ## 3. 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. > **Free-models-only workspaces** > > A workspace can restrict itself to OpenRouter's free-tier models only. If a free model fails with an error mentioning that providers were ignored, check the data-policy setting on your OpenRouter account; this is an OpenRouter account setting, not an Automix issue. 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 - [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) - [Connect an OpenAI key instead](/docs/platform/guides/openai-key) ## Provider links - [OpenRouter API keys](https://openrouter.ai/keys) --- Status: reviewed · reviewed by codex Author: qwen3.8-27b