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

# Vault

> Store project and Library secrets like API keys, tokens, and credentials for use in workflows, agents, and MCP servers.

The Vault is Overcut's built-in secrets manager for credentials: API keys, tokens, passwords, and connection strings used by workflows, agents, and MCP servers. Values are encrypted at rest and injected as environment variables when workflows execute. Secrets are never exposed to the LLM, only to the agent's sandbox environment.

Each project has its own **Project Vault** at `Project → Project Settings → Project Vault`. The [Workspace Library](https://docs.overcut.ai/docs/reference/workspace-library.md) has a **Library Vault** for secrets that several projects share. LLM provider keys are not vault secrets; configure them on each model under [LLM Models](https://docs.overcut.ai/docs/reference/llm-models.md).

***

## Overview

> [card] Encrypted Storage
>
> Secret values are encrypted before being stored. They cannot be read back through the UI or API, only updated or deleted.

> [card] Selective Assignment
>
> Assign secrets to specific workflows, agents, and MCP servers, or make them available globally for all executions.

> [card] Environment Injection
>
> Secrets are injected as environment variables at runtime. Reference them in MCP server configs using `${VAR_NAME}` syntax.

> [card] LLM-Safe
>
> Secret values are never sent to the AI model. They exist only in the execution sandbox as environment variables.

***

## Creating a Secret

**1. Open the Project Vault**

Open the project, then go to **Project Settings → Project Vault**.

**2. Add a new secret**

Click **New Secret** and enter a name and value.

**3. Name format**

Secret names must start with an uppercase letter and contain only uppercase letters, numbers, and underscores. For example: `API_KEY`, `GITHUB_TOKEN`, `DB_PASSWORD_PROD`.

**4. Set availability**

Toggle **Available for All Executions** to make the secret accessible to every workflow and agent automatically. When disabled, you must explicitly assign the secret to specific workflows or agents.

> [!NOTE]
>
> Secret values have a maximum size of 10KB. Once created, the name cannot be changed, only the value can be updated.

***

## Assigning Secrets

Secrets can be scoped in two ways:

### Global Availability

Toggle **Available for All Executions** on a secret to inject it into every workflow run in the project automatically. Use this for shared credentials that most workflows need, such as a third-party API key used across multiple MCP servers. On a Library secret the same toggle applies to every run in every project, and its tag reads **Available for All Executions in All Projects**.

### Per-Workflow, Per-Agent, and Per-MCP Server

For secrets that should only be available to specific workflows, agents, or MCP servers:

**1. Assign to a workflow**

Open the workflow settings, scroll to the **Secrets** section, and add the secrets this workflow needs.

**2. Assign to an agent**

Open the agent settings, scroll to the **Secrets** section, and add the secrets this agent needs.

**3. Assign to an MCP server**

Open the MCP server settings, scroll to the **Secrets** section, and attach the secrets this server needs.

At runtime, Overcut merges secrets from all four sources (global secrets, workflow-assigned secrets, agent-assigned secrets, and MCP server-assigned secrets) and injects them into the execution environment.

***

## Using Vault secrets with MCP servers

When a remote MCP server uses its own OAuth client, select the client secret from the Vault in the server's **Authentication** section. It does not need to be attached under **Secrets**. See [Connect with OAuth](https://docs.overcut.ai/docs/reference/mcp-servers.md#connect-with-oauth).

***

## Referencing Secrets

Use the `${VAR_NAME}` syntax to reference vault secrets in MCP server configurations. At runtime, Overcut replaces each placeholder with the actual secret value.

**Example MCP server config referencing vault secrets:**

```json theme={"dark"}
{
  "command": "npx",
  "args": ["-y", "figma-developer-mcp", "--stdio"],
  "env": {
    "FIGMA_API_KEY": "${FIGMA_API_KEY}"
  }
}
```

When this MCP server starts, `${FIGMA_API_KEY}` is replaced with the decrypted value from the vault. The LLM never sees the actual key, only the tool interface exposed by the MCP server.

> [!TIP]
>
> Make sure the secret is either set to **Available for All Executions** or explicitly assigned to the MCP server (or the workflow/agent that uses it). Otherwise the placeholder will not resolve.

***

## Project Vault and Library Vault

A project's agents, MCP servers, and workflows can attach secrets from the Project Vault and from the Library Vault; Library secrets carry a **Library** badge in the picker. A Library MCP server or agent can attach Library secrets only. At run time Overcut collects secrets from both vaults, and a project secret with the same name as a Library secret wins in that project's runs. The project secret's row shows **Overrides the library value in this project's runs**.

To share a project secret with every project, select **Promote to library** on its row. The value is not re-entered and existing assignments keep working. See [Workspace Library](https://docs.overcut.ai/docs/reference/workspace-library.md#library-vault-and-shared-secrets) for promotion order and the all-executions warning.

***

## Context parameters and Vault secrets

Use a [context parameter](https://docs.overcut.ai/docs/reference/context-parameters.md) for visible, reusable plain-text configuration such as a base branch, a reviewer list, or naming conventions. Context parameter values appear in prompts and run logs. Use the Vault for anything that must stay hidden.

> [!WARNING]
>
> Never place a credential in a context parameter, a prompt, or script output. Vault values are hidden from the model, but printing an environment variable from a script writes it to the run log.

***

## Security Model

### Encryption at Rest

All secret values are encrypted before being written to the database. Decryption only happens at execution time through an internal, authenticated endpoint.

### No Read-Back

Secret values cannot be read back through the UI or API. The vault only tells you whether a value exists (`hasValue`). To change a secret, you enter the new value; you cannot view the current one.

### Audit Trail

Every vault operation (create, update, delete, toggle availability) is logged with the secret name (never the value), project ID, and the user who performed the action. Use [Audit Trail](https://docs.overcut.ai/docs/reference/audit-trail.md) to review secret-change events and understand why sensitive values may be redacted or omitted from event details.

### LLM Isolation

Secrets are injected as environment variables into the agent's sandbox process. The AI model interacts with tools and APIs through those processes but never receives the secret values in its prompt or context.

### Output Filtering

Secret values are automatically filtered from tool outputs before they reach the model. If a tool accidentally returns a response containing a secret value, Overcut redacts it so the secret is never exposed in the conversation or logs.

***

## Best Practices

* **Use the vault for all credentials**: never place API keys, tokens, or passwords in MCP server configs, agent instructions, or context parameters.
* **Prefer per-workflow/per-agent assignment** over global availability when a secret is only needed by a few workflows. This follows the principle of least privilege.
* **Use descriptive names** that make it clear what the secret is for: `DATADOG_API_KEY` is better than `KEY_1`.
* **Rotate secrets** by updating the value in the vault. All workflows and MCP servers referencing that secret will pick up the new value on their next execution. No config changes needed.

***

## Next Steps

* **[Multi-Project Workspaces](https://docs.overcut.ai/docs/concepts/multi-project-workspaces.md)**: where the Project Vault fits in the workspace-vs-project boundary.
* **[MCP Servers](https://docs.overcut.ai/docs/reference/mcp-servers.md)**: connect external tools to your agents and reference vault secrets in their configuration.
* **[Workspace Library](https://docs.overcut.ai/docs/reference/workspace-library.md)**: the Library Vault and how shared secrets resolve.
* **[Context Parameters](https://docs.overcut.ai/docs/reference/context-parameters.md)**: plain-text values that are safe to show in prompts.
* **[Core Building Blocks](https://docs.overcut.ai/docs/building-blocks.md)**: understand how agents, actions, and triggers connect.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.