# General Translation Platform: Adding environment variables URL: https://generaltranslation.com/en-US/docs/platform/locadex/guides/adding-environment-variables.mdx --- title: Adding environment variables description: How to add key-value environment variables that Locadex injects into the sandbox when workflows run. related: links: - /docs/platform/locadex/guides/using-in-monorepos - /docs/platform/locadex/guides/configuring-workflows - /docs/platform/locadex/guides/auto-merging-prs - /docs/platform/locadex/guides/managing-languages --- 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 workflows. ## Add a variable [#add-variable] In your Organization sidebar, open **Locadex > Secrets**. 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 workflows 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-workflows - /docs/platform/locadex/guides/auto-merging-prs - /docs/platform/locadex/guides/managing-languages