Skip to content

Agent settings

What each agent gets without asking you: Ask, Allow or Block for each kind of value, for every agent or for one, and whether an agent may run commands. Set them in the app’s Agents, or with keypaste clients. Set what each agent gets walks through it.

Terminal window
keypaste clients [<agent>] [--set <kind>=ask|block|settings] [--run on|off] [--forget <key>] [--remove] [--json] [--vault <path>] [--approver <name>]
OptionEffect
<agent>The agent to change, by its bridge’s --client-label. Without one, lists the rules and the agents this computer knows.
--set <kind>=<rule>Its own rule for one kind: password, custom, variable, totp, notes or attachment, set to ask, block, or settings to follow the general rule.
--run on|offWhether it may ask to run commands. Each run is still asked.
--forget <key>Forgets one Always allow or pick kept for it, by the key the list shows.
--removeForgets the agent, which turns its run off.
--jsonMachine-readable output.
--approver <name>The approver to reach. Or KEYPASTE_APPROVER.

A terminal proves no person agreed, so keypaste clients makes only changes that release nothing more. Make an Allow, or remove an Always block, in the app. Make changes while the app or keypaste approve holds the vault: one made while nothing holds it is written unsealed and ignored. Each change is a rules-changed line in the audit log.

Each kind is Ask, Allow or Block for every agent. Ask is the default.

KindWhat it holds
PasswordsAn item’s password
Custom fieldsA custom field of an item in no environment, other than a card’s or identity’s protected field
Environment variablesA custom field of an item tagged env:<project> or env:<project>:<stage>
Card valuesA protected custom field of an item tagged Credit Card
Identity valuesA protected custom field of an item tagged Identity
One-time codesAn item’s current code, never its seed
NotesAn item’s notes
AttachmentsOne attachment, by name, at most 5 MiB

A field’s kind depends on its item’s tags and whether it is protected, never on its name. A passkey’s fields are always blocked.

RuleWhat it does
AskPuts each request to you (How approvals work).
AllowReleases without asking and records each release, once you confirm in the app.
BlockRefuses without asking.

An agent sees each item its bridge’s --expose reaches (what it can see): title, group, tags, website and, unless Settings › Agents hides it, username. Hosts and references, off by default, also shows Host fields and which items reference others; those then reach the agent’s AI provider too.

A stage named prod, production, prod-… or production-…, such as env:billing:prod, is protected. Its values and runs are asked every time, even under Allow, with no Always allow. A scoped token’s run is refused them. Block still refuses without asking.

An agent’s page in Agents can set any kind differently for that agent, and lists its kept Always allow answers with Remove. The most specific setting decides: a kept answer, then the agent’s rule, then the general setting. Rules follow the bridge’s --client-label, never the name the agent calls itself.

An agent may run a command with values in its environment only once you turn run on for it, and only through a bridge that offers run (--allow-run). Every run is put to you. A run needing a blocked value is refused.

Each vault’s settings are kept in ~/.keypaste/agents/ on this computer, never in the vault, so a synced or edited vault gives an agent nothing more. The approver seals each change with a key the vault holds. A file edited outside keypaste, copied or restored is ignored: every kind is asked and no agent may run commands until you set the rules again.

  • Nobody reads the agent’s reason for a release under Allow or Always allow, and the agent keeps what it got (THREATS T-12).
  • An Allow covers values added later, such as an item tagged into an environment afterwards (T-13).
  • Another program running as you that starts a bridge gets whatever is allowed, for every agent or for the label it uses (T-14).

scripts/verify-policy-e2e.sh runs the shipped keypaste approve, a bridge and keypaste clients: an agent with no rules is asked, a hand-edited Allow releases nothing, keypaste clients turns run on only through the process holding the vault, and an old policy.toml grants nothing.