> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-charmenta-pr-700.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration variables

Configuration variables let you **securely store information throughout your bot**.

Like [bot variables](/studio/concepts/variables/scopes/bot), configuration variables are accessible across all Workflows and conversations. The key difference is that configuration variables are **encrypted**. This means an Autonomous Node can't read or display information you store in a configuration variable.

This extra layer of security makes configuration variables great for storing sensitive information, like:

* API Tokens
* Private IP Addresses
* Usernames and passwords

<Note>
  If you need your variable to be available globally but don't need/want to store it securely, use a [bot variable](/studio/concepts/variables/scopes/bot).
</Note>

<Tip>
  Need help getting started with variables? Check out our [introduction to variables](/studio/concepts/variables/overview).
</Tip>

## Create a configuration variable

To create a configuration variable:

1. In the Studio, select **Bot Settings** from the bottom-left corner.
2. Scroll to the **Configuration Variables** section:

<Frame>
  <img src="https://mintcdn.com/botpress-charmenta-pr-700/dcnoG_ZF8nZch38a/studio/concepts/variables/scopes/assets/configuration-variables.png?fit=max&auto=format&n=dcnoG_ZF8nZch38a&q=85&s=ca6c069cfa851d4a01ca9d0157985dcf" alt="Configuration variables" width="1398" height="314" data-path="studio/concepts/variables/scopes/assets/configuration-variables.png" />
</Frame>

3. Select **+**, then enter a **Name** and **Value** for your variable:

<Frame>
  <img src="https://mintcdn.com/botpress-charmenta-pr-700/dcnoG_ZF8nZch38a/studio/concepts/variables/scopes/assets/configuration-fields.png?fit=max&auto=format&n=dcnoG_ZF8nZch38a&q=85&s=75123d3e7e87d72b8cc02ddc4d6ef5c2" alt="Configuration variable fields" width="1398" height="170" data-path="studio/concepts/variables/scopes/assets/configuration-fields.png" />
</Frame>

## Read a configuration variable

You can use `env.variablename` to read a configuration variable. For example, in an [Execute Code](/studio/concepts/cards/execute-code) Card:

<Frame>
  <img src="https://mintcdn.com/botpress-charmenta-pr-700/dcnoG_ZF8nZch38a/studio/concepts/variables/scopes/assets/access-config-var.png?fit=max&auto=format&n=dcnoG_ZF8nZch38a&q=85&s=9f77ffa7bea22e52a2a6d24f4d4a57a1" alt="Access configuration variable in an Execute Code Card" width="1990" height="554" data-path="studio/concepts/variables/scopes/assets/access-config-var.png" />
</Frame>
