# General Translation Platform: Adding environment variables
URL: https://generaltranslation.com/en-US/docs/platform/locadex/guides/adding-environment-variables.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: How to add key-value environment variables that Locadex injects into the sandbox when automations run.

Use environment variables for API keys, tokens, build configuration, or commands that run before or after Locadex processes files.

Environment variables are injected into the sandbox when Locadex runs automations.

## Add a variable [#add-variable]

You need the **Manage Locadex secrets** permission. The default Admin and Developer roles have this permission.

Open the Organization's Locadex Secrets page at `/org/{orgId}/locadex/secrets`, replacing `{orgId}` with your Organization ID. This page is not currently listed in the Dashboard sidebar. Click **Add Variable**.

Enter:

- **Key**, the environment variable name.
- **Value**, the secret or configuration value.

Then click **Save**.

## Edit a variable [#edit-variable]

Update the key or value, then click **Save**. Use the visibility control to show or hide a value while editing.

## Delete a variable [#delete-variable]

Click the delete icon next to the variable, then save the change.

## Common uses [#common-uses]

Use environment variables for:

- API keys used by build or documentation tools.
- GitHub or package registry tokens.
- Feature flags required during build.
- Pre-process or post-process command configuration.

Environment variables are injected into the [Locadex runtime](/docs/platform/locadex/reference/vm-image) when automations run. They are encrypted at rest and can only be accessed by the Locadex runtime.

## Next steps

- /docs/platform/locadex/guides/using-in-monorepos
- /docs/platform/locadex/guides/configuring-automations
- /docs/platform/locadex/guides/auto-merging-prs
- /docs/platform/locadex/guides/managing-languages

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
