OpenCloud
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

VariableExample ValuePurpose
DATABASE_URLpostgresql://user:pass@host:5432/dbDatabase connection
OPENCLAW_PRIMARY_MODELgoogle/gemini-2.5-flashAI model selection
N8N_ENCRYPTION_KEYAuto-generatedCredential 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

  1. Go to Applications and open your app
  2. Click the Environment Variables tab
  3. You'll see all variables with their current values

Edit a Variable

  1. Find the variable you want to change
  2. Update the value
  3. Click Save
  4. Restart the application for changes to take effect

Add a New Variable

  1. Click Add Variable
  2. Enter the name (use UPPER_CASE_WITH_UNDERSCORES format)
  3. Enter the value
  4. Click Save
  5. Restart the application

Delete a Variable

  1. Click the delete button next to the variable
  2. Click Save
  3. 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.
Copyright © 2026