OpenRouter Integration
Connect OpenRouter to bring your OpenRouter credits, usage and activity into Cloud ex Machina, next to your cloud infrastructure costs.
| Data | OpenRouter API | Key type |
|---|---|---|
| Account credits and total usage | /api/v1/credits | Management key |
| Account activity per model and per day | /api/v1/activity | Management key |
| API keys and their credit limits | /api/v1/keys | Management key |
Only a Management key reads account-wide data. A normal API key reads the usage of that one key only.
A Management key cannot run models, so it cannot spend credits.
Prerequisites
- Cloud ex Machina Admin access.
- The owner of the OpenRouter account. In an OpenRouter organization, an Org Admin.
Step 1: Create a Management key
Key permissions
A Management key can also create and delete API keys in your account. OpenRouter offers no read-only Management key. Store the key in a safe place.
- Sign in to openrouter.ai.
- Open openrouter.ai/settings/management-keys.
- Click Create New Key and name it
Cloud ex Machina. - Set an expiry date.
- Copy the key. OpenRouter shows the key only once.
Step 2: Add the connection in Cloud ex Machina
- In the sidebar, click Integrations.
- Find OpenRouter and click Sign in. If the integration already has a connection, the button is Add connection.
- Fill in API Key with the key from Step 1.
- Submit the form. Cloud ex Machina checks the key with OpenRouter and saves the connection.
Remove a connection
- Click the connection row under the OpenRouter card.
- Click Disconnect.
- Delete the Management key in OpenRouter.
Next Steps
- See all available integrations in the Integrations Overview.