Skip to content

The Vault

The Vault keeps your secrets: Social Security and other ID numbers, payment cards and bank accounts, API keys and tokens, site logins and secret notes. Agents use an entry by its name, to fill a web form field or to run a command, and never see its value. You decide where each entry may go.

Only you add, change, reveal, delete, import or export entries. No agent tool returns a value.

The Vault is a pane of its own (icon: lock, view vault). It is not pinned to the widget bar by default. Open it in any of these ways:

  • Click more at the end of the widget bar and choose Vault. Right-click it there and choose Pin to bar to keep it on the bar.
  • Open Vault in the command palette (open:vault).
  • Fill it in on an agent’s request for an entry, or Open the Vault in the Audit pane’s Secrets block.

A tab holds one Vault: each of these brings back the Vault already open in the tab instead of opening a second. The pane’s title reads Vault · Cards and banks, naming the Vault’s own section.

The Vault reads its entries only while it is shown. Opening the Audit or any other pane never reads them.

The Vault has its own row of sections:

SectionKindsSecret partsPlain details
Personal dataSocial Security number, ITIN, Taxpayer ID, EIN, Date of birth, Passport, Driver’s licence, Other ID numberThe number or dateWhose; for an ID document also issued by and expiry; notes
Cards and banksPayment card, Bank accountCard number, expiry month and year, security code, name on card, billing ZIP or postal code; account and routing numbersWhose; for a card its brand (worked out from the number) and Default card; for an account the bank; notes
API keysAPI key or tokenThe keyService, environment variable (STRIPE_API_KEY), expiry, notes
LoginsLoginPassword, one-time code seedSite, username, browser profile, expiry, notes
NotesSecret noteThe textExpiry
Kept by AgentMuxRead-only: secrets AgentMux keeps for itself in the same OS credential store (account keys, the MuxBus sign-in), with where each is managed
ActivityEvery change to the Vault and every use of an entry: when, who, what, which entry, where. Never a value

A Payment card keeps the whole card: the form has the number, an Expiry month and Expiry year choice, the security code, the name on the card and the billing ZIP or postal code. The brand is worked out from the number each time you save, and Default card marks your default; turning it on for one card turns it off for the others. An expiry shows in the list as “expires in 12 days”, turns to the warning colour at 14 days or fewer, and reads “expired on 2026-10-31” after the date.

The list shows each entry’s label, its id (for example ssn-alex), kind, plain details, its expiry date if it has one, the last few characters of its main value (•••• 6789; none for a short value, a password, a date of birth or a note) and when it last changed. It never shows a value.

In a section, click Add, choose the Kind, give it a Label (how you and agents name it; agents see labels, never values), type the secret parts and any plain details, and Save to Vault. Secret parts are typed into hidden fields and never sent back to the pane.

An entry’s id is made once from its kind and label and never changes, so an agent’s reference survives a rename. Change (the pen) replaces only the parts you type; leave a part empty to keep it. Delete (the bin) deletes the entry, its value and its permissions.

A login’s Browser profile says whose browser tabs may use it: Personal, or one of your browser profiles. Incognito tabs never save a sign-in. A login with a site belongs to Personal unless you pick another profile; one without a site belongs to none. The sign-ins a browser pane saves are Login entries too: those from a page’s sign-in form (see Sign-ins on web pages), and those from an HTTP sign-in prompt, which also have the Realm (and the proxy, for a proxy’s prompt) that the browser set, shown with the entry and not typed. Deleting a browser profile in Settings ▸ Browser asks whether to move its sign-ins to Personal or delete them with it. See Sign-in prompts.

An agent can ask you for an entry it needs. Every AgentMux window then shows its request, naming the agent, the kind, the label and why, with Fill it in and Not now, and the Vault lists it at the top with Fill in and Dismiss. Fill it in opens the Vault on a new entry of that kind. The agent gets the new entry’s id, never its value.

An API key, login or secret note can have an Expires date (YYYY-MM-DD). The list shows it under the entry (expires in 20 days, expires tomorrow, expired on 2026-11-01), and Expiring soon (shown when a section has dated entries) keeps the entries that expire within 30 days or have already expired.

AgentMux notifies you 14 days before the date, 3 days before and on the day, once each (an entry saved with its date closer than that gets only the nearest reminder). The notification names the entry by its label, never its value. Turn these notifications off with Settings ▸ Notifications & Tray ▸ A Vault entry is expiring (notify:os:vaultexpiring). Each reminder is recorded in Activity, so a restart never repeats one, and a new date starts the reminders again.

