Threads

Vault and secrets

How agents use passwords, API keys and tokens without seeing them: asking for a secret, approving each command that uses one, and managing saved secrets.

How the Vault works

The Vault keeps passwords, API keys and tokens your agents can use without ever seeing them. Instead of pasting a key into a chat, where it would be sent to the model and kept in the transcript, the agent asks for it by name, you type the value into Nora's own dialog, and the agent uses the name in commands you approve.

  • Values are encrypted with your system keychain and stay on this computer. They are not synced and are never sent to a model.
  • A secret's name, such as GITHUB_TOKEN, is also the environment variable a command reads it from.
  • Agents only ever get names and results back, never a value.

Give an agent a secret it asks for

When an agent needs a secret, a card appears in the thread headed with who is asking and the secret's name, such as “Ada is asking for GITHUB_TOKEN”, with what it is for underneath. If a bot asked from another thread, the card also appears in the thread that started it.

  1. Read what the secret is for, and check the name is the one you expect.
  2. Type or paste the value into the field. It stays hidden as you type, and a larger box appears for values with line breaks, such as a private key.
  3. Choose Save secret. Choose Don't provide if you would rather not give it.

The value never enters the chat

What you type goes straight to the Vault. The thread only learns that the secret was saved, so no provider, transcript or later thread sees it.

Where a secret is available

The agent chooses where a secret applies when it asks, and the card tells you which before you save:

This workspace
The default. Only threads in the workspace that asked can use it.
Every workspace
Threads in any workspace can use it. If a workspace has its own secret with the same name, that one wins.

Approve a command that uses secrets

Each time an agent wants to run a command with secrets, a card headed “Ada wants to run a command with your secrets” (with the asking bot's name) shows the command and the secrets it receives. The command runs in the workspace with those secrets set as environment variables.

  1. Read the command. Check where it sends the secret: it should only go to the service it belongs to.
  2. Choose Allow once to run this command only, or Allow for this thread to let this thread use these secrets in later commands without asking, until Nora restarts.
  3. Choose Don't allow to refuse. The agent is told not to retry the same command.

Redaction is not a guarantee

Nora removes a secret's value, and its common encodings, from the output the agent sees, showing [NAME redacted] instead. A command can still send a secret somewhere else or change it before printing it, so check each command before allowing it.

Add, replace or delete secrets

You can manage saved secrets yourself in Settings → Vault, which lists each secret's name, what it is for, where it is available and when it was last updated.

  1. To add one before an agent needs it, choose Add secret, then enter a Name (capital letters, digits and underscores, starting with a letter), What it is for, where it is Available in, and the Value.
  2. To change a value, choose Replace value on its row. Saved values can never be shown, only replaced.
  3. To remove one, choose Delete on its row.

Ask an agent to use a secret

You don't need to set anything up first. Ask for the work, such as "Publish the release to GitHub", and the agent checks which secrets are saved, asks for any that are missing, and then asks you to approve the command. Agents are told never to ask for secrets in chat; if one does, don't paste the value, and point it at the Vault instead.

NextDownload NoraWhat’s newGet support