How to manage environment variables in Managed OpenClaw

Learn how to securely store, update, and configure API keys, tokens, and system settings for your Managed OpenClaw agent.

Updated 2 weeks ago

Managed OpenClaw provides a dedicated Environment feature to securely store all the configuration keys, passwords, and parameters your AI agent requires to function. This interface serves as a central repository for integration credentials—such as API keys for AI providers—and operational configurations like your OPENCLAW_GATEWAY_TOKEN.

This guide covers how to view, modify, and securely deploy environment variables to your active Managed OpenClaw agent.

Before you start

  • You must have an active Hostinger Managed OpenClaw service.
  • Ensure you have the necessary API keys or credentials from your third-party providers ready.

Step 1 — Navigate to the Environments interface

To view or adjust your configuration data, open the environmental settings panel inside your control area:

  1. Log in to your Hostinger account to access the hPanel.
  2. Select the OpenClaw section from the left sidebar menu.
  3. Click the Manage button next to your application to enter your dashboard.
  4. Select the Environments option from the management menu.

Step 2 — View your variables

Once inside the environment screen, you can audit your configured keys:

  1. Review your parameters displayed in the central table.
  2. For security, sensitive values are masked by default (••••••••) but can be unmasked individually or all at once using the visibility controls.

Step 3 — Add, edit, or delete variables

You can scale your agent’s capabilities by updating your configuration list. Any changes you make here will be staged until you deploy them:

  • To add a variable: Click the Add environment variable button and enter the required Key and Value fields.
  • To edit a variable: Click on the edit button for the variable you want to modify to adjust its name or value string.
  • To remove a variable: Click the delete icon next to a variable and accept the confirmation prompt.

Protected (System-Managed) variables

Certain parameters are automatically managed by OpenClaw to prevent core application failures and are marked with a “system managed” info icon.

For example, your OPENCLAW_GATEWAY_TOKEN variable is protected; you can update its value field if necessary, but the platform locks you from renaming or deleting the variable key itself.

Step 4 — Save and redeploy the agent

Staged changes do not apply to your live agent immediately. To push your updates live:

  1. Click the Save & redeploy button.
  2. Confirm the prompt in the dialog box. This action restarts your Managed OpenClaw agent so it can successfully initialize with the new parameters.

IMPORTANT NOTE

  • Permanent Deletion: If you delete API keys or configurations directly from within the Managed OpenClaw CLI or the Managed OpenClaw WebUI, the removal is only temporary for variables that were originally added via the hPanel Environments functionality. These keys will reappear as soon as the application restarts. To delete an environment variable completely and permanently, you must remove it through the Environments dashboard in your Hostinger hPanel.