Skip to content
Skip to content

Vault and secrets

Every secret agentistics keeps on your machine is encrypted: the GitHub token for backups, provider keys and internal keys. Nothing sits on disk as plain text. Settings → Vault shows what is sealed and in what state, never a value.

A copy of your data read somewhere else: a backup file, a synced folder, a USB stick, the disk of a stolen laptop. Each file opens only on this machine, under this account. The key is held by the system itself (Keychain on macOS, Windows data protection, the Linux keyring) and, with none of those, by a passphrase of yours.

It does not protect against a program running as you while the Vault is open. That is why the Vault locks.

On update, secrets that older versions kept as plain text are encrypted automatically on first open. Copies made before (backups, snapshots) may still hold them; rotating the secrets closes that.

A banner invites you to set it up (Set up or Later). Until you finish, nothing changes. The steps:

  1. Confirm it is you: one Windows Hello confirmation on this computer.
  2. Authenticator: scan the QR code with any app (Google Authenticator, Authy, 1Password…) and type the 6-digit code.
  3. Personal confirmation (Windows Hello): a test and two confirmations to create the Vault’s key.
  4. Recovery key: 24 words, shown once. There is no copy button (on purpose); write them on paper or print them. Then you type three of them to confirm.

Unlock with Windows Hello, then the authenticator code (6 digits, within 2 minutes). From the terminal: agentop vault unlock.

What unlocking asks (What unlocking asks):

  • Per day (recommended, the default): Windows Hello and the code on the first unlock of the day (a 12-hour window, adjustable); for the rest of the day, Windows Hello only.
  • Windows Hello + code, always.
  • Windows Hello only (the code is still asked to see secrets, change settings or recover).

One code unlocks both the Vault and the list: it is not asked twice.

Quick vault: right-click (or long-press) the Nay button and a Vault icon comes up; it opens a quick vault on any screen where the Nay button shows.

With the Vault locked, metrics, Agentask and the rest of the app keep working; only features that need a secret pause. Repeated wrong codes pause attempts for a while.

On your phone, the Vault opens with the device’s passkey (fingerprint or face) plus the authenticator code. Register the phone once on the Vault page, opened on the phone itself. The phone has to reach agentistics over an https address (for example, with Tailscale’s HTTPS certificates). Opening with the code only is an option, off by default.

If Windows Hello fails with an error (not if you cancel it) and a phone is registered, the computer asks you to unlock from the phone, with your fingerprint and the code, and then carries on by itself.

The Vault locks by itself after 30 minutes without use (5 to 480; there is no “never”). Use means the Vault screen, agentop vault commands and any use of a secret, so a long agent run is not cut off. Lock now locks it at once (or agentop vault lock).

Lost your authenticator phone or Windows Hello? Recover with the 24 words, right on the screen (it only works on a page opened on this computer). Afterwards the Vault asks you to set up the authenticator, Personal confirmation and new words again. From the terminal: agentop vault recover.

If you lose both Windows Hello and the paper with the words, the secrets are gone. Nobody can recover them, not even support. And anyone with the words and this computer’s disk can open the Vault: don’t photograph them or keep them in a cloud note.

Besides agentistics’ own secrets, the Vault keeps yours: passwords, API keys and .env files. The Vault page has a list, search, groups, versions and .env import. Seeing a value asks for your confirmation.

Secrets for agents, without exposing the value

Section titled “Secrets for agents, without exposing the value”

In a session’s chat, type :vault and pick the secrets (or a group). The message carries only a reference (vault://NAME), never the value, and the session is granted only the items you picked.

  • In Claude Code, with agentop hooks install: the value goes in only when the tool runs, and the tool’s output is scrubbed before it returns to the conversation. The agent uses the secret without seeing the value.
  • In the other harnesses (Codex, Gemini CLI and the rest): agentistics scrubs the copies it shows itself; what the harness writes is up to the harness.

The limits, honestly: values shorter than 6 characters are not scrubbed, and this guards against accidental leaks; it is not full containment. An agent allowed to run commands with the secret can use it in other ways.

Every backup carries an encrypted copy of the Vault that opens only with your 24 words (never the key in the clear or this machine’s locks), and it goes along in the GitHub backup. On a new machine you restore the Vault with the 24 words. With no Vault set up, the Vault locked or no recovery words, the backup goes without it.

Wipe the Vault’s backup history is a button on the Vault page (it asks for the code and Windows Hello) and also runs by itself after a key change. It does not reach copies made outside agentistics. See Backup and restore.

  • Security key (FIDO2) on Windows: coming soon.
  • Touch ID on the Mac: later. On macOS, the code, the recovery key and auto-lock already apply.