> For the complete documentation index, see [llms.txt](https://help.aximo.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aximo.autify.com/memories/shared-memories/memory-variables.md).

# Variables

Use variables when you want to manage values that change per environment or are reused across multiple sessions.

{% hint style="info" %}
Reference variables with `{{NAME}}`. The name must start with an uppercase letter and contain only uppercase letters, numbers, and underscores. Values can be up to 10,000 characters.
{% endhint %}

## Add a variable

1. On the **Variables** tab, click **New variable**.
2. In **Name**, enter a variable name.
3. Optionally, enter a value in **Default value**.
4. To save a sensitive value such as an API key or password, turn on **Secret**.
5. Click **Done**.

{% hint style="info" %}
The existing value of a secret variable is not displayed on the edit screen. Enter a new value only when you want to change it.
{% endhint %}

## Reference in sessions and cases

Reference saved variables from session and case scenarios with `{{NAME}}`, where `NAME` is the variable name. On the new session screen and new case screen, you can select an existing variable from the **Insert memory** menu to insert a token at the cursor position.

1. Click **Insert memory**  below **Test instructions**.
2. Hover over **Variables** and select the variable to insert.
3. Confirm that a `{{NAME}}` token is inserted at the cursor position.

{% hint style="info" %}

* Secret variables appear in the list with a key icon.
* You can also reference variables by typing a `{{NAME}}` token directly.
  {% endhint %}

For how to create sessions and cases, see [Test session](/test-case-creation/create-test-session.md) and [Create cases](/test-case-creation/create-test-case.md).

## Update or delete a variable

1. On the **Variables** tab, click the row of the variable you want to update.
2. Update **Name** or **Default value**.
3. Toggle **Secret** on or off as needed.
4. Click **Done**.
5. To delete, click the delete icon on the right of the target row, then click **Delete** in the confirmation dialog.

## Further reading

* [About memories](/memories/memory-overview.md)
