Environment Variables
Pass environment variables to Wassette components using shell exports or config files. Components need explicit permission to access variables.
Quick Start
export OPENWEATHER_API_KEY="your_key"
wassette serve --stdio
wassette permission grant environment-variable weather-tool OPENWEATHER_API_KEY
Recommended Method
Use wassette secret set to securely pass environment variables to components:
wassette secret set weather-tool API_KEY "your_secret_key"
This stores the secret securely and makes it available to the component when granted permission.
Grant Access
wassette permission grant environment-variable weather-tool API_KEY
Or in policy file:
version: "1.0"
permissions:
environment:
allow:
- key: "API_KEY"
See Also
- Permissions - Permission system details
- Configuration Files - Complete config.toml reference
- Docker Deployment - Docker configuration