API Keys (BYOK)
Eiryx uses BYOK (Bring Your Own Key). You provide your own AI provider API key. Your key, your costs, full transparency.
Supported Providers
| Provider | Key Format | Models Available |
|---|---|---|
| OpenRouter (recommended) | sk-or-v1-... | All models (routes to any provider) |
| Anthropic | sk-ant-... | Claude Haiku 4.5, Sonnet 4.6, Opus 4.6 |
| Google AI | AI... | Gemini 3 Flash, Gemini 3.1 Pro |
OpenRouter is recommended because a single key gives access to all models from all providers.
Setup
- Go to Settings in the Eiryx dashboard
- Click Add API Key
- Select the provider
- Paste your API key
- Click Save
The key is validated on save (a test call is made to verify it works).
Encryption
All API keys are encrypted before being stored in the database:
- Algorithm: AES-256 via Fernet (symmetric encryption from the
cryptographyPython library) - Key storage: The encryption key (
ENCRYPTION_KEY) is an environment variable on the server, never in the database - At rest: The database column contains only the encrypted ciphertext
- In transit: HTTPS between your browser and the API server
- In memory: Keys are decrypted only at the moment of an API call, then immediately discarded
We never log, print, or expose your API key. All log output sanitizes keys to [***HIDDEN***].
Cost Transparency
Eiryx tracks token usage and cost for every task. You can see:
- Per-task cost in the Task Detail page
- Total cost in the Dashboard
- Cost breakdown in every Pull Request (model, input tokens, output tokens, total USD)
The cost is calculated from the model registry pricing and actual token counts reported by the provider.