Skip to main content
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. Set user environment variables
  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.

Set user environment variables through the API

You can also set and unset user environment variables with the Domino public API, for example to set up variables from a script. The endpoints take your Domino user ID, not your identity provider ID. To find your user ID, call GET /api/users/v1/self and read the user.id field of the response. Inside a Domino Workspace or Job, send requests through $DOMINO_API_PROXY, which authenticates them for you. From outside Domino, see Domino API authentication. To set a variable, send its name as key and its value as value:
To unset a variable, send a DELETE request with the variable name in the path. Domino returns 200 even when the variable isn’t set.
Domino deprecated the older /accounts/idpid/{idpid}/environmentvariables endpoints, which take an identity provider ID. Use the endpoints in this section instead.

Access environment variables

Every language reads environment variables uniquely.
Run this to retrieve an environment variable within your code for Python:
  • In R, it might look like this:
Run this to retrieve an environment variable within your code for R:

Next steps

Last modified on November 6, 2026