Access keys
Access keys authenticate downstream applications to the public Lumoswitch Runtime inference endpoint. They are not provider keys and must never be interchanged.
Security model
- The complete key is returned once, immediately after creation.
- Lumoswitch stores only the runtime token identity, prefix, and business state; lists show only the name and prefix.
- OpenAI requests use
Authorization: Bearer <key>; Anthropic usesx-api-key; Gemini usesx-goog-api-key. - Disabling or deleting a key removes its access.
Each API configuration has one current access key. During replacement rotation, the previous and new keys can overlap for a short grace period. Editing the configuration updates every active key through configuration synchronization.
Relationship to API configurations
The console flow creates the configuration and initial key together. A configuration keeps its current key during edits; disabling or deleting the configuration affects all active keys.
Limits
| Limit | Purpose |
|---|---|
| Requests per minute | Fixed-window rate limit; excess requests return 429 |
| Allowed models | Restricts models visible and callable by the key |
| Project | Associates configuration and routing with a scope |
After creation
- Copy the full key immediately.
- Store it in a secrets manager or protected client environment.
- Keep it out of Git, images, frontend bundles, and shared screenshots.
- Run a minimal request.
- Record the owner, environment, and rotation date.
Rotate safely
Use overlap for safe rotation:
- Use the configuration card or
POST /configurations/:id/access-key/rotateto request a replacement key for the same configuration. - Update every downstream client.
- Confirm that all downstream clients use the new key.
- Keep the old key only for the selected 60–86400 second grace period.
- The synchronization worker blocks and removes the old runtime key after the deadline while retaining its usage tombstone.
Respond to a leak
- Disable the key immediately.
- Issue a replacement and update clients.
- Review model and upstream configuration for unexpected changes.
- Investigate the source of exposure.
- Rotate upstream credentials too if they may have been exposed.