Skip to main content
OpenRouter is a unified LLM router that gives you access to hundreds of large language models through a single API. Infisical supports connecting to OpenRouter using an API Key (Provisioning API key). This connection is used to manage and rotate OpenRouter API keys via Secret Rotation.

Prerequisites

You need a Provisioning API key from OpenRouter. Provisioning keys are used only for key management (create, list, delete keys)—they cannot be used for model completion requests.

Create an OpenRouter Provisioning API Key

1

Navigate to Provisioning Keys

In OpenRouter Settings, go to Provisioning API Keys and click Create New Key.OpenRouter Provisioning Keys
2

Create and Copy Key

Complete the key creation flow and copy the generated Provisioning API key. Store it securely—you will use it when creating the Infisical connection.OpenRouter Key Created
For more details on Provisioning API keys and key management, see OpenRouter’s documentation.

Create OpenRouter Connection in Infisical

1

Navigate to App Connections

In your Infisical dashboard, go to Organization SettingsApp Connections (or the App Connections page in your project).App Connections Tab
2

Select OpenRouter Connection

Click Add Connection and choose OpenRouter from the list of available connections.Select OpenRouter Connection
3

Fill out Connection Form

Complete the form with:
  • A name for the connection (e.g. open-router-prod)
  • An optional description
  • Your OpenRouter Provisioning API Key (from the steps above) OpenRouter Connection Form
4

Connection Created

After clicking Create, Infisical validates the key against OpenRouter’s API. Your OpenRouter Connection is then ready to use for OpenRouter API Key Secret Rotation.OpenRouter Connection Created