---
title: "Environment Variables"
description: "Workspace key/value config and secrets referenced as env.* in Liquid and path bindings."
canonical_url: "https://docs.vettero.com/configuration/environment-variables"
---
# Environment Variables

> Workspace key/value config and secrets referenced as env.* in Liquid and path bindings.

**Environment variables** are workspace key/value pairs for shared config and secrets. Reference them as `env.KEY` in [Liquid templates and path bindings](https://docs.vettero.com/concepts/variables).

Open **Configuration → Environment Variables** to manage them.

<tip>

Store secrets in environment variables and reference them as `env.KEY`. Do not hardcode API keys, tokens, or passwords in agents, templates, APIs, or MCP settings.

</tip>

## When to use

- Store API keys, tokens, and shared config once instead of pasting them into agents, APIs, or MCP settings
- Mark sensitive values as **Secret** so they are masked in the UI where supported
- Prefer `env.*` over hardcoding credentials in schemas, templates, or connected-service configs

## Create environment variables

Add a key/value pair:

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Key
      </strong>
    </td>
    
    <td>
      Name used as <code>
        env.KEY
      </code>
      
      . Letters, digits, and underscores; must start with a letter or <code>
        _
      </code>
      
      . Reserved names like <code>
        env
      </code>
      
      , <code>
        global
      </code>
      
      , <code>
        this
      </code>
      
      , and <code>
        args
      </code>
      
       are not allowed.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Value
      </strong>
    </td>
    
    <td>
      The stored string (optional)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Secret
      </strong>
    </td>
    
    <td>
      Marks the value as sensitive so it is masked in the UI where supported
    </td>
  </tr>
</tbody>
</table>

Reference workspace env vars as `env.MY_KEY` in Liquid and in path bindings.

Deleting an env var is permanent — check anything that references it first.

## How to reference them

<table>
<thead>
  <tr>
    <th>
      Context
    </th>
    
    <th>
      Syntax
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Liquid
      </strong>
      
       text fields
    </td>
    
    <td>
      <code>
        {{ env.API_KEY }}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Path bindings
      </strong>
      
       on structured fields
    </td>
    
    <td>
      <code>
        env.API_KEY
      </code>
      
       (no <code>
        {{ }}
      </code>
      
      )
    </td>
  </tr>
</tbody>
</table>

For Liquid syntax, path namespaces (`args`, `pipe`, `session`, and so on), and workflow **Set Variables**, see [Variables](https://docs.vettero.com/concepts/variables).

## Limits

- Env keys must match the naming rules above and cannot use reserved keywords.
- Prefer **Secret** env vars for credentials.
- Env vars are workspace resources; named workflow variables (`Set Variables` / `Update Variables`) are run-scoped and separate.


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
