Managing Variables
Variables are managed per-environment under the Secrets tab.- Open your environment in the Environments Hub
- Go to the Secrets tab and select Variables
- Click Add Variable
- Set a Name, Value, and optional description
Managing via CLI
Naming Rules
Variable names follow env-var conventions:- Must start with an uppercase letter
- Can contain uppercase letters, digits, and underscores only
- Example:
MODEL_NAME,DIFFICULTY,MAX_EXAMPLES
Where Variables Are Available
Variables are injected automatically for all hosted services:- Environment Actions
- Hosted Evaluations
- Hosted Training
Variables vs Secrets
| Environment Variables | Secrets | |
|---|---|---|
| Stored as | Plain text | Encrypted |
| Visible after creation | Yes | No |
| Use for | Non-sensitive config | API keys, credentials |
| Scope | Per-environment | Per-environment or global |