The first reminder for a date also files a task in the Kanban to rotate the value: Rotate label: it expires on date. It goes to the agent that made or last replaced the value, when an agent did, and to anyone otherwise. An expired entry keeps working, so a reminder never breaks a running job; each use of it is recorded in Activity with “(expired)”.

When an entry gets a new value (you change it, an agent captures or rotates it, or you restore one), the value it replaces is kept for 7 days. Earlier values (the arrow button; shown when an entry has any) lists them with when and by whom each was replaced and the last characters, never the value. Restore makes one the value agents use again; the current one is kept in its place. After 7 days an earlier value is deleted. A rotation that did not finish leaves its new value there too, marked with the step that failed, because the service may already hold it.

The eye button on an entry opens Show or copy, with Reveal and Copy for each part that is set. Each one asks Windows Hello (your PIN, fingerprint or face) on Windows, or Touch ID or your Mac’s password on macOS, to confirm it’s you, every time; nothing stays unlocked.

  • Reveal shows the value for 15 seconds. It hides sooner on Hide, when the AgentMux window loses focus, when you close the dialog, and when you leave the Vault section.
  • Copy puts the value on the clipboard without showing it, and clears it 30 seconds later if the clipboard still holds it. On Windows and macOS the copy is kept out of clipboard history.

On macOS, the same buttons ask Touch ID, or your Mac’s password. On Linux, Reveal and Copy are off for now: there is no standard way to confirm it is you without administrator rights, which the Vault never asks for.

The Vault opens with a note, What the Vault may ask you, listing what your OS may ask and when. Dismiss it with Got it; the ⓘ button in the Vault’s header brings it back.

Agents have a Vault MCP tool with ten actions: list (each entry’s id, label, kind, section, Vault and expiry date, no values), request (ask you for an entry, as above), generate, rotate and import (below), and history, show, update, verify and health (below). None of them returns a value. An action that makes or changes an entry takes a reason: one line of 8 to 300 characters saying what and why. You see it on the approval, and it is kept in the entry’s history. To use an entry they name its id:

  • In a web form: the Browser tool’s fill with vault: "<id>", or "<id>.<part>" for one part (card-company.cvc). You are asked where it may go (the site and the field). Once you approve, AgentMux sets the value on that approved field itself, in one step, after checking it is still that field on that site, so a page can’t redirect it by moving the focus; the agent gets back only that the field was filled. From then on the field reads as secret to the agent in snapshots, read-backs and screenshots. An agent never fills a password or a one-time code from an entry this way: for a password it uses a saved sign-in (next), or a value you gave it for the task.
  • Signing in: the Browser tool’s signin types a Login you saved for the site of the sign-in form the page shows, in that browser tab’s profile, into the form. The agent never sees the user name or the password, and gets back only which entry was used and on which site. If more than one saved sign-in fits the page, it names one by its id. The prompt reads “agent wants to sign in to site as al***”, and Always for agent on site lets that agent sign in there without asking; before it types, the pane shows a notice with a Stop button for 5 seconds. An Incognito tab keeps no sign-ins of its own: it may use Personal’s, asked each time. An agent can also fill a password, a one-time code, a card, bank or taxpayer ID field with a value you gave it for the task, only in a pane limited to sites: that doesn’t use the Vault. See Secrets on a page.
  • In a command: the Terminal tool’s run with background: true and secrets: {"STRIPE_API_KEY": "<id>"}. The value goes into that one process’s environment, and the job’s output is cleaned of it, shown as [vault:<id>]. Commands with secrets run only on this computer, not over WSL or SSH.
  • In a command, by another way in: some tools won’t read a key from the environment. stdin_secret: "<id>" writes the value to the command’s standard input, then a newline, and closes it (for docker login --password-stdin or gh auth login --with-token). secret_files: {"GOOGLE_APPLICATION_CREDENTIALS": "<id>"} writes each value to a file only you can read, puts the file’s path in that variable, and removes the file when the command ends. Both are asked about and cleaned like secrets, and run only on this computer.
  • A secret nobody has chosen yet: the Vault tool’s generate makes an API key, login or note whose value the Vault creates itself (a strong random value; for a login, its password), for example a webhook signing secret or the password of an account the agent is setting up. The agent gets the new entry’s id and how it was made, never the value, and you aren’t asked, since nobody has seen it: the entry appears in the Vault, where you can reveal it. The agent can ask for a value that follows a site’s own rules (8 to 128 characters, required and allowed characters), or for 6 to 12 words when a person has to type it, and can give the date it stops working (expires), which sets the reminders above and files the rotation task for that agent.
  • A new value for an existing secret: the Vault tool’s rotate makes a new value for an API key, login or note, runs the agent’s set command to put it at the service (the new value in NEW_SECRET, the old in OLD_SECRET), and its optional verify command to check it works. The entry takes the new value only if both exit 0; otherwise it keeps the old one, and the new one is kept as an earlier value for 7 days, marked with the step that failed. You approve the rotation once, with both commands as written. The agent sees each command’s exit code and output, cleaned of both values. After a rotation Terminal run can name the old value as <id>@previous, to delete the old key at the service.
  • A secret that already lives in AWS Secrets Manager: the Vault tool’s import copies it into the Vault, so nobody types it and the agent never sees it. The agent names the secret (aws_secret_id, its name or ARN), a field of a JSON secret as a dotted path (key), and a region and profile. It gives a kind and label to make a new entry, or an id to replace an entry’s value; the old value is kept as an earlier value for 7 days. You are asked once, with the secret, the key, the region and the Vault named, and Allow once or Deny, never Always. No answer within wait_secs is a no. The agent gets back the entry’s id, label and Vault, never the value.
  • What happened to an entry: the Vault tool’s history returns an entry’s history, newest first: each change and each use, with when, who (an agent’s id, or you), the machine, what was done, where, which version of the value, the outcome, the reason given and any references. A row never holds a value. An agent reads it to see why and by whom an entry was last rotated before it rotates it again, and only for entries in Vaults it may use.
  • Looking after entries: show gives one entry’s kind, label, plain fields, tags, which secret parts are set (names only), expiry state, Vault, how many times its value was set, how many earlier values are kept and when it was last used. update changes an entry’s label, plain fields and tags, with a reason; each change is a line in its history, and the value itself is only ever changed by rotate, generate, import or capture. verify checks one entry or every entry the agent may use, for a known kind, a main secret part that is set, plain fields that suit the kind, an expiry date that is a date and not past, and a Vault key that opens it, and returns the problems found. health reports the key store’s state, how many entries and Vaults the agent may use (expiring within 14 days, expired, unused for 90 days), and the history chain’s state. verify and health need no reason.
  • A value a command prints: the Terminal tool’s run with capture puts a value the command prints (gh auth token, aws iam create-access-key) straight into the Vault, as a new entry or as a new value of an existing one, and shows [vault:<id>] in its place in the output. A rule picks the value from standard output: all of it, a JSON path, a regular expression’s group or a line. Replacing an existing entry asks you first. If a rule matches nothing, the command fails or a value is under 8 characters, the whole output is withheld and kept as a note only you can open.
  • A secret a page shows once: a new client secret, or a key next to a Copy button, is hidden from the agent’s snapshots and screenshots (a snapshot shows it as [secret: shown once; use Browser capture to save it]). The Browser tool’s capture saves it straight into the Vault as an API key, login or note, with the page’s address kept with it. With download: true, capture clicks a button that downloads a file shown once, such as a GitHub App’s private key, and the file goes into the Vault as a note without being written to disk. A secret split across highlighted text is hidden too.
  • A value you don’t have stored yet: the Browser tool’s request_value asks you to type one value for one field, in AgentMux’s own prompt. Save to the Vault keeps it as a new entry. An agent that asks again for an entry (the Vault tool’s request, for the same kind and label), for example after its session restarted while you were away, doesn’t open a second form: it waits on the open one, or gets the entry you already saved.

The first time an agent uses an entry on a site, in a sign-in or in a command, every AgentMux window asks you. The prompt names the agent, the entry, and the site and field, or the command and where it runs, with Deny, Allow once, and Always on <site>, Always for <agent> or, for a sign-in, Always for <agent> on <site>. “Always” covers that one entry on that one site, or that one agent’s commands, and nothing wider. Auto-approve never answers these prompts.

What happens when you don’t answer depends on the entry. For an API key, a Login or a secret note, the prompt reads Goes ahead in 0:30 unless you deny: after 30 seconds without a Deny the use goes ahead once, never as an “Always”. Reading or answering in the prompt holds the countdown a little longer. The agent is told that no one answered and it went ahead, and Activity records the use as “approved: no answer in 30 s”. An ID, card or bank entry never goes ahead on its own: the prompt reads Waiting for you, and without a yes the use is refused. A value only you can type (an agent’s request_value) waits for you as well.

Cleaning a command’s output is a guard, not a boundary: a command can transform a value and print it, or send it wherever the command line says. Read the command before you allow it, and prefer keys scoped to the task.

