Klav Atlas

Request

127 methods.

Mainmainfe8e2a0c8c24· 2026-12-05

Blast radius

4 direct · 0 transitive workspaces · 3 apps affected

What a change to these 127 methods can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (rust)
Contracts in its surface127 RPC

«Add to the task»: adds a pending approval request to the agent's running task and approves it once. Asks for presence.

Method
add_to_task
Transport
unix-socket
Framework
serde
Input
›{3 fields }
approval: string
digest: string`request_digest` of the card the person decided on (ADR 0030 §5).
password?: SecretText
6 usages · in 3 flows

An agent uses the passkey of a login in the person's browser (ADR 0020 §9), after `POST /v1/agent/access` with `passkey`: `klavd` checks the request the agent signed and its task on its own, then arms one use in tab `tab` for 60 s. If the page there already waits for a passkey of that site, the extension uses it at once. Answer: [`PasskeyArmed`], never the assertion. Needs `klavd` unlocked; a locked `klavd` says `locked` and does not ask the person.

Method
agent_passkey_arm
Transport
unix-socket
Framework
serde
Input
›{2 fields }
tab: string[`BrowserTab::tab`].
›step: PasskeyArmStepexpandThe use and the agent's signed request.
agent_id: AgentIdThe agent.
task_id: TaskIdThe task the server said covers it.
item_id: ItemIdThe login.
request: AgentRequestProofThe request the agent signed (`POST /v1/agent/access`).
3 usages · in 1 flow

The extension answers a page's sign-in with the use an agent armed in that tab ([`Event::PasskeyArm`]): `klavd` signs with UV (the task's approval is the verification, ADR 0020 §8) and without the person's surface. Only from the extension's connection the use was armed for, once, before it expires, and for the armed site and login. Answer: the assertion, like `passkey_get`.

Method
agent_passkey_use
Transport
unix-socket
Framework
serde
Input
›{5 fields }
tab_id: numberBrowser tab ID.
origin: stringThe sender's origin (or URL), as the browser reported it.
rp_id?: string`rpId` of the request; the origin's host when absent.
challenge: string`challenge`, base64url.
token: SecretTextThe token of [`Event::PasskeyArm`].
2Handled2
2 handler sites
3Called by0
No static caller
2 usages

The revocations whose key change was asked for and is not finished, from this device's sealed record (F4): agent, projects, rotated, pending, grants still to issue again and the last error. A revocation without a key change asked for never shows. Answer: `[PendingRevocation]`. No presence.

Method
agent_revocations
Transport
unix-socket
Framework
serde
4 usages · in 2 flows

An agent starts changing a login's password in the person's browser (ADR 0022 §5, steps 2–5), after `POST /v1/agent/rotations`: `klavd` checks the request the agent signed and its task, asks the tab for the field's rules, stores the new password as pending in the item and only then fills «current» with the old one and «new» (and «confirm») with the new one. Answer: `{filled, pending_id}`, never a value. Needs `klavd` unlocked.

Method
agent_rotate_begin
Transport
unix-socket
Framework
serde
Input
›{3 fields }
tab: string[`BrowserTab::tab`].
step: RotationStepThe change and the agent's signed request.
submit?: booleanSubmit the form afterwards.
3 usages · in 1 flow

The site refused it, or the agent gave up (`rotate_cancel`): the current one stays and the pending one goes to the history, marked unconfirmed. Answer: `{ok: true}`.

Method
agent_rotate_cancel
Transport
unix-socket
Framework
serde
Input
›{1 field }
step: RotationStepThe change and the agent's signed request.
4 usages · in 1 flow

The site took the new password (`rotate_confirm`, step 7), after `POST /v1/agent/rotations/{id}/confirm`: it becomes current and the old one goes to the history. Answer: `{ok: true}`.

Method
agent_rotate_confirm
Transport
unix-socket
Framework
serde
Input
›{1 field }
step: RotationStepThe change and the agent's signed request.
4 usages · in 1 flow

Whether the item's pending password is this change's, asked before the agent sends a confirm or a cancel to the server (read only; `klav_client::Unlocked::rotation_pending`). The step carries a signed request of its own, `POST /v1/agent/rotations/{id}/pending` (a path the server has no route for), which `klavd` checks as for a step and uses up. Answer: `{pending}`. An older `klavd` answers `bad_request`.

Method
agent_rotate_pending
Transport
unix-socket
Framework
serde
Input
›{1 field }
step: RotationStepThe change and the agent's signed request.
3 usages · in 1 flow

The exact SQL of a pending SQL statement's approval (ID or unique prefix; ADR 0052 §9.6), opened from its sealed statement and escaped for a terminal, or why it can only be denied.

Method
approval_statement
Transport
unix-socket
Framework
serde
Input
›{1 field }
approval: string
3 usages · in 2 flows

Approves an agent or replaces its grant. Asks for presence first: Touch ID, or the master password in `password` (ADR 0014).

Method
approve_agent
Transport
unix-socket
Framework
serde
Input
›{4 fields }
agent: AgentId
›grant: GrantRequestexpand
projects?: string[]Projects whose keys the agent receives: `vault/project`, a project name unique across vaults, or an ID.
vaults?: string[]Vaults whose current projects are all granted.
policy: PolicyThe policy. Vault and project selectors may use names: they are resolved to IDs before signing (the server never sees n…
pairing_code: stringThe six words the person compared.
password?: SecretText
6 usages · in 3 flows

Store a file in a `file` field.

Method
attach
Transport
unix-socket
Framework
serde
Input
›{4 fields }
query: stringReference, ID or title.
field: stringField name.
file_name: stringFile name to record.
content: SecretBytesContent.
5 usages · in 2 flows

The audit log, filtered (`klav log`).

Method
audit_log
Transport
unix-socket
Framework
serde
Input
›{1 field }
›filter?: LogFilterexpand
item?: stringAn item (reference or query, resolved on this device).
agent?: stringAn agent (name or ID).
vault?: stringA vault (name or ID).
since?: numberFrom this time (Unix ms).
until?: numberUntil this time (Unix ms).
alerts?: booleanOnly events with alerts.
task?: stringA task (ID, or a unique prefix of 6+ characters).
permissions?: Permission[]Only events with one of these permissions (ADR 0033 §8.1).
outcomes?: string[]Only events with one of these outcomes: `allow`, `ask` and `deny` from the policy, `approve` and `deny` from a decision.
text?: stringOnly events whose item (its reference, with the title, resolved on this device), agent, reason or site contain this tex…
limit?: numberAt most this many events, the newest that pass the other filters. An older `klavd` ignores it: the caller cuts what it …
4 usages · in 2 flows

`klav log reset` (ADR 0033 §8.4): forgets this device's copy of the audit log, in memory too, and the head it verified, for a server restored from a backup the person trusts. Also while locked; no network. Answer: the files removed (`audit-chain.bin`, `audit-head.json`).

Method
audit_reset
Transport
unix-socket
Framework
serde
3 usages · in 3 flows

The values of one item to type into a page (browser extension). A login whose URLs do not match `url` is refused (`denied`).

Method
autofill
Transport
unix-socket
Framework
serde
Input
›{5 fields }
item: stringItem ID.
url: stringThe page's address, as the browser reports it.
›part?: FillPartexpandEvery value, or only the TOTP code.
| "all"
| "totp"
| "pending"
chosen?: booleanThe person picked this login in the menu or the popup, from the «Saved for a subdomain» group: only then does a login s…
password?: SecretTextThe master password, sent again after `presence_required` (ADR 0041 §3.2): a real verification for the presence gate. I…
2Handled6
6 handler sites
3Called by2
2 call sites
8 usages · in 1 flow

Types an agent's values into that tab, if it is still on `host` (ADR 0017). The values never come back. The agent brings the values, decrypted under its own grant, but the connection's presence needs the unlocked session (ADR 0041 §3.1): locked, it answers `locked`, after a pause's `agents_paused`.

Method
browser_fill
Transport
unix-socket
Framework
serde
Input
›{10 fields }
tab: string[`BrowserTab::tab`].
host: stringThe host the agent checked against the item's URLs.
agent: stringAgent name, shown to the person in the page.
agent_id?: AgentIdAgent ID: `klavd` refuses the fill while the person has it paused (ADR 0033 §7.2). Without it, only a pause of every ag…
reason: stringThe agent's reason, shown too.
item?: ItemIdThe item the values come from: with the presence gate on, the prompt names its title as the vault has it, never as the …
›kind: ItemKindexpandItem type.
| "login"
| "card"
| "identity"
| "ssh_key"
| "file"
| "totp"
| "note"
| "api_key"
| "database"
| "generator_history"
| "preferences"
| "agent_labels"
| "environment"
fields: FillValue[]Values to type.
selectors?: FieldSelector[]CSS selectors for some fields (field name → selector).
submit?: booleanSubmit the form afterwards.
5 usages · in 1 flow

Cancels the deletion of the account the person asked for (ADR 0037 §2), after Touch ID or the master password, like [`Request::ResumeAgents`] (ADR 0037 A2): canceling brings the agents back. Answer: `{ "canceled": bool }` (`false`: there was none).

Method
cancel_account_deletion
Transport
unix-socket
Framework
serde
Input
›{1 field }
password?: SecretTextMaster password, where there is no Touch ID.
5 usages · in 3 flows

Touch ID only, to confirm the person is there (ADR 0037 §1): opens this Mac's Secure Enclave key, which takes only the enrolled fingers and never the Mac's password, and drops what it gives back. It deletes nothing, needs no unlock and takes no password: the caller (the Mac app, the CLI) asks for the master password next and talks to the server itself. The prompt's words are `klavd`'s, for the `purpose`. Answer: `{ "ok": true }`, or `biometry_unavailable` / `biometry_failed`.

Method
confirm_presence
Transport
unix-socket
Framework
serde
Input
›{1 field }
›purpose: PresencePurposeexpandWhat the presence is for.
"delete_account"
4 usages · in 2 flows

Create an item.

Method
create
Transport
unix-socket
Framework
serde
Input
›{1 field }
›item: NewItemexpandThe item.
kind: ItemKindType.
title: stringTitle.
vault?: stringVault name or ID (default: the "Personal" vault, or the only one).
project?: stringProject name or ID (default: "General").
fields?: FieldInput[]Field values.
urls?: string[]URLs.
tags?: string[]Tags.
notes?: SecretTextNotes.
expires_at_ms?: numberExpiry of a temporary item (Unix milliseconds); absent when permanent. Validated against this device's clock when the i…
allow_duplicate?: booleanCreate it even if an item with the same title already exists in the project (references by title become ambiguous).
6 usages · in 2 flows

Decides on an approval request (ID or unique prefix). Approving asks for presence like `approve_agent`.

Method
decide_approval
Transport
unix-socket
Framework
serde
Input
›{5 fields }
approval: string
approve: boolean
digest: string`request_digest` of the card the person decided on (ADR 0030 §5): nothing is signed if the request changed since.
lease_secs?: numberApprove for this many seconds instead of once.
password?: SecretText
8 usages · in 3 flows

Approves (with the person's changes) or denies a pending task (ID or unique prefix). Approving asks for presence like `approve_agent`.

Method
decide_task
Transport
unix-socket
Framework
serde
Input
›{5 fields }
task: string
approve: boolean
digest: string`request_digest` of the card the person decided on (ADR 0030 §5).
›choice?: TaskChoiceexpand
without?: [ItemId, Permission | null][]Unchecked: a whole item (`None`) or one of its permissions.
with?: [ItemId, Permission | null][]Checked by hand: what Klav offered unchecked (a `passkey`). Never what the policy denies, a permission without a site o…
for_secs?: numberA shorter duration (seconds); never longer than requested.
password?: SecretText
8 usages · in 4 flows

Denies a pending agent secret request with an account-signed decision.

Method
deny_secret_request
Transport
unix-socket
Framework
serde
Input
›{2 fields }
request: stringRequest ID or unique prefix.
digest: stringCard's `proposal_digest` (hex): refuses if the request changed.
5 usages · in 3 flows

Edit an item.

Method
edit
Transport
unix-socket
Framework
serde
Input
›{2 fields }
query: stringReference, ID or title.
›patch: ItemPatchexpandChanges.
title?: stringNew title.
set?: FieldInput[]Fields to set (created if missing).
remove?: string[]Fields to remove.
add_urls?: string[]URLs to add.
remove_urls?: string[]URLs to remove (exactly as stored): a site an agent added that the person does not want (ADR 0030 §7).
add_tags?: string[]Tags to add.
notes?: SecretTextNew notes.
expires_at_ms?: number | nullExpiry edit: absent keeps the current expiry, `Some(Some(ms))` sets a new expiry, and `Some(None)` clears it to make th…
allow_duplicate?: booleanRename even if another live item of the project already has the new title (references by title become ambiguous).
7 usages · in 3 flows

One environment: names, origins and what an agent changed, never a value. Answer: [`klav_client::environments::EnvironmentDetail`] or `null` when there is none of that name.

Method
environment
Transport
unix-socket
Framework
serde
Input
›{2 fields }
project?: string
name: stringThe environment's name.
6 usages · in 2 flows

The review of `klav env import` (ADR 0032 §6): compares the values in memory with the environment and the vault's fields, so it is gated as a value. Answer: [`klav_client::environments::ImportReview`] list, with no value.

Method
environment_import_review
Transport
unix-socket
Framework
serde
Input
›{4 fields }
project?: string
name: stringThe environment's name.
variables: [string, SecretText][]Name and value of each variable read from the file.
password?: SecretTextMaster password for the presence gate, where there is no Touch ID.
7 usages · in 1 flow

Saves a change to an environment (ADR 0032 §3.1): one that makes the protection grow reissues the agents' grants first; one that lowers it asks for Touch ID or the master password first. Answer: [`klav_client::environments::EnvironmentSaved`].

Method
environment_save
Transport
unix-socket
Framework
serde
Input
›{4 fields }
project?: string
name: stringThe environment's name.
›edit: EnvironmentEditexpandThe change.
create: booleanCreate it if it does not exist (else: it must exist).
must_be_new: booleanMust not exist yet (`klav env create`).
protected?: booleanTurn `protected` on or off.
set: NewVariable[]Variables to add or replace.
remove: string[]Variables to remove.
expires_at_ms?: number | nullExpiry edit: absent keeps it, `Some(Some(ms))` sets a new expiry, `Some(None)` makes the environment permanent.
password?: SecretTextMaster password, where there is no Touch ID.
5 usages · in 5 flows

Moves an environment to the trash; a protected one is first saved unprotected, with presence. Answer: [`klav_client::environments::EnvironmentSaved`].

Method
environment_trash
Transport
unix-socket
Framework
serde
Input
›{3 fields }
project?: string
name: stringThe environment's name.
password?: SecretTextMaster password, where there is no Touch ID.
5 usages · in 3 flows

The environments of a project, or of every project (ADR 0032 §6). Answer: [`klav_client::environments::EnvironmentListing`] list.

Method
environments
Transport
unix-socket
Framework
serde
Input
›{1 field }
project?: string`vault/project`, a project name or ID.
6 usages · in 3 flows

Registers this connection as a browser extension that fills pages for agents (sent by the extension through `klav-native-host`). [`EventEnvelope`] lines then arrive on it between responses.

Method
extension_attach
Transport
unix-socket
Framework
serde
Input
›{1 field }
browser: stringWhich browser, for messages (`Chrome`, `Firefox`…).
2Handled4
4 handler sites
3Called by0
No static caller
4 usages

The extension's answer to [`Event::Presence`]: the master password the person typed in Klav's own frame (ADR 0041 §3.1, §3.2). Only on the connection the event was sent to. `klavd` checks it against the unlocked session: right, the connection is verified and `{}` comes back; wrong, `wrong_credentials`, and the event keeps waiting for another try. Canceling is an `extension_reply` with an `error`; an `extension_reply` with `ok` never verifies anything.

Method
extension_presence
Transport
unix-socket
Framework
serde
Input
›{2 fields }
event: numberThe event's `id`.
password: SecretTextThe master password.
2Handled4
4 handler sites
3Called by0
No static caller
4 usages

The extension's answer to an event.

Method
extension_reply
Transport
unix-socket
Framework
serde
Input
›{3 fields }
event: numberThe event's `id`.
ok?: unknownResult on success.
›error?: ErrorBodyexpandError.
code: ErrorCodeStable code (`docs/klavd.md` §4).
message: stringHuman-readable message (no secrets).
paused?: AgentPausedWith [`ErrorCode::AgentsPaused`] only: the pause that holds the agent (ADR 0033 §7.4). Never sent with another code, so…
presence?: PresenceAskWith [`ErrorCode::PresenceRequired`] only: what the client's password prompt must say (ADR 0041 §2.4). Never sent with …
2Handled4
4 handler sites
3Called by0
No static caller
4 usages

Fulfills a pending agent secret request: saves the secret into the vault, optionally grants `klav-proxy` access or links an environment variable (requiring presence when `input.grant_proxy` is true or `input.env_link` is present), and posts the account-signed decision.

Method
fulfill_secret_request
Transport
unix-socket
Framework
serde
Input
›{3 fields }
request: stringRequest ID or unique prefix.
›input: FulfillSecretRequestexpandPerson's fulfillment inputs (secret, destination, optional proxy toggle, and the card's `proposal_digest`).
digest: string[`SecretRequestCard::proposal_digest`] (hex) of the card the person reviewed.
secret: SecretTextSecret value entered by the person (hidden input / stdin). Never logged.
vault?: stringDestination vault name or ID (`create` mode; defaults to the proposal's `vault_id` or the default vault).
project?: stringDestination project name or ID (`create` mode; defaults to the proposal's `project_id` or the default project).
title?: stringTitle override (`create` mode; defaults to `proposal.title`).
field?: stringField name override (defaults to `proposal.field`).
urls?: string[]Login URLs explicitly confirmed by the person (`create` mode for `login` items). `None` saves **no** agent-suggested UR…
notes?: SecretTextNotes override (`create` mode).
allow_duplicate?: booleanAllow creating an item whose title matches another live item in the same project.
grant_proxy?: booleanWhether the person explicitly opted in to granting `klav-proxy` access to this item (unchecked by default, ADR 0046 Q3 …
proxy_base_version?: numberExpected proxy grant version shown in the preview when `grant_proxy` is `true` (staleness check, same as `ProxyGrant`).
every_device_updated?: booleanPerson confirmed every device is updated when this is the account's first per-item grant.
shown_words?: stringPairing words shown when the proxy has no grant yet.
proxy_credential?: ProxyCredentialSpecOptional edited proxy credential spec (defaults to `proxy_spec_from_proposal(&proposal.proxy_proposal, field)`).
env_link?: EnvLinkProposalLink the saved field into this environment variable (ADR 0054 §3). `None` means the person did not enable the link. For…
proxy_profile?: stringThe profile name to grant under, in place of the proposal's (ADR 0053 Q7). For a sandbox's request whose name is taken,…
attach_sandbox?: booleanAlso let the sandbox that asked use the new profile now, until it ends (ADR 0053 §5, Q6 (a)): only with `grant_proxy`, …
password?: SecretTextMaster password for presence when `input.grant_proxy` is true or `input.env_link` is present and Touch ID is unavailabl…
9 usages · in 3 flows

The value of one generator history entry.

Method
generated_value
Transport
unix-socket
Framework
serde
Input
›{2 fields }
created_at: numberThe entry's `created_at`.
password?: SecretTextThe master password, sent again after `presence_required` (ADR 0041 §3.2): a real verification for the presence gate. I…
10 usages · in 3 flows

Records a generated password in the local outbox (ADR 0022 §2), durably, before the caller types it anywhere. Works offline; the outbox goes to the generator history in the background.

Method
generator_record
Transport
unix-socket
Framework
serde
Input
›{2 fields }
value: SecretTextThe password.
host?: stringThe site it is for.
5 usages · in 2 flows

Signs a change shown with `grant_change_prepare`: syncs, verifies the grant in force again and refuses unless `digest` is still the sheet's (F3). Asks for presence (Touch ID, or `password`) only when the change widens, as `klavd` computes it (P8). Answer: `GrantChangeReport`.

Method
grant_change_apply
Transport
unix-socket
Framework
serde
Input
›{4 fields }
agent: AgentId
›change: GrantChangeexpand
projects?: string[]The projects of the new grant: `vault/project`, a project name unique across vaults, or an ID.
vaults?: string[]Vaults whose current projects are all in the new grant.
policy: ChangePolicyThe new policy.
rotate_removed?: booleanAlso change the key of each project taken away (P9: offered, unchecked): `rotate_project_key`, and new grants for the o…
digest: stringThe `digest` of the sheet the person saw.
password?: SecretText
5 usages · in 3 flows

The sheet of a change to an active agent's grant: only the differences, which widen, and the digest that binds the sheet to the grant in force and to `change` (F3). Signs nothing. Answer: `GrantChangePreview`. No presence.

Method
grant_change_prepare
Transport
unix-socket
Framework
serde
Input
›{2 fields }
agent: AgentId
›change: GrantChangeexpand
projects?: string[]The projects of the new grant: `vault/project`, a project name unique across vaults, or an ID.
vaults?: string[]Vaults whose current projects are all in the new grant.
policy: ChangePolicyThe new policy.
rotate_removed?: booleanAlso change the key of each project taken away (P9: offered, unchecked): `rotate_project_key`, and new grants for the o…
4 usages · in 2 flows

An active agent's grant in force, in the apps' editor model, or read-only with the reason (F3, F4). Answer: `GrantEditor`. No presence.

Method
grant_editor
Transport
unix-socket
Framework
serde
Input
›{1 field }
agent: AgentId
3 usages · in 2 flows

The health settings of this home (`health.json`): with `breach_check`, turns the breach check on or off first. Answer: `{breach_check, notice}`. Works locked.

Method
health_settings
Transport
unix-socket
Framework
serde
Input
›{1 field }
breach_check?: boolean
5 usages · in 3 flows

Declares that this connection's `unlock`, or its first window verification, should last until Klav locks (ADR 0041 §1.2): the held connection. No argument; it grants nothing by itself. Answers `not_supported` until layer 6 turns it on, and always on Linux.

Method
hold
Transport
unix-socket
Framework
serde
3 usages · in 1 flow

Adds an export file (or a Google Authenticator link or QR image) to an import (ADR 0024). Without `session`, starts a new one. A file larger than a message goes in pieces: every piece but the last has `more`. Answer: [`ImportAdded`]. The import lives until `lock`.

Method
import_add
Transport
unix-socket
Framework
serde
Input
›{5 fields }
session?: stringThe import, from a previous answer.
name: stringFile name, for messages.
from?: stringWhat the person says it is (`bitwarden`, `google`…).
data: SecretBytesThe content (or this piece of it).
more?: booleanMore pieces of this file follow.
4 usages · in 3 flows

Imports: creates and merges as the preview said, keeping replaced passwords in the history (`klav_client::import::ImportResult`). The import is forgotten afterwards.

Method
import_apply
Transport
unix-socket
Framework
serde
Input
›{3 fields }
session: stringThe import.
vault?: stringDestination vault (default vault when absent).
project?: stringDestination project.
5 usages · in 2 flows

What importing would do, without values (`klav_client::import::ImportPreview`). Changes nothing.

Method
import_preview
Transport
unix-socket
Framework
serde
Input
›{3 fields }
session: stringThe import.
vault?: stringDestination vault (default vault when absent).
project?: stringDestination project.
4 usages · in 2 flows

«Who used it» for one item (ADR 0033 §8.1): every event an agent wrote about it, newest first, with how it went. Answer: [`klav_client::activity::ItemActivity`].

Method
item_activity
Transport
unix-socket
Framework
serde
Input
›{1 field }
item: stringReference, title or ID (an ID also finds a purged item).
3 usages · in 2 flows

List items.

Method
list
Transport
unix-socket
Framework
serde
Input
›{1 field }
›filter: ItemFilterexpandFilter.
vault?: stringVault name or ID.
project?: stringProject name or ID.
kind?: ItemKindItem type.
kinds?: ItemKind[]Any of these types (together with `kind`). Empty: every type.
codes?: booleanOnly items with a filled one-time password field, of any type (the «Codes» view). Lists metadata only, never the code.
tag?: stringTag.
query?: stringText to search in titles, usernames, URLs and tags.
trash: booleanList the trash instead of live items.
8 usages · in 3 flows

Signs a change to the local MCP client `name`. A new token's digest comes in `change`, never the token. `base_version` and `shown_proxy` are what the preview showed: nothing is signed if either changed. Asks for presence.

Method
local_client_change
Transport
unix-socket
Framework
serde
Input
›{5 fields }
name: string
›change: LocalClientChangeexpand
›| {1 field }
›set: {2 fields }
profiles: string[]The MCP profiles it may use.
token_digest?: Blob`SHA-256(tuple("klav/v1/proxy/local-client", proxy, token))`.
| "remove"
base_version: number
shown_proxy: AgentId
password?: SecretText
5 usages · in 1 flow

What a change to the local MCP client `name` of the account's proxy would sign (ADR 0049 §3.2), without signing or asking for presence.

Method
local_client_preview
Transport
unix-socket
Framework
serde
Input
›{2 fields }
name: string
›change: LocalClientChangeexpand
›| {1 field }
›set: {2 fields }
profiles: string[]The MCP profiles it may use.
token_digest?: Blob`SHA-256(tuple("klav/v1/proxy/local-client", proxy, token))`.
| "remove"
3 usages · in 1 flow

Whether turning the MCP gateway on needs the person's word that every device and the proxy are updated (ADR 0049, amendment of 2026-11-27): `true` when the account has another device that is not revoked, or a proxy of the person's own, or when that can't be read. A `klavd` older than this answers that the request is malformed, which the apps read as `true`.

Method
mcp_gateway_older
Transport
unix-socket
Framework
serde
6 usages · in 2 flows

Turns the account's MCP gateway switch on (ADR 0049 §9). Refused unless `every_device_updated` acknowledges what devices and proxies older than the gateway lose, when the account may hold one (`mcp_gateway_older`); asks for presence unless it is already on. Nothing turns it off. Answer: `true`.

Method
mcp_gateway_on
Transport
unix-socket
Framework
serde
Input
›{2 fields }
every_device_updated?: boolean
password?: SecretText
5 usages · in 3 flows

Move an item to another project, perhaps of another vault. The destination copy keeps the title, fields, notes, URLs and attachments; the source goes to the trash only once the copy is complete.

Method
move_item
Transport
unix-socket
Framework
serde
Input
›{4 fields }
query: stringReference, ID or title.
vault?: stringDestination vault name or ID (default vault when absent).
project?: stringDestination project name or ID (default: "General").
allow_duplicate?: booleanMove it even if the destination project already has a live item with the same title.
5 usages · in 2 flows

The person offers an agent a task with `rotate` on these logins (ADR 0022 §6), signed without a request from the agent. Asks for presence like `decide_task`. Answer: the task's `TaskCard`.

Method
offer_task
Transport
unix-socket
Framework
serde
Input
›{2 fields }
›offer: OfferRequestexpandThe agent, the logins and, optionally, title, reason and duration.
agent: stringThe agent (ID, unique ID prefix or name).
items: ItemId[]The logins.
task?: stringTitle ([`DEFAULT_OFFER_TASK`] when absent).
reason?: stringReason ([`DEFAULT_OFFER_REASON`] when absent).
duration_secs?: numberDuration in seconds ([`DEFAULT_OFFER_SECS`] when absent; 5 minutes to 24 hours).
password?: SecretText
6 usages · in 3 flows

The logins with a passkey for the page (ADR 0020): metadata only. Without an `rp_id` in the answer, the call goes to the browser.

Method
passkey_candidates
Transport
unix-socket
Framework
serde
Input
›{3 fields }
origin: stringThe sender's origin (or URL), as the browser reported it.
rp_id?: string`rpId` of the request; the origin's host when absent.
allow_credentials?: string[]`allowCredentials`, base64url IDs.
2Handled3
3 handler sites
3Called by2
2 call sites
5 usages · in 1 flow

Create a passkey (ADR 0020): asks for Touch ID (or `password`) first, then stores it and returns the registration for the page, or says why not (`browser`, `excluded`, `exists`).

Method
passkey_create
Transport
unix-socket
Framework
serde
Input
›{2 fields }
›request: PasskeyCreateRequestexpandWhat the page asked for.
origin: stringThe sender's origin, as the browser reported it.
rp_id?: string`rp.id`; the origin's host when absent.
rp_name?: string`rp.name`.
user_id: string`user.id`, base64url.
user_name: string`user.name`.
user_display_name?: string`user.displayName`.
challenge: string`challenge`, base64url.
exclude_credentials?: string[]`excludeCredentials`, base64url IDs.
item?: stringPut it in this existing login (ID) instead of a new one.
replace?: booleanThe person confirmed replacing the passkey of the same account (same rpId and user handle, ADR 0020 §2).
vault?: stringVault of a new login (default vault when absent).
project?: stringProject of a new login (default project when absent).
password?: SecretTextMaster password instead of Touch ID.
2Handled3
3 handler sites
3Called by1
1 call site
4 usages · in 1 flow

Sign in with the passkey of `item` (ADR 0020): asks for Touch ID (or `password`) first, then returns the assertion for the page.

Method
passkey_get
Transport
unix-socket
Framework
serde
Input
›{5 fields }
origin: stringThe sender's origin (or URL), as the browser reported it.
rp_id?: string`rpId` of the request; the origin's host when absent.
challenge: string`challenge`, base64url.
item: stringThe login the person picked.
password?: SecretTextMaster password instead of Touch ID.
2Handled3
3 handler sites
3Called by1
1 call site
4 usages · in 1 flow

The passkey user-verification window of this `klavd` (ADR 0020 §8): with `window`, sets it first. Loosening it asks for Touch ID (or `password`); tightening does not. Answer: `{window}`. Works locked while the presence gate is off; with it on, the setting is sealed in `klavd`'s local data and this answers `locked` while locked, and loosening opens no passkey window (ADR 0041 §2.4).

Method
passkey_uv
Transport
unix-socket
Framework
serde
Input
›{2 fields }
›window?: Windowexpand
| "always"
| "5m"
| "unlocked"
password?: SecretText
2Handled4
4 handler sites
3Called by0
No static caller
4 usages

Pauses every agent (no `agent`) or one (ADR 0033 §7), now and without asking for presence: a scare costs one click (P2). Unlocked, `klavd` signs it with the account and sends it at once; offline, it applies it here and keeps trying. Locked, pausing every agent works too: `klavd` applies it here at once and signs and sends it after the next unlock; pausing one agent needs `klavd` unlocked. Works locked. Answer: [`PauseInEffect`] list, as in `status`.

Method
pause_agents
Transport
unix-socket
Framework
serde
Input
›{2 fields }
agent?: AgentIdAgent ID (the client resolves names with `agents`).
until?: numberWhen the pause ends by itself (Unix ms); none: until the person resumes.
5 usages · in 3 flows

Turns the account's `pg_guard` switch on (ADR 0052 §10), as `proxy_tunnels_on`. Nothing turns it off. Answer: `true`.

Method
pg_guard_on
Transport
unix-socket
Framework
serde
Input
›{2 fields }
every_device_updated?: boolean
password?: SecretText
5 usages · in 2 flows

The presence window of this `klavd` (ADR 0041 §2.4): with `window`, sets it first. Loosening asks for Touch ID (or `password`) and opens no window; tightening asks for nothing and applies at once. Answer: `{window}`. `locked` while locked; `not_supported` while the presence gate is off.

Method
presence_window
Transport
unix-socket
Framework
serde
Input
›{2 fields }
›window?: Windowexpand
| "always"
| "5m"
| "unlocked"
password?: SecretText
9 usages · in 5 flows

One previous password of an item.

Method
previous_password
Transport
unix-socket
Framework
serde
Input
›{3 fields }
query: stringReference, ID or title.
index: numberIts `index` in `password_history`.
password?: SecretTextThe master password, sent again after `presence_required` (ADR 0041 §3.2): a real verification for the presence gate. I…
13 usages · in 3 flows

Klav Cloud's proxy (ADR 0051 §6.1, §6.3, §4.4): `use` enrolls the account, verifies the enclave's attestation and names it the account's proxy; `stop` revokes its agent (changing the keys of what it held) and uses none; `reset` enrolls the next generation, moves the credentials to it and revokes the old agent. Each asks for presence first. Answers a `CloudOutcome`.

Method
proxy_cloud
Transport
unix-socket
Framework
serde
Input
›{2 fields }
›action: CloudActionexpand
| "use"
| "stop"
| "reset"
password?: SecretText
6 usages · in 5 flows

Whether the account is entitled to Klav Cloud's proxy (ADR 0051 §15, `GET /v1/account/hosted-proxy`): `null` from a server older than it. What the apps read to offer «Use Klav Cloud Proxy».

Method
proxy_cloud_entitled
Transport
unix-socket
Framework
serde
6 usages · in 3 flows

Grants `item` to the account's proxy with `credential`'s profile and rules. `base_version` is the grant version the preview showed: nothing is signed if it changed. The presence prompt shows what is signed, and, while the proxy is pending, the 6 words of the key klavd fetched. `every_device_updated` acknowledges what older devices lose, needed for the account's first per-item grant.

Method
proxy_grant
Transport
unix-socket
Framework
serde
Input
›{7 fields }
item: string
›credential: ProxyCredentialSpecexpand
profile: stringProfile name: the first segment of the proxy's local URL.
upstream: stringWhere requests go: `https://host[:port]`.
header: stringThe header the value goes in.
prefix?: stringText before the value (`Bearer `).
field?: stringThe field holding the value; none: the item's main secret.
methods: string[]HTTP methods let through (at least one).
path_prefixes: string[]Path prefixes let through (at least one; `/` for every path).
ask?: booleanEvery call asks the person first, instead of going through.
ask_methods?: string[]More methods, each call of which asks the person first.
rate_per_minute?: numberMost calls per minute.
mcp?: McpSpecAn MCP profile (ADR 0049 §2): its endpoint, fixed headers and tool rules. Absent for every other profile, so a spec wit…
tunnel?: TunnelSpecWebSocket tunnels (ADR 0052 §2, §5): the hosts a handshake may reach and whether each one asks. Absent for every other …
pg?: PgSpecA Postgres profile (ADR 0052 §7): `--preset postgres`. Absent for every other profile, so a spec without it is the byte…
base_version: number
every_device_updated?: boolean
shown_words?: stringThe proxy's 6 words the preview showed, while it is pending. Only a staleness check, like `base_version`: klavd refuses…
shown_item?: ItemIdThe item the preview showed (`item_id`): klavd resolves `item` again and refuses if it names another item now. A stalen…
password?: SecretText
6 usages · in 2 flows

What `proxy_grant` would sign for `item` (the profile, its rules, the proxy's words and warnings), without signing or asking for presence.

Method
proxy_grant_preview
Transport
unix-socket
Framework
serde
Input
›{2 fields }
item: string
›credential: ProxyCredentialSpecexpand
profile: stringProfile name: the first segment of the proxy's local URL.
upstream: stringWhere requests go: `https://host[:port]`.
header: stringThe header the value goes in.
prefix?: stringText before the value (`Bearer `).
field?: stringThe field holding the value; none: the item's main secret.
methods: string[]HTTP methods let through (at least one).
path_prefixes: string[]Path prefixes let through (at least one; `/` for every path).
ask?: booleanEvery call asks the person first, instead of going through.
ask_methods?: string[]More methods, each call of which asks the person first.
rate_per_minute?: numberMost calls per minute.
mcp?: McpSpecAn MCP profile (ADR 0049 §2): its endpoint, fixed headers and tool rules. Absent for every other profile, so a spec wit…
tunnel?: TunnelSpecWebSocket tunnels (ADR 0052 §2, §5): the hosts a handshake may reach and whether each one asks. Absent for every other …
pg?: PgSpecA Postgres profile (ADR 0052 §7): `--preset postgres`. Absent for every other profile, so a spec without it is the byte…
4 usages · in 3 flows

Lets `agent` start sandboxes through the account's proxy: signs the issuer's grant and the proxy's. The base versions and the words are what the preview showed: nothing is signed if they changed. Asks for presence, with what it signs.

Method
proxy_issuer_add
Transport
unix-socket
Framework
serde
Input
›{9 fields }
agent: string
›issuer: IssuerSpecexpand
profiles: string[]Profiles of the proxy its sandboxes may use.
url: stringWhere a sandbox reaches the proxy: `tls://host:port` (spec §13.10).
max_ttl_secs?: numberLongest TTL it may give a sandbox, in seconds (default 8 h).
max_live?: numberMost of its sandboxes alive at once (default 3).
inject_ask?: booleanPut `inject` in `ask` in the issuer's grant (ADR 0036 E6.2, Q-D).
secret_requests?: booleanWhether its sandboxes may ask the person for secrets through the proxy (ADR 0053 Q3 (a), `--secret-requests`): `Some(tr…
proxy_base_version: number
issuer_base_version: number
shown_issuer: AgentIdThe issuer and the proxy the preview showed: agents name themselves at registration, so klavd refuses if `agent` or the…
shown_proxy: AgentId
every_device_updated?: boolean
shown_words?: string
password?: SecretText
6 usages · in 2 flows

What `proxy_issuer_add` would sign for `agent` (ADR 0036 E6.2): profiles, limits, the proxy's address, the agent's words and the warnings, without signing or asking for presence.

Method
proxy_issuer_preview
Transport
unix-socket
Framework
serde
Input
›{2 fields }
agent: string
›issuer: IssuerSpecexpand
profiles: string[]Profiles of the proxy its sandboxes may use.
url: stringWhere a sandbox reaches the proxy: `tls://host:port` (spec §13.10).
max_ttl_secs?: numberLongest TTL it may give a sandbox, in seconds (default 8 h).
max_live?: numberMost of its sandboxes alive at once (default 3).
inject_ask?: booleanPut `inject` in `ask` in the issuer's grant (ADR 0036 E6.2, Q-D).
secret_requests?: booleanWhether its sandboxes may ask the person for secrets through the proxy (ADR 0053 Q3 (a), `--secret-requests`): `Some(tr…
4 usages · in 4 flows

Whether turning WebSocket tunnels on needs the person's word that every device and the proxy are updated (ADR 0052 §10): as `mcp_gateway_older`, and also with Klav Cloud's proxy. A `klavd` older than this answers that the request is malformed, which the apps read as `true`.

Method
proxy_tunnels_older
Transport
unix-socket
Framework
serde
7 usages · in 3 flows

Turns the account's `proxy_tunnels` switch on (ADR 0052 §10). Refused unless `every_device_updated` acknowledges what older devices and proxies lose, when the account may hold one; asks for presence unless it is already on. Nothing turns it off. Answer: `true`.

Method
proxy_tunnels_on
Transport
unix-socket
Framework
serde
Input
›{2 fields }
every_device_updated?: boolean
password?: SecretText
6 usages · in 3 flows

Sets which agent is the account's credential proxy (`agent`, a name or ID), or none. Asks for presence first (ADR 0036 §14).

Method
proxy_use
Transport
unix-socket
Framework
serde
Input
›{2 fields }
agent?: string
password?: SecretText
5 usages · in 1 flow

Permanently delete an item that is in the trash. `id` is the item ID; a reference or unique title also works, for the CLI.

Method
purge
Transport
unix-socket
Framework
serde
Input
›{1 field }
id: stringItem ID, reference or title.
5 usages · in 2 flows

Forget the cached vaults and the rollback marks (keeping revoked agents and signed vault keys) and sync from scratch.

Method
reset_cache
Transport
unix-socket
Framework
serde
4 usages · in 1 flow

Resolve `klav://` references to values (`run`, `inject`).

Method
resolve
Transport
unix-socket
Framework
serde
Input
›{3 fields }
references: string[]References.
variables_only?: booleanEvery reference must name a variable of an environment (ADR 0032 §6: «Show» and «Copy» in the apps); `klavd` refuses an…
password?: SecretTextThe master password, sent again after `presence_required` (ADR 0041 §3.2): a real verification for the presence gate. I…
16 usages · in 5 flows

The person decides on a pending password from the item's card: `accept` makes it current («Use the new one»), else it goes to the history («Keep the current one»).

Method
resolve_pending
Transport
unix-socket
Framework
serde
Input
›{2 fields }
query: stringReference, ID or title.
accept: booleanUse the new one.
4 usages · in 2 flows

Restore an item from the trash. `id` is the item ID; a reference or unique title also works, for the CLI.

Method
restore
Transport
unix-socket
Framework
serde
Input
›{1 field }
id: stringItem ID, reference or title.
5 usages · in 2 flows

Resumes every agent (no `agent`) or one, after Touch ID or the master password (ADR 0033 P2). Resuming every agent does not lift the pauses of single agents. Answer: [`PauseInEffect`] list.

Method
resume_agents
Transport
unix-socket
Framework
serde
Input
›{2 fields }
agent?: AgentIdAgent ID.
password?: SecretTextMaster password, where there is no Touch ID.
6 usages · in 4 flows

«Fix my reused passwords» (ADR 0022 §6), for the person: the logins that share a password, sorted by host, with their change pages, checked against `agent`'s grant, and the agents that can take the task (`klav_client::offer::ReusedOffer`). Never for an agent: no MCP tool or agent command asks for it.

Method
reused_offer
Transport
unix-socket
Framework
serde
Input
›{1 field }
agent?: stringThe agent (ID, prefix or name); the only one when absent.
4 usages · in 2 flows

Revokes an agent; with `rotate`, also rotates its projects' keys, one project at a time, releasing the session between projects (ADR 0033, amendment of 2026-11-10, F2). The progress goes in `status` (`revocations`) while it runs. Called again with `rotate` on a revoked agent, it finishes what is left.

Method
revoke_agent
Transport
unix-socket
Framework
serde
Input
›{3 fields }
agent: AgentId
rotate?: boolean
background?: booleanWith `rotate`: answer once the agent is revoked and the key change is written down, and change the keys in the backgrou…
6 usages · in 4 flows

The person's list of sandboxes (ADR 0036 E2.1): every sandbox in the verified chain, with the last heartbeat of the account's proxy, checked against this device's watermark. Verifies the log as `verify_audit` does. Answer: [`klav_client::sandboxes::SandboxList`]. Preferences an agent wrote are a `security` error here, as in every `klavd` before `sandbox_list_flagged`.

Method
sandbox_list
Transport
unix-socket
Framework
serde
9 usages · in 4 flows

[`Request::SandboxListFlagged`] for a caller that says in its own words which check refused the list. Answer: [`klav_client::sandboxes::CheckedList`], with the list, or `refused` with the check ([`klav_client::sandboxes::ListCheck`]) and the `security` error's words, instead of that error. Every other failure, a `security` one of no known check included, is the same error as `sandbox_list_flagged`'s. An older `klavd` answers `bad_request`: ask `sandbox_list_flagged` then, which fails with `security`.

Method
sandbox_list_checked
Transport
unix-socket
Framework
serde
6 usages · in 2 flows

[`Request::SandboxList`] for a caller that shows a security flag: preferences an agent wrote give the chain's rows of every proxy, no proxy and `security` ([`klav_client::sandboxes::SecurityFlag`]) instead of an error. An older `klavd` answers `bad_request`: ask `sandbox_list` then, which fails closed.

Method
sandbox_list_flagged
Transport
unix-socket
Framework
serde
7 usages · in 3 flows

The person's revocation of sandboxes of `proxy`, signed with the account's identity without presence (ADR 0036 E2.3). `scope` is `"all"` (every sandbox of `proxy` issued so far) or one sandbox ID, always given: a request without it, or with anything else, is a `bad_request` and revokes nothing. Answer: [`klav_client::sandbox_revoke::RevokeOutcome`]; a later revocation of the same scope is its `not_applied`, not an error.

Method
sandbox_revoke
Transport
unix-socket
Framework
serde
Input
›{2 fields }
proxy: AgentId
scope: string
5 usages · in 5 flows

The card's "Don't let `<issuer>`'s sandboxes ask again" (ADR 0053 §3.3, T297): re-signs the proxy's grant with the opt-in of the issuer whose sandbox raised `request` turned off. The issuer comes from the verified audit log. Asks for presence, with the issuer's name. Answer: [`klav_client::issuers::IssuerReport`]. ("Stop this sandbox" is `sandbox_revoke` with the card's proxy and sandbox.)

Method
secret_request_issuer_off
Transport
unix-socket
Framework
serde
Input
›{2 fields }
request: stringRequest ID or unique prefix.
password?: SecretText
6 usages · in 3 flows

Replace the linked Git repositories of a project (ADR 0032 §2).

Method
set_project_repos
Transport
unix-socket
Framework
serde
Input
›{3 fields }
vault?: stringVault name or ID (default vault when absent).
project: stringProject name or ID.
repos: string[]Repository URLs or normalized `host/owner/repo` identifiers.
5 usages · in 2 flows

Items to offer on a page (browser extension): matching logins, the one-time codes saved on their own that name the page (`codes`), cards and identities, metadata only.

Method
suggest
Transport
unix-socket
Framework
serde
Input
›{1 field }
url: stringThe page's address, as the browser reports it.
2Handled3
3 handler sites
3Called by2
2 call sites
5 usages · in 1 flow

The audit summary of a task (`klav log --task`).

Method
task_log
Transport
unix-socket
Framework
serde
Input
›{1 field }
task: string
3 usages · in 1 flow

Each site of a task with `rotate`: changed, pending or failed (`klav_client::offer::TaskProgress`).

Method
task_progress
Transport
unix-socket
Framework
serde
Input
›{1 field }
task: stringID or unique prefix.
3 usages · in 2 flows

Current TOTP code.

Method
totp
Transport
unix-socket
Framework
serde
Input
›{3 fields }
query: stringReference, ID or title.
field?: stringField (first TOTP field when absent).
password?: SecretTextThe master password, sent again after `presence_required` (ADR 0041 §3.2): a real verification for the presence gate. I…
13 usages · in 3 flows

Unlock with the master password, or (without `password`) with the platform's biometric unlock when enrolled.

Method
unlock
Transport
unix-socket
Framework
serde
Input
›{2 fields }
password?: SecretTextMaster password.
passkey_flow?: booleanKlav's passkey frame asked: under «Always», this unlock is the verification of the passkey use it was for (ADR 0020 §8)…
5 usages · in 2 flows

The vault health report (ADR 0022 §4): reused, weak and old passwords, and breached ones if the person turned the breach check on (`health.json`). Items, hosts and reasons; never values.

Method
vault_health
Transport
unix-socket
Framework
serde
4 usages · in 2 flows