# Vault

> The fleet's keyring: credentials scoped to the agents that need them, how each one reaches an agent, and where Silos stores them.

Source: https://silosplatform.com/docs/vault/

The Vault holds the credentials your agents use: API keys, tokens, passwords. It is one keyring for the whole fleet, opened from the key in the rail (or ⌘K). Each entry says who sees it, how it reaches them, how old it is, and what deleting it would take away.

The rule behind it is simple. Everything an agent reads or writes lands in its transcript, so a secret pasted into a conversation has leaked the moment it exists. Credentials go into the Vault, and the Vault hands them to agents. The Silos plugin teaches every agent this (the `vault-secrets` skill): when it needs a credential, it asks you to add it to the Vault with an exact name and scope, rather than taking a paste. If a secret was already pasted, it says the value should be rotated.

## Adding a credential

Press **Add a credential**, choose **Who sees it**, then type a name and the value («pasted once, stored masked») and press **Add to vault**.

The name is the environment variable the agent will read. It must be `UPPER_SNAKE`. Names starting with `CLAUDE` or `ANTHROPIC_` belong to the provider layer and are refused, as are `PATH`, `HOME`, `SHELL`, `TERM`, `USER` and `LOGNAME`.

Values are never edited in place. Under «Replace the value», «Replace value» removes the old one and adds the new one.

## Who sees it

| Scope | On screen | Reaches |
|---|---|---|
| agents | «Specific agents» | only the agents you name (one or several) |
| folder | «One project» | every agent working in that folder or anything under it |
| global | «Every agent» | every agent on this machine |

When two entries share a name, the most specific wins: agents, then folder, then global. Among folder entries the deepest folder wins. Among agent entries the shorter list wins. A tie goes to the newer entry. You can change an entry's visibility later without touching its value.

What one agent receives, and why, is shown on that agent's page under Settings › Secrets. The Vault page manages the whole keyring.

## How it reaches an agent

Each entry is delivered in one of two ways, chosen under «How it reaches them».

### In its environment

The default. The value is set as an environment variable in the agent's process on both engines, in chat turns, consoles and automation runs alike. In a console it travels in an env file that the launcher reads and deletes, never on the tmux command line. A change reaches the agent from its next conversation.

### Signed by Silos

«Signed by Silos — never in its hands». You bind the entry to one service: a base URL and the header to send, for example `Authorization: Bearer %s`. The value then leaves every environment. The agent calls the service through Silos:

```bash
curl "$SILOS_API/api/egress/STRIPE_KEY/v1/invoices?limit=10" \
  -H "Authorization: Bearer $SILOS_AGENT_TOKEN" \
  -H "x-silos-turn: $SILOS_TURN"
```

Silos forwards the call to the bound host with the credential added. The agent's brief lists, name by name, which entries it reads from its environment and which it signs through Silos.

The Vault says plainly what signing holds and what it does not:

| What holds it | What doesn't hold it |
|---|---|
| The value never enters the agent's process: it cannot be printed, copied to a file or travel in a transcript. | What the service lets that credential do. If the key can delete invoices, a signed call can delete them. Limit the actions at the service, or use a token with fewer permissions. |
| Every use is recorded. | The service's response. If the service sends the credential itself back, the agent sees it. The protection is on the request side. |
| The receiving host is the one you set. | |

Silos only forwards signed calls to public addresses, never to loopback or private networks, and it does not follow redirects. Each call leaves one row (no query, no body) that you can read on the entry.

An agent that needs an entry signed can ask for it on its task. The question appears in Needs you, and its door opens the Vault's editor already filled in. Nothing is written until you save.

## «Not a secret»

Some values are configuration rather than secrets, such as a project id or an email address. Marking an entry «Not a secret» shows it in clear and lets a role pack or template hold it. A secret, the default, is «Masked here, blanked out of run logs, and no role pack or template may hold its value».

## An agent's own scope

An agent may write credentials it obtained itself (an API key it minted, a session it captured) into its own scope of the Vault, visible to it alone. It can replace or delete only what it wrote. Anything you put in the Vault stays yours. An agent cannot edit it, widen who sees it, or push a secret into another agent's environment.

## Where it is stored

The Vault is one file, `~/.silos/vault.json`, with mode `0600` and readable only by your user. It is never kept in an agent's folder. Values leave the server only masked: every API answer masks them. The file sits inside Silos' data directory, which an agent's [territory](https://silosplatform.com/docs/territory/), when on, keeps it out of. If the file is changed outside Silos, Silos restores its own copy and asks you in Needs you whether to keep the outside edit. See [Security and data](https://silosplatform.com/docs/security/).