The Vault pane can hold several Vaults. Each entry is in one Vault, and a Vault says which agents may use its entries. In the Vaults dialog you add a Vault with a Name and Agents that may use its entries: All agents, or Named agents with their ids separated by commas. An agent can’t tell a Vault it may not use from one that doesn’t exist; you can always use every entry. The picker above the list narrows it to one Vault, or All Vaults. Move to on an entry moves it to another Vault. When an agent makes an entry (request, generate or import) it can name the Vault with vault; otherwise the entry goes to the first Vault it may use.

With more than one Vault, Vault for browser sign-ins lets each browser profile keep its sign-ins in a Vault of its own: the profile saves new sign-ins there, and its key button offers the sign-ins kept there. Sign-ins already saved stay where they are, so move them to the profile’s Vault to keep them offered. Incognito always uses Personal.

Each entry lists its standing permissions under its label: Agents may fill it on the sites you allowed always, Agents may run commands with it for the agents you allowed always, and Agents may sign in with it for the agent and site pairs you allowed always. The × next to one revokes it; the next use asks again.

The Vault’s Activity records every change and every use: saving, revealing, copying, generating, capturing, rotating and restoring, each fill and command with its outcome, expiry reminders, imports and exports. See agents’ use in Audit opens the Audit pane, which ends with Secrets: the agents’ uses of entries (not yours), and every standing permission with a way to stop it.

The Vault’s import and export buttons are in the Vault’s header.

Export the Vault saves a file of the entries you choose (all are selected). Pick a File format:

FormatWhat it is
AgentMux Vault file (.vault, recommended)Every kind, part and detail, protected by a passphrase you type twice (at least 8 characters; Suggest one makes one from random words). It is an age file, so you can open your own export without AgentMux with age -d.
KeePass database (.kdbx)A KDBX 4.1 file protected by a password, for KeePassXC, KeePassDX or Strongbox. A KeePass app from before 2022 can’t open it.
CSV, unencrypted (.csv)Bitwarden’s layout, which most managers import.
JSON, unencrypted (.json)Every kind and detail; AgentMux imports it back.

A .vault or .kdbx export holds every value, label and detail, but not permissions or Activity. Anyone with the file and its passphrase can read every secret in it. The two unencrypted formats hold every secret in plain text, so they ask more of you: type export to confirm, then confirm it is you as for Reveal, and see where the file will be saved (Choose another place), with a warning if that folder is synced to a cloud service. Import the file into the other manager, then delete it and empty the trash or recycle bin. Don’t open a CSV in a spreadsheet and save it: a spreadsheet changes values it takes for numbers or formulas.

Import into the Vault reads a file and works out its format from its contents:

  • an AgentMux .vault file, with its passphrase;
  • a KeePass database (.kdbx, KDBX 3.1 and 4), with its master password, its key file, or both (Choose a key file…);
  • LastPass’s CSV export;
  • 1Password’s .1pux or CSV export;
  • Bitwarden’s JSON export, unencrypted or password-protected (with the password it was exported with);
  • the CSV exports of Dashlane (a zip of CSV files), Keeper, NordPass, RoboForm and Zoho Vault;
  • a browser’s password CSV: Chrome, Edge, Brave, Firefox, Safari or Apple Passwords;
  • a .env file (each variable becomes an API key named for it);
  • any other CSV, where you say which column is the label, the value, and for logins the site and username.

Nothing is added until you press Import: first a preview lists what will come in, what can’t and why, and the entries you already have. For those you choose Skip them, Replace mine or Keep both. Folders and groups become tags, and notes and custom fields come in as secret notes. After importing a plaintext export, the Vault says the file holds every secret unencrypted and offers to delete it (not a secure erase).

  • One Vault key in the OS credential store: Windows Credential Manager, the macOS Keychain, or your desktop’s keyring. It is made with your first entry.
  • Each entry is one row in shared/identity-store.db, with its secret parts encrypted together with that key (ChaCha20-Poly1305, tied to the entry’s id). No column holds a value, and Activity never records one.

The Vault is shared by every AgentMux on this computer, installed and development builds alike, and an update keeps it. It is not synced anywhere: a .vault export is how it moves to another computer. On macOS, the keychain may ask whether AgentMux may use the Vault key; the note in the Vault says when. See Identity & credential storage for what protects it.

  • UI screenshot is clipped to the agent’s own pane, and the Vault is blacked out in it even when it floats over that pane.
  • UI window captures a whole OS window, so it can’t black out one part. While the Vault is on screen in any AgentMux on this computer, it refuses to capture any AgentMux window. Hiding the pane or closing it ends that within seconds.
  • UI query and click reach only the agent’s own pane, and the Vault’s forms and dialogs are drawn inside the Vault.