> ## Documentation Index
> Fetch the complete documentation index at: https://docs.domino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# User Environment Variables

In Domino, you can create, update, or delete your private environment variables. These variables are stored securely in Vault and only you can see them. The system injects these variables at execution time for any run initiated by you.

User environment variables are automatically imported into runs for all projects. However, user-specific environment variables cannot be used in models.

<img src="https://mintcdn.com/dominodatalab-e871cec4/LnFGSZ2o5jkxCrWN/images/6.0/user-environment-variables.png?fit=max&auto=format&n=LnFGSZ2o5jkxCrWN&q=85&s=6f435b49d81a43c769531e07b11d2edc" alt="Set user environment variables" width="1182" height="660" data-path="images/6.0/user-environment-variables.png" />

1. Click **Account > Account Settings** to open the Account Settings page.

2. Choose **User environment variables** from the list.

3. In the **Environment variables** section, add the following:

   1. **Name**: Enter the variable name. For example, `YOUR_NAME_ENV_KEY`.

   2. **Value**: Enter a value for the variable. The maximum length for a value is 64K.

4. Click **Set Variable**.

You can send the values exactly as they are without adding escaping characters.

## Access Environment variables

Every language reads environment variables uniquely.

* [In Python](https://docs.python.org/2/library/os.html#os.environ), it might look like this:

```python theme={null}
import os
s3 = S3Client(os.environ['S3_KEY'], os.environ['S3_SECRET'])
```

Run this to retrieve an environment variable within your code for Python:

```python theme={null}
import os
os.environ['DOMINO_RUN_ID']
```

* [In R](http://stat.ethz.ch/R-manual/R-patched/library/base/html/Sys.getenv.html), it might look like this:

```r theme={null}
makeS3Client(Sys.getenv("S3_KEY"), Sys.getenv("S3_SECRET"))
```

Run this to retrieve an environment variable within your code for R:

```r theme={null}
Sys.getenv("DOMINO_RUN_ID")
```

## Next steps

* [Our Best Practices](/cloud/platform-capabilities/core-concepts/compute-environments/manage-compute-environments/1-best-practices-domino-environments) will guide you in setting up and maintaining your Domino environments.

* [Set up user environment variables](/cloud/platform-capabilities/core-concepts/compute-environments/manage-compute-environments/manage-environment-variables/4-setup-user-environment-variables) for each user. The system injects these variables at execution time for any run initiated by that user.

* Learn to [build project variables](/cloud/platform-capabilities/core-concepts/compute-environments/manage-compute-environments/manage-environment-variables/2-build-project-variables) to add, modify, or delete environment variables for your projects.

* The [Default Domino Variables](/cloud/platform-capabilities/core-concepts/compute-environments/manage-compute-environments/manage-environment-variables/5-glossary-default-variables) glossary contains details about variables automatically injected by Domino.
