Skip to main content

Module vault

Module vault 

Source
Expand description

The Vault: the person’s secrets, which agents use by name without seeing them (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md).

The person writes the Vault through the host (server::vault_handlers). Agents list entries’ names, ask for new ones, and create entries whose value the Vault makes itself (generate), which no one has seen. Everything here is blocking (the store, the keychain): call it off the async runtime.

Modules§

account_key
The key of an API key account (Connectors > Accounts), kept as an api-key entry of the Vault. The account row holds the entry’s id and non-reusable link id (SecretRef::Vault); the key is sealed in the entry like any other, so the person sees it in the Vault, can copy or replace it there, and deleting the account deletes the entry.
agent_changes
What the person sees instead of a card: the changes agents made that they have not looked at yet, and what they can do about each (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md §5).
agent_set
A value an agent had the Vault read is not trusted until the person has seen it (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md R11).
aws_import
Vault import: an agent has the Vault copy a secret from AWS Secrets Manager, so the person never types it and the agent never sees it (docs/specs/SPEC_VAULT_PARITY_ENTRY_HISTORY_REASONS_AND_IMPORT_2026_11_06.md §7).
aws_import_batch
Vault import_batch: an agent has the Vault copy a named list of secrets from AWS Secrets Manager under one approval (docs/specs/SPEC_VAULT_LINKED_ENTRIES_FLEET_VAULT_AND_BATCH_IMPORT_2026_11_15.md §4).
backed
A backed entry’s value (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md §11.1): the Vault keeps the entry’s label, kind and grants, and the key itself stays in AWS Secrets Manager. Each use reads it from there with the host’s AWS login, so there is no copy in the Vault to go stale, to sync or to leak, and a change made in Secrets Manager is what the next use gets.
capture
Terminal run’s capture: a value a command prints goes straight into the Vault (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.2).
card
What a card entry knows about itself: its brand, whether its number passes the Luhn check, how its number is grouped, how long its security code is, and its expiry month and year. Pure functions, no store, no seal. docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §4.
card_fill
What a whole-card fill puts in each field of a form (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §6).
card_target
The card a whole-card fill is for, resolved by name before anything is asked (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §6).
changes
A password an agent changes on a site that already has an account (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §7.3).
endpoint_key
A key an agent’s launch environment names as ANTHROPIC_AUTH_TOKEN=vault:<entry id> (backend::agent_env): the model endpoint an agent was pointed at wants one. Unlike a model route’s key (route_key), which goes only into srv’s outgoing request, this value is put in the agent’s own process environment, where the agent can read it. So the entry must be one the person has opened to that agent (the Vault’s agents setting, vaults::entry_usable), and every launch it is put in is recorded under the agent’s name.
expiry
Expiry dates and their reminders (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §15.2).
files
Files that hold a Vault value for one command: Terminal run with secret_files (SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.3), for tools that read a key only from a file (--key-file, GOOGLE_APPLICATION_CREDENTIALS).
generate
Strong values the Vault makes itself, so no person types them and no agent sees them (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.1).
github_secret
The check of a CI secret: a repository’s or an environment’s Actions secret (docs/specs/SPEC_VAULT_LINKED_ENTRIES_FLEET_VAULT_AND_BATCH_IMPORT_2026_11_15.md §2.6).
history
An entry’s history: one row for every change to it and every use of it, in db_vault_activity (docs/specs/SPEC_VAULT_PARITY_ENTRY_HISTORY_REASONS_AND_IMPORT_2026_11_06.md §5).
import
Readers for the files other password managers export (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.4).
inspect
What an agent can ask the Vault about an entry and about the Vault itself: show, update (details only), verify and health (docs/specs/SPEC_VAULT_PARITY_ENTRY_HISTORY_REASONS_AND_IMPORT_2026_11_06.md §8). Every answer is ids, names, states and counts: no sealed value, tail or hash of one. A problem line says what is wrong in fixed words and never quotes a field’s value.
kdbx_export
Export the Vault to a password-protected KeePass database (.kdbx, KDBX 4) (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.3), which the person can open in KeePassXC, KeePassDX or Strongbox. The file is for them to take elsewhere, so it is as plain a KeePass database as can be made:
kdbx_names
The names a Vault entry’s parts and details have in a KeePass entry (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.3, §8.4).
kinds
What the Vault can hold: each kind of entry, the section it is listed in, its secret parts (sealed, never returned to an agent) and its plain fields (stored as they are; the pane shows them). docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.2.
linked
A linked entry: an entry that says where a key lives and who reads it, and holds no value (docs/specs/SPEC_VAULT_LINKED_ENTRIES_FLEET_VAULT_AND_BATCH_IMPORT_2026_11_15.md §2).
pace
How much an agent may add or change in an hour (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md R6). Adding and editing ask nobody, so this is the bound on what one misled agent can do before the person looks: a pace, never a permission. A call over the budget is refused at once with the time the budget next has room, and changes nothing. The budget resets by itself as the hour slides.
plain_export
Export the Vault as a plain, unencrypted CSV or JSON file, for a person leaving for another manager (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.3).
proposals
An agent’s request to change where a login is offered, on a login it did not make (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md R8).
requests
Agents’ requests for a new Vault entry, waiting for the person (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.4).
route_key
The key of a model route (backend::model_gateway), read for the gateway to add upstream. The value goes into one outgoing request and is not returned to any caller that could show it to an agent. The person approved the agent’s use of the route when it was made, so this asks no one; it records the use under the agent’s name, once per agent and route every few minutes, not once per request.
scrub
Takes a Vault value out of a command’s output before anything reads it (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §7.2).
seal
The Vault’s encryption at rest (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.5).
setting_key
A key a setting names as vault:<entry id> instead of holding it: srv’s own reader of a service key (voice input’s Groq key, and the other settings keys the same way when they move). The value is read inside srv at the moment of the call, goes into one outgoing request, and is never written to settings.json, a log or the renderer. The spelling is the one endpoint_key resolves for an agent’s launch environment.
shares
Shares: a login the person lets an agent’s own browser profile use (docs/specs/SPEC_VAULT_AGENTS_ENTER_CREDENTIALS_WHEREVER_ASKED_2026_11_16.md §5).
signins
Sign-ins a browser profile keeps (spec SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §9): login entries whose profile field names the profile whose tabs may use them, personal or profile:<id>. A login without a site belongs to no profile. HTTP Basic/Digest sign-ins are such entries with a realm (and proxy for a proxy’s), moved here from the keychain once (§5.4, §9.3).
signups
Sign-ins made on a sign-up form (spec SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §6.2): the password srv generates for a new-password field is a login entry of its own before the page sees it, tagged UNCONFIRMED until the form is sent with it. It never joins another entry, even one for the same user name: a sign-up the site refuses must not replace a password that works.
slots
Which parts of which entries an agent may have filled into a web form, and the kind of form field each belongs in (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §6.1, §6.3).
source_link
An entry’s machine copy: where a copy of its value lives outside the Vault (a secret store a service reads, a CI secret), and a check that says whether that copy still equals the entry’s value. A first step toward an entry’s “backing” (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md §11.1).
sync_activity
The Vault’s activity as sync records (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md section 6.7): append-only per machine, so lines from different machines never conflict.
sync_adapter
The Vault’s merge rule as the sync layer’s adapter (user_sync::adapter): the layer hands over the record’s current header and the incoming one, and this answers Applied, KeptLocal or Conflict { current } by the rules of super::sync_merge. It sees headers only, never a body: which side is current is decided by versions, what a change replaced (Header::base, signed by the origin and sealed into the body) and whether the entry is being rotated here. The tags of a conflicted entry, a union of both sides, are put together afterwards from the two bodies.
sync_capture
The Vault’s entries as records in the sync layer’s log (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md section 6): what a machine writes into a Vault’s collection when its entries change.
sync_grant
A site grant (“Always on this site” for an entry) as a sync record (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md section 6.6). Grants to an agent (signin:<agent>, a command’s first-use grant) name an agent of one machine and never sync: this module has no way to build a record from one, and the capture writes only a grant whose key is a site.
sync_links
An entry’s link ids on several machines. A link id is the opaque name a deep link gives a Vault entry (agentmux://vault/entry/<link id>): it says nothing about the entry and each machine gives one on first use. A link made on one machine of a shared Vault has to open the entry on the others, so the ids travel in the entry’s sealed body.
sync_merge
What the Vault does when a record arrives from another machine (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md sections 6.2 to 6.5): the answer the sync layer asks of an adapter, Applied, KeptLocal or Conflict(both).
sync_record
A Vault entry as the body of a sync record (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md sections 6.1 and 6.6): what goes inside the seal of super::sync_seal, and what a machine that receives one makes of it.
sync_seal
A Vault record as it leaves the machine: sealed with the Vault’s collection key, so a LAN peer’s log, the relay and the cloud store see only the clear header (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md section 6.1) and never a label, a kind, a site or a value.
sync_store
The Vault’s sync rules applied to the store: an entry’s link ids and the activity lines other machines made. The rules are sync_links and sync_activity; this is what reads and writes the tables they decide for.
sync_take
A record from another machine, taken into the Vault (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md sections 6.2 to 6.5): the other half of super::sync_capture, which writes this machine’s changes into the log.
transfer
Export to and import from the encrypted .vault file (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8).
uses
An agent’s use of a Vault entry, waiting for the person to allow it (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §6.4).
vaults
Several Vaults on one computer: the person keeps some entries to one set of agents and others to another, or to none (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md §5).
versions
An entry’s earlier values (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.4).
wordlist
256 short, common words for suggested .vault passphrases: each is 8 bits, so eight of them are 64 bits, which scrypt then slows down guessing for. The list is fixed: suggestion picks by index from a random byte.

Structs§

EntryChange
A change to an entry from the pane. A part left out keeps its value; clear empties the parts it names.
FillTarget
What a web form fill needs to know about an entry, before anything is asked: the entry, the part, and the kind of field that part belongs in.
GenerateRequest
What an agent asks generate for.
Generated
What generate made: the entry, never its value.
Line
A line of the record for something an agent did with an entry, with the reason it gave.
NewEntry
A new entry from the pane.
VaultActivity
VaultAgentEntry
An entry as an agent sees it (Vault list): what it is called, what kind it is, when it expires (a date being no secret) and where its machine copy is, if it has one. No value, tail, other field or grant.
VaultEntryInfo
An entry as the pane shows it: no value, only which parts are set and the main value’s last characters.

Constants§

GENERATED_KINDS
The kinds generate makes, and the part it fills: a value no person needs to choose. An ID number or a card is the person’s, never made up.
LINK_ID_PREFIX
The prefix of every link id.
PERSON
The actor the activity log names for the person.

Functions§

activity
command_target
What a command’s secrets entry names ("id" or "id.part"): the entry and the part handed to the process, the kind’s main part unless another is named. Unlike a web form, a command may be given any kind of entry; the person is asked first (spec section 7.3).
create
Saves a new entry from the person; returns its id.
create_in
create in the Vault vault_id, which must exist.
delete
entry_of_link
The entry a link id names, if it still exists.
fill_target
Resolves "id" or "id.part" for a fill, or says why it can’t be filled.
generate_entry
Creates an entry whose main value the Vault makes, for actor (the agent that asked). The value goes from the generator into the sealed row and nowhere else. A login with a site is made for no browser profile (generate_entry_in says which).
generate_entry_in
generate_entry for an agent whose own browser profile is own_profile (profile:<id>). A login it makes with a site belongs to that profile, and goes in the Vault the profile keeps its sign-ins in when the agent may use it: never Personal’s or another profile’s, which are the person’s. The site and the user name are the agent’s to give; where the sign-in is offered (a realm, a proxy, a profile) is the person’s.
link_ids
The link id of each entry in ids, given to those that have none yet (an id is assigned once and kept).
list_for_agent
Every entry agent may use, as it may see it. Reads no value, so it never needs the keychain. An agent that isn’t proven (None) sees the Vaults open to every agent.
list_for_agent_as
list_for_agent, telling the agent whose permanent uid is uid which logins are shared with it.
list_for_pane
Every entry for the pane, and why the values couldn’t be opened if they couldn’t (the tails are then empty).
record
Adds a line to the activity log; a failure to is logged, not raised.
record_copy
The host’s report of what became of a copy: done notes the use, failed only says it didn’t happen.
record_line
record for an agent’s use or change, with its reason.
record_row
record with the line’s other parts given too: the agent’s reason and references.
request_target
For a value no entry holds yet: the kind’s main part, to be typed by the person.
reveal
One part’s value, for the person: shown in the pane (revealed) or put on the clipboard by the host (copied). Only the host reaches this, after the OS has confirmed the person. A reveal is logged here, the value never is; a copy is logged by record_copy once the host has put it on the clipboard, so the trail never says copied when nothing was.
update
Changes an entry’s label, fields, tags and the parts given.
value_for_command
A part’s value for a command: the current value, or the version t names (id@previous, a rotation’s id@pending). Never returned to an agent.
value_for_fill
A part’s value for the host to type; never returned to an agent. The use is logged by the caller, with the site and the outcome.