Essentials
Environment Variables
How to view and manage environment variables for your applications on OpenCloud.
Environment Variables
Environment variables are name-value pairs that control how your application behaves. They store configuration like database connections, API keys, and feature flags — without hardcoding them into your app.
Examples
| Variable | Example Value | Purpose |
|---|---|---|
DATABASE_URL | postgresql://user:pass@host:5432/db | Database connection |
OPENCLAW_PRIMARY_MODEL | google/gemini-2.5-flash | AI model selection |
N8N_ENCRYPTION_KEY | Auto-generated | Credential encryption |
OpenCloud automatically sets important environment variables when you deploy an application. Only modify them if you know what you're doing.
View Environment Variables
- Go to Applications and open your app
- Click the Environment Variables tab
- You'll see all variables with their current values
Edit a Variable
- Find the variable you want to change
- Update the value
- Click Save
- Restart the application for changes to take effect
Add a New Variable
- Click Add Variable
- Enter the name (use
UPPER_CASE_WITH_UNDERSCORESformat) - Enter the value
- Click Save
- Restart the application
Delete a Variable
- Click the delete button next to the variable
- Click Save
- Restart the application
Deleting important environment variables (like
DATABASE_URL or encryption keys) will break your application. Always check what a variable does before removing it.Changes to environment variables require an application restart to take effect.