> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-charmenta-pr-655.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-655/ydFRt2u3kGp-d0Dk/studio/concepts/variables/scopes/assets/configuration-variables.png?fit=max&auto=format&n=ydFRt2u3kGp-d0Dk&q=85&s=274572b23348ab2fc5594ca59cf68759" 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-655/ydFRt2u3kGp-d0Dk/studio/concepts/variables/scopes/assets/configuration-fields.png?fit=max&auto=format&n=ydFRt2u3kGp-d0Dk&q=85&s=c96b6fd0b055d6a8b232304eaaac30a1" 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-655/ydFRt2u3kGp-d0Dk/studio/concepts/variables/scopes/assets/access-config-var.png?fit=max&auto=format&n=ydFRt2u3kGp-d0Dk&q=85&s=d5b2b3bf528e2a6f86efe1807a653bed" 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>
