Klav Atlas

CLI

174 commands across 5 programs, 564 flags in total.

Mainmainfe8e2a0c8c24· 2026-12-05
Command tree
174 commands

klav

157 commands

Klav: an end-to-end encrypted password manager for people and agents.

Framework
clap
klav [flags]
FlagTypeRequiredDefaultDescription
--password-stdinboolean——Read the master password from the first line of stdin instead of a TTY prompt (for scripts). Values for `--secret-stdin` follow, one per line. (global)
--no-daemonboolean——Do not use `klavd` even if it is running: unlock in this process. [env: KLAV_NO_DAEMON] (global)
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account on this device: its server and its emergency kit.

Framework
clap
klav account
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Delete the account: everything it has on the server, 7 days after you ask (ADR 0037). Only at a terminal: you type the account email, then Touch ID if `klavd` uses it, then the master password. Not with `--no-daemon` where Touch ID is set up.

Framework
clap
klav account delete [flags]
FlagTypeRequiredDefaultDescription
--cancelboolean——Cancel the deletion asked for, from any device. Asks for Touch ID through `klavd`, or the master password, like resuming agents.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Show the emergency kit again, with the server this device uses today (asks for the master password: the kit shows the Secret Key).

Framework
clap
klav account kit [flags]
FlagTypeRequiredDefaultDescription
--emergency-kitstring——Write it to this new file (mode 0600) instead of the terminal.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Move the account on this device to another server URL: a full log-in there with the master password, kept only if the server has this same account (ADR 0028 §4). Also the way out if a domain is down.

Framework
clap
klav account set-server <url>
ArgumentTypeDescription
urlstringThe new server URL (taken as typed).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

AI agents: register one (agent side); list, approve or deny them (person side).

Framework
clap
klav agent
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Approve an agent, or change its grant (person side; Touch ID or the master password). `grant` is the same command.

Framework
clap
klav agent approve <agent> [flags]
ArgumentTypeDescription
agentstringAgent name or ID.
FlagTypeRequiredDefaultDescription
--project …string[]——Project to share: `vault/project` (repeatable).
--vault …string[]——Share every project of a vault (repeatable).
--allow …string[]——Allow permissions (comma-separated: list, fill, inject, totp, reveal, create, update, delete).
--ask …string[]——Ask the person each time for these permissions.
--deny …string[]——Deny these permissions.
--fill-domain …string[]——Allow `fill` only on these hosts (`example.com`, `*.example.com`).
--env …string[]——`inject` on one environment of the shared projects (ADR 0032 §4.3), e.g. `development=allow`, `staging=ask` (repeatable; `VAULT/PROJECT/ NAME=…` when two projects have it). A protected environment is never `allow`: it and the items it protects always ask, once per use.
--hours …string[]——Only work inside this weekly window, e.g. `mon-fri 09:00-18:00 -06:00` (repeatable).
--expiresnumber——The grant stops working after this long (e.g. `8h`, `30d`).
--policy-filestring——A policy file (JSON, `docs/diseno.md` §5.2) used as the base.
--wordsstring——The six pairing words shown by the agent (asked if missing). Only for a pending agent: an active one's words are inside its grant.
--rotate-removedboolean——An active agent: also change the key of each project taken away, and give the other agents that hold it a new grant.
--yes, -yboolean——An active agent: sign the differences without asking `[y/N]` (a change that widens still asks for Touch ID or the master password).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Name a browser so `klav mcp` can fill into it (`sdk:<name>`).

Framework
clap
klav agent browser
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Forget a registered browser.

Framework
clap
klav agent browser forget <name>
ArgumentTypeDescription
namestringSession name.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Register a browser (CDP address and tab) as `sdk:<name>`.

Framework
clap
klav agent browser register <name> [flags]
ArgumentTypeDescription
namestringSession name.
FlagTypeRequiredDefaultDescription
--cdpstringrequired—The browser's CDP address (`http://127.0.0.1:9222`).
--targetstring——Tab (CDP target ID); default: the first tab.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Deny a pending registration (person side).

Framework
clap
klav agent deny <agent>
ArgumentTypeDescription
agentstringAgent name or ID.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Type a login or card into a browser page, over CDP or through Klav's extension, as the agent (agent side): the values never come back.

Framework
clap
klav agent fill <reference> [flags]
ArgumentTypeDescription
referencestring`klav://Vault/Project/Item` (username and password, or the card) or `…/Item/field`.
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why the agent needs it (mandatory; logged and shown to the person).
--waitnumber——Wait this long for the person when it needs approval (e.g. `2m`).
--approvalstring——Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--cdpstring——The browser's CDP address (`http://127.0.0.1:9222`).
--targetstring——Tab (CDP target ID); default: the first tab.
--sessionstring——A browser registered with `klav agent browser register`.
--extensionboolean——The active tab of the person's browser, through Klav's extension.
--selector …string[]——CSS selector for a field: `password=#pass` (repeatable).
--submitboolean——Submit the form after filling.
--jsonboolean——Print the report as JSON (field names and addresses, never values).
--configstring——Project file (default: nearest `klav.toml`).
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Write secrets into a new 0600 file, as the agent (agent side; never to stdout). Prefer `klav agent run` (env or `klav.toml`'s `[files]`) when the command does not need a standalone file on disk.

Framework
clap
klav agent inject [flags]
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why the agent needs it (mandatory; logged and shown to the person).
--waitnumber——Wait this long for the person when it needs approval (e.g. `2m`).
--approvalstring——Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--in-file, -istring——Template with `{{ klav://… }}` references.
--reference, -rstring——One reference whose value is written as is.
--out-file, -ostringrequired—Output file, created with mode 0600.
--forceboolean——Replace the output file if it exists.
--ttlnumber——Remove the file after this long (waits in the foreground).
--configstring——Project file for short references (default: nearest `klav.toml`).
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Set or clear your own E2E-encrypted label or machine/host note for an agent (person side, ADR 0047).

Framework
clap
klav agent label <agent> [flags]
ArgumentTypeDescription
agentstringAgent name or ID.
FlagTypeRequiredDefaultDescription
--labelstring——Friendly alias in your own words (e.g. "Proxmox proxy").
--hoststring——Machine, server or sandbox host (e.g. "pve-home").
--clearboolean——Remove the label and host for this agent.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account's agents (person side).

Framework
clap
klav agent list [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Pause every agent, or one, now (person side, ADR 0033 §7): the server refuses all they ask until you resume. No Touch ID: pausing must cost nothing. With `klavd` running, `--all` works locked.

Framework
clap
klav agent pause <agent?> [flags]
ArgumentTypeDescription
agent?stringAgent name or ID.
FlagTypeRequiredDefaultDescription
--allboolean——Every agent of the account.
--fornumber——End the pause by itself after this long (e.g. `1h`); by default it lasts until you resume.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Register this machine as an agent of an account (agent side). Prints the six pairing words the person must see when approving it.

Framework
clap
klav agent register [flags]
FlagTypeRequiredDefaultDescription
--namestringrequired—Name of the agent (shown to the person; also its local name).
--serverstring——Server URL (default: the server of the account on this device, else https://api.klav.dev). [env: KLAV_SERVER]
--emailstring——E-mail of the account to join (default: the account on this device).
--notestring——A note for the person (e.g. what the agent is for).
--key-store"auto" | "keychain" | "file"—autoWhere to keep the agent's private key.
--key-filestring——Key file for `--key-store file` (default: `$KLAV_HOME/agents/<name>.key`).
--jsonboolean——Print the result as JSON on stdout: the agent ID, its public identity, the six words and when the request lapses.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Resume every agent, or one, after a pause (person side; Touch ID or the master password). Resuming every agent leaves the agents you paused one by one paused.

Framework
clap
klav agent resume <agent?> [flags]
ArgumentTypeDescription
agent?stringAgent name or ID.
FlagTypeRequiredDefaultDescription
--allboolean——Every agent of the account.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Revoke an agent now and print what it saw (person side).

Framework
clap
klav agent revoke <agent> [flags]
ArgumentTypeDescription
agentstringAgent name or ID.
FlagTypeRequiredDefaultDescription
--rotateboolean——Also rotate the keys of its projects and re-issue the grants of the other agents that share them.
--yes, -yboolean——Do not ask for confirmation.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Run a command with secrets in its environment, as the agent (agent side): `klav.toml`, an environment (`--env`) and `-e`; the output comes back with the values redacted.

Framework
clap
klav agent run <command> [flags]
ArgumentTypeDescription
commandstring[]The command and its arguments (after `--`).
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why the agent needs it (mandatory; logged and shown to the person).
--waitnumber——Wait this long for the person when it needs approval (e.g. `2m`).
--approvalstring——Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--configstring——Project file (default: the nearest `klav.toml`).
--var, -e …string[]——Extra variable `NAME=REF` (repeatable).
--env …string[]——The environment to inject (ADR 0032 §4.5): the project's environment of that name in the vault, plus `[env.NAME]` of `klav.toml`. Without it: `default_env`, the flat `[env]`, or the only environment. A protected one asks the person once for it and the protected items it uses. A `NAME=REF` here is read as `-e`.
--no-filesboolean——Do not write the `[files]` of `klav.toml`.
--timeoutnumber—10mKill the command after this long.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Ask the person to save or update a secret in Klav without the value ever reaching this agent (agent side, ADR 0046).

Framework
clap
klav agent secret-request
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Propose a secret for the person to enter on their device without the value ever touching this agent.

Framework
clap
klav agent secret-request create [flags]
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why this secret is needed (mandatory; shown to the person and logged).
--mode"create" | "update"—create`create` a new item (default) or `update` a secret field of an existing one.
--type"api-key" | "database" | "login" | "note" | "ssh-key" | "totp"——Item kind in `create` mode (default: `api-key`).
--titlestring——Suggested item title (`create` mode).
--refstring——Target item reference or ID (`update` mode).
--fieldstring——Target secret field name (default depends on kind, e.g. `api_key`).
--projectstring——Suggested granted project (`Vault/Project` or project ID, `create` mode).
--placeholderstring——Short hint for the hidden input (e.g. `sk_live_…`).
--setup-urlstring——Provider dashboard URL (`https://…`) where the person can create or copy the key (never auto-opened, T235).
--base-urlstring——Non-secret API base URL for `api-key` items.
--url …string[]——Suggested login URL (repeatable; unchecked by default on the card, T234).
--notesstring——Suggested non-secret notes (`create` mode).
--env-environmentstring——Environment item to propose linking the saved field into (for example `development`; requires --env-variable).
--env-variablestring——Environment variable to propose linking the saved field as (for example `DATABASE_URL`; requires --env-environment).
--proxy-profilestring——Optional proposed `klav-proxy` profile name (unchecked by default, T239).
--proxy-upstreamstring——Upstream `https://…` URL for the proposed proxy profile.
--proxy-headerstring——Header name for the proposed proxy profile (default: `authorization`).
--proxy-prefixstring——Prefix before the secret in the proxy header (default: `Bearer `).
--proxy-method …string[]——Allowed HTTP methods for the proposed proxy profile (comma-separated).
--proxy-ask-method …string[]——Ask-per-call HTTP methods for the proposed proxy profile (comma-separated).
--proxy-path-prefix …string[]——Allowed path prefixes for the proposed proxy profile (repeatable, e.g. `/v1`).
--proxy-ratenumber——Optional per-minute rate limit (`1..=600`) for the proposed proxy profile.
--waitnumber——Wait this long for the person to decide (e.g. `2m`).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Check the current state of one of this agent's secret requests.

Framework
clap
klav agent secret-request show <id> [flags]
ArgumentTypeDescription
idstringSecret request ID.
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Wait for the person to fulfill or deny a secret request. Exit codes: 0 fulfilled, 4 pending, 5 denied, 6 expired, 7 paused, 8 account deleting.

Framework
clap
klav agent secret-request wait <id> [flags]
ArgumentTypeDescription
idstringSecret request ID.
FlagTypeRequiredDefaultDescription
--timeoutnumber—10mHow long to wait (`10m` default).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

An agent, its grant and what it saw according to the audit log (person side).

Framework
clap
klav agent show <agent> [flags]
ArgumentTypeDescription
agentstringAgent name or ID.
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

State of a registered agent (agent side).

Framework
clap
klav agent status [flags]
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--waitboolean——Wait until the person approves or denies it.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Task requests: several items and permissions for one job, approved with one card (agent side, ADR 0021).

Framework
clap
klav agent task
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

End a task of this agent when the job is done.

Framework
clap
klav agent task end <id> [flags]
ArgumentTypeDescription
idstringTask ID.
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why (mandatory; logged).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Ask the person for a task described in a file (`tarea.toml` or `.json`; `-` reads JSON from stdin). Exit code: 0 approved, 4 pending, 5 denied, 6 expired.

Framework
clap
klav agent task request <file> [flags]
ArgumentTypeDescription
filestringThe task file.
FlagTypeRequiredDefaultDescription
--waitnumber—10mWait for the person (default `10m` when given without a value).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

A task of this agent: its state and what the person approved.

Framework
clap
klav agent task show <id> [flags]
ArgumentTypeDescription
idstringTask ID.
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Wait until the person decides on a task. Exit code: 0 approved, 4 still pending at `--timeout`, 5 denied (or ended by the person), 6 expired.

Framework
clap
klav agent task wait <id> [flags]
ArgumentTypeDescription
idstringTask ID (the full `pending_task_id`).
FlagTypeRequiredDefaultDescription
--timeoutnumber—10mGive up after this long (a task request expires 10 minutes after it was made).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Current one-time password of an item, as the agent (agent side; `totp` is `ask` by default).

Framework
clap
klav agent totp <reference> [flags]
ArgumentTypeDescription
referencestring`klav://Vault/Project/Item` (or `Item` with `project` in klav.toml).
FlagTypeRequiredDefaultDescription
--reasonstringrequired—Why the agent needs it (mandatory; the person sees it).
--fieldstring——Field (default: the first one-time password field).
--waitnumber——Wait this long for the person when it needs approval (e.g. `2m`).
--approvalstring——Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Requests of agents waiting for your approval (`ask` in their policy).

Framework
clap
klav approval
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Approve a request (Touch ID or the master password).

Framework
clap
klav approval approve <id> [flags]
ArgumentTypeDescription
idstringRequest ID (or its first characters).
FlagTypeRequiredDefaultDescription
--fornumber——Approve the same action on the same item for this long (e.g. `15m`, at most `24h`) instead of once.
--add-to-taskboolean——«Add to the task»: add it to the agent's running task (same end time) and approve this request once.
--yes, -yboolean——Do not ask for confirmation after showing the request.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Deny a request.

Framework
clap
klav approval deny <id>
ArgumentTypeDescription
idstringRequest ID (or its first characters).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Pending requests (`--all`: also the recent decided ones).

Framework
clap
klav approval list [flags]
FlagTypeRequiredDefaultDescription
--allboolean——Include decided and expired requests.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Show a pending request's card, deciding nothing: for an MCP tool call, the caller, profile and tool (ADR 0049 §5.4).

Framework
clap
klav approval show <id> [flags]
ArgumentTypeDescription
idstringRequest ID (or its first characters).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Wait, as the agent, until the person decides on its request (agent side). Exit code: 0 approved, 4 still pending at `--timeout`, 5 denied, 6 expired.

Framework
clap
klav approval wait <id> [flags]
ArgumentTypeDescription
idstringRequest ID (the full `pending_approval_id`).
FlagTypeRequiredDefaultDescription
--timeoutnumber—10mGive up after this long (the request itself expires 10 minutes after it was made).
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Agent clients (Claude Code, Claude Desktop, Codex, Cursor, VS Code): connect Klav's MCP server and skill to them, or disconnect it.

Framework
clap
klav client
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Connect a client: register its agent (or use the one it has), add the `klav` entry to its MCP settings (with a backup) and install the skill. Shows what it will change first.

Framework
clap
klav client connect <client> [flags]
ArgumentTypeDescription
clientClientArgThe client.
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: the client's name, e.g. `cursor`).
--no-skillboolean——Do not install the skill.
--dry-runboolean——Show what would change and change nothing.
--yes, -yboolean——Write without asking (needed without a terminal).
--replaceboolean——Replace a `klav` entry Klav did not write, or one that changed since it did (a copy is kept).
--adoptboolean——Keep a `klav` entry Klav did not write as Klav's, as it is, if it runs a `klav` program.
--expect-sha256string——Only write if the settings file still has this SHA-256 (the `file_sha256` of `--dry-run --json`).
--key-store"auto" | "keychain" | "file"—autoWhere a new agent keeps its private key.
--mcp …string[]——Instead of Klav's own MCP server: connect the client to these MCP profiles of your credential proxy on this Mac (ADR 0049 §3), one entry each (`http://127.0.0.1:8790/<profile>/…`), with a local client token signed into the proxy's grant. Comma-separated or repeated.
--proxy-portnumber—8790The port the credential proxy listens on, on this Mac.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Remove Klav's entry (and skill) from a client. The agent keeps its access: pause or revoke it for that.

Framework
clap
klav client disconnect <client> [flags]
ArgumentTypeDescription
clientClientArgThe client.
FlagTypeRequiredDefaultDescription
--keep-skillboolean——Leave the skill where it is.
--dry-runboolean——Show what would change and change nothing.
--yes, -yboolean——Do not ask (needed without a terminal).
--forceboolean——Also remove a Klav entry or skill that changed since Klav wrote it (a copy of the settings is kept).
--mcp …string[]——Instead of Klav's own MCP server: remove the client's MCP gateway entries for these profiles (none named: every one) and take them from its local client token in the proxy's grant (ADR 0049 §3.1).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Which clients are here and how Klav is set up in each one. Changes nothing.

Framework
clap
klav client list [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Put back the client's settings file as it was before Klav's last change (from `$KLAV_HOME/client-backups`).

Framework
clap
klav client restore <client> [flags]
ArgumentTypeDescription
clientClientArgThe client.
FlagTypeRequiredDefaultDescription
--forceboolean——Restore even if the file changed since Klav wrote it (its current content is kept as another backup).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Add, update or remove Klav's marked agent-rules block in a repository's `AGENTS.md` or `CLAUDE.md`.

Framework
clap
klav client rules <path?> [flags]
ArgumentTypeDescription
path?stringRepository root (default: the current directory).
FlagTypeRequiredDefaultDescription
--filestring——Instruction file to write: `AGENTS.md`, `CLAUDE.md`, or another path inside the repository (relative paths start at the repository root).
--dry-runboolean——Show what would change and change nothing.
--removeboolean——Remove only Klav's marked block.
--jsonboolean——Machine-readable JSON output.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Devices of the account, and adding one with a QR code (ADR 0029).

Framework
clap
klav device
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Approve a new device: paste its `KD1-…` code (mode A), or `--show` to show a code for the new device to scan (mode B).

Framework
clap
klav device add <code?> [flags]
ArgumentTypeDescription
code?stringThe `KD1-…` code the new device shows (mode A).
FlagTypeRequiredDefaultDescription
--showboolean——Show a QR/code on this device instead (mode B).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List the account's devices, including how each one was added.

Framework
clap
klav device list [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Environments of a project (ADR 0032): variables per environment, `.env` import and scan, and the repository link.

Framework
clap
klav env
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Create an environment. `production` and `prod` are protected unless `--no-protected`.

Framework
clap
klav env create <name> [flags]
ArgumentTypeDescription
namestringThe environment's name (`[a-z0-9][a-z0-9_-]{0,63}`).
FlagTypeRequiredDefaultDescription
--projectstring——
--protectedboolean——Protected: presence every time, and `ask once` for agents.
--no-protectedboolean——Not protected (turning protection off asks for presence).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Import a `.env` file (or `klav.toml`'s flat `[env]`, as references) into an environment, without printing any value.

Framework
clap
klav env import <file> [flags]
ArgumentTypeDescription
filestring`.env` file, `klav.toml`, or `-` for stdin.
FlagTypeRequiredDefaultDescription
--envstringrequired—The environment to import into (created if missing).
--projectstring——
--dry-runboolean——Show the review and change nothing.
--yes, -yboolean——Accept every proposal and do not ask (the file is not deleted).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The environments of a project: variables, protected, last edit.

Framework
clap
klav env ls [flags]
FlagTypeRequiredDefaultDescription
--projectstring——Project (`Vault/Project`, a name or an ID; default: `klav.toml`'s `project`, or every project).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Remove variables, or with none the whole environment (to the trash, after a confirmation).

Framework
clap
klav env rm <name> <vars?> [flags]
ArgumentTypeDescription
namestringThe environment's name.
vars?string[]Variables to remove.
FlagTypeRequiredDefaultDescription
--projectstring——
--yes, -yboolean——Do not ask (needed without a terminal).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Find `.env` and `.env.*` files (not `.env.example`) under DIR, say whether git ignores or tracks each, and offer to import them. Never reads or prints their contents to list them.

Framework
clap
klav env scan <dir?> [flags]
ArgumentTypeDescription
dir?stringWhere to look (default: the current directory).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Set variables: a value by hidden prompt (`-s VAR`) or stdin (`--secret-stdin VAR`), or a reference (`--ref VAR=klav://…`).

Framework
clap
klav env set <name> [flags]
ArgumentTypeDescription
namestringThe environment's name.
FlagTypeRequiredDefaultDescription
--projectstring——
--secret, -s …string[]——Ask for VAR's value without echo (repeatable).
--secret-stdin …string[]——Read VAR's value from the next line of stdin (repeatable).
--ref …string[]——VAR points to a field of another item (repeatable).
--protectedboolean——Turn `protected` on or off with the same change.
--ttlstring——Make the environment temporary (`30m`, `1h`, `8h`, `24h`, `7d`). Inline values expire with it; references can no longer resolve through it after the boundary.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

One environment: variable names and where each comes from. Values are masked unless `--reveal` (presence every time for a protected one).

Framework
clap
klav env show <name> [flags]
ArgumentTypeDescription
namestringThe environment's name.
FlagTypeRequiredDefaultDescription
--projectstring——
--revealboolean——Print the values.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Browser extension: native messaging host manifests.

Framework
clap
klav extension
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Where each installed browser's manifest points, and whether it runs this `KLAV_HOME`'s host (`--host`): finds an install from another path before replacing it. Changes nothing.

Framework
clap
klav extension host-status [flags]
FlagTypeRequiredDefaultDescription
--browser …("chrome" | "chromium" | "brave" | "arc" | "edge" | "dia" | "ardia" | "firefox")[]——Only this browser (repeatable; default: every installed one).
--user-data-dirstring——A Chromium profile directory (`--user-data-dir` of the browser) instead of the browser's default one.
--extension-id …string[]——Also allow this extension: a Chromium ID (store build) or a Firefox add-on ID (repeatable).
--devboolean——Also allow the development build for Chromium browsers (the unpacked `apps/extension/dist/chromium`). Its ID comes from a public key in the repository, so any unpacked extension can claim it: only on a machine where you load the extension yourself.
--hoststring——Path of `klav-native-host` (default: next to `klav`, or in PATH).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Let the browser extension talk to `klavd`: write the native messaging host manifests (Chrome, Chromium, Brave, Arc, Edge, Dia, Ardia, Firefox) for this `KLAV_HOME`.

Framework
clap
klav extension install-host [flags]
FlagTypeRequiredDefaultDescription
--browser …("chrome" | "chromium" | "brave" | "arc" | "edge" | "dia" | "ardia" | "firefox")[]——Only this browser (repeatable; default: every installed one).
--user-data-dirstring——A Chromium profile directory (`--user-data-dir` of the browser) instead of the browser's default one.
--extension-id …string[]——Also allow this extension: a Chromium ID (store build) or a Firefox add-on ID (repeatable).
--devboolean——Also allow the development build for Chromium browsers (the unpacked `apps/extension/dist/chromium`). Its ID comes from a public key in the repository, so any unpacked extension can claim it: only on a machine where you load the extension yourself.
--hoststring——Path of `klav-native-host` (default: next to `klav`, or in PATH).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Remove the native messaging host manifests.

Framework
clap
klav extension uninstall-host [flags]
FlagTypeRequiredDefaultDescription
--browser …("chrome" | "chromium" | "brave" | "arc" | "edge" | "dia" | "ardia" | "firefox")[]——Only this browser (repeatable; default: every installed one).
--user-data-dirstring——A Chromium profile directory (`--user-data-dir` of the browser) instead of the browser's default one.
--extension-id …string[]——Also allow this extension: a Chromium ID (store build) or a Firefox add-on ID (repeatable).
--devboolean——Also allow the development build for Chromium browsers (the unpacked `apps/extension/dist/chromium`). Its ID comes from a public key in the repository, so any unpacked extension can claim it: only on a machine where you load the extension yourself.
--hoststring——Path of `klav-native-host` (default: next to `klav`, or in PATH).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Generate a password or a passphrase.

Framework
clap
klav generate [flags]
FlagTypeRequiredDefaultDescription
--type, -t"smart" | "random" | "memorable" | "pin"——What to generate (default: smart, which follows the site's rules with --site or --rules, and is a 20-character random password otherwise).
--sitestring——Site the password is for: its bundled rules (smart).
--rulesstring——The site's `passwordrules` text (smart), e.g. "minlength: 8; required: digit;".
--length, -lnumber—20Password length (random; preferred length for smart).
--words, -wnumber——Words of a memorable passphrase (implies --type memorable).
--separatorstring—-Passphrase separator: 1 to 8 bytes, no ASCII letter or digit, no control or invisible character.
--no-capitalizeboolean——Passphrase words in lowercase.
--no-numberboolean——Passphrase without a digit.
--pin-lengthnumber—6Digits of a PIN.
--no-symbolsboolean——No symbols.
--no-digitsboolean——No digits.
--no-uppercaseboolean——No uppercase letters.
--avoid-ambiguousboolean——Avoid look-alike characters (0/O, 1/l/I…).
--no-historyboolean——Do not keep the password in the generator history.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

The passwords Klav generated.

Framework
clap
klav generated
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List the passwords Klav generated, newest first (values hidden).

Framework
clap
klav generated ls [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Delete entries of the generator history.

Framework
clap
klav generated rm <index?> [flags]
ArgumentTypeDescription
index?number[]Positions in the list.
FlagTypeRequiredDefaultDescription
--allboolean——Delete the whole history.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Print one generated password (`N` from `klav generated ls`).

Framework
clap
klav generated show <index>
ArgumentTypeDescription
indexnumberPosition in the list.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Vault health: reused, weak and old passwords, and breached ones if the breach check is on (values never shown).

Framework
clap
klav health [flags]
FlagTypeRequiredDefaultDescription
--fix-withstring——«Fix my reused passwords» (ADR 0022 §6): offer this agent a task to change the passwords you reuse, one site after another. The agent gets the sites, never the list of reused passwords. Asks for Touch ID or the master password once.
--only …string[]——With --fix-with: only these logins (reference, title or ID; repeatable).
--skip …string[]——With --fix-with: leave these logins out (reference, title or ID; repeatable).
--fornumber——With --fix-with: how long the agent has (5m to 24h; default 2h).
--taskstring——With --fix-with: the task's title, as the agent will read it.
--reasonstring——With --fix-with: the reason, as the agent will read it.
--yes, -yboolean——With --fix-with: do not ask before offering (needed without a terminal).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Show, turn on or turn off the breach check (Have I Been Pwned, off by default; a setting of this device only).

Framework
clap
klav health breach-check <state?>
ArgumentTypeDescription
state?"on" | "off"`on` or `off`; without it, show the setting.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Import from another password manager or a browser: new items are created, repeats merged, and no password is lost (ADR 0024).

Framework
clap
klav import <files> [flags]
ArgumentTypeDescription
filesstring[]Export files, detected by their content: Bitwarden (`.json`, `.csv`), 1Password (`.1pux`, `.csv`), Google Authenticator (photos of its QR codes as `.png`, or `-` to paste its `otpauth-migration://` links on stdin) and browser CSVs (Chrome, Edge, Brave, Firefox, Safari). Several files are imported together.
FlagTypeRequiredDefaultDescription
--fromstring——Where the files come from, when detection is not enough: bitwarden, 1password, google, chrome (edge, brave), firefox, safari or csv.
--vaultstring——Destination vault (default: Personal).
--projectstring——Destination project (default: General).
--dry-runboolean——Show what would happen, change nothing.
--jsonboolean——Machine-readable JSON output (the preview, and the result).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Write secrets into a file or a named pipe (template or one reference).

Framework
clap
klav inject [flags]
FlagTypeRequiredDefaultDescription
--in-file, -istring——Template with `{{ klav://… }}` references (default: stdin).
--reference, -rstring——One reference whose value (text or file) is written as is.
--out-file, -ostring——Output file, created with mode 0600 (default: stdout).
--forceboolean——Replace the output file if it exists.
--ttlnumber——Remove the file after this long (e.g. `30s`, `10m`, `1h`); `klav` waits in the foreground and also removes it on Ctrl-C/SIGTERM.
--fifoboolean——Serve the value through a named pipe at `--out-file` (Unix): it is read once and never touches the disk. Waits for the reader up to `--ttl` (default 10m).
--configstring——Project file for short references (default: nearest `klav.toml`).
--envstring——The environment to write (ADR 0032 §6), with `--dotenv`.
--dotenvboolean——Write the environment as a `.env` file (`NAME='value'` lines).
--trustboolean——Use an environment not confirmed for this `klav.toml` yet without asking (it is pinned as confirmed). Presence is still asked for a protected one.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Items: add, show, edit, remove, list and search.

Framework
clap
klav item
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Add an item.

Framework
clap
klav item add <kind> [flags]
ArgumentTypeDescription
kind"login" | "card" | "identity" | "ssh-key" | "totp" | "note" | "api-key" | "database"Type.
FlagTypeRequiredDefaultDescription
--titlestringrequired—Title (the item name in `klav://` references).
--vaultstring——Vault (default: Personal).
--projectstring——Project (default: General).
--usernamestring——Username (same as `--field username=…`).
--from-urlboolean——Ask for the database connection URL on the terminal, without echo (`database` only). Parsing it fills empty structured fields.
--from-url-stdinboolean——Read the database connection URL from the next line of stdin (`database` only). Parsing it fills empty structured fields.
--build-urlboolean——Compose the connection URL from the structured fields when `url` is empty (`database` only).
--allow-duplicateboolean——Add it even if the project already has an item with this title (references by title become ambiguous).
--expiresstring——Make the item temporary: a TTL (`1h`, `8h`, `24h`, `7d`) or a UTC date-time (`2027-01-02T03:04:05Z`).
--field, -f …string[]——Set a non-secret field: `NAME=VALUE` (repeatable).
--secret, -s …string[]——Ask for a secret field on the TTY, without echo (repeatable).
--secret-stdin …string[]——Read a secret field from the next line of stdin (repeatable).
--generate, -g …string[]——Fill a secret field with a generated password (repeatable).
--url …string[]——Add a URL (repeatable).
--tag …string[]——Add a tag (repeatable).
--notes-stdinboolean——Read the notes from the rest of stdin.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Store a file in a `file` field of an item (encrypted attachment).

Framework
clap
klav item attach <item> <field> <path> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
fieldstringField name (created if missing).
pathstringFile to read.
FlagTypeRequiredDefaultDescription
--namestring——File name to record (default: the name of `path`).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Edit an item.

Framework
clap
klav item edit <item> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
FlagTypeRequiredDefaultDescription
--titlestring——New title.
--allow-duplicateboolean——Rename even if the project already has an item with the new title (references by title become ambiguous).
--expiresstring——Set or change the item expiry: a TTL (`1h`, `8h`, `24h`, `7d`) or a UTC date-time (`2027-01-02T03:04:05Z`).
--permanentboolean——Remove the item expiry and make it permanent.
--rm-field …string[]——Remove a field (repeatable).
--field, -f …string[]——Set a non-secret field: `NAME=VALUE` (repeatable).
--secret, -s …string[]——Ask for a secret field on the TTY, without echo (repeatable).
--secret-stdin …string[]——Read a secret field from the next line of stdin (repeatable).
--generate, -g …string[]——Fill a secret field with a generated password (repeatable).
--url …string[]——Add a URL (repeatable).
--tag …string[]——Add a tag (repeatable).
--notes-stdinboolean——Read the notes from the rest of stdin.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Show an item. Secret values stay hidden unless `--reveal`.

Framework
clap
klav item get <item> [flags]
ArgumentTypeDescription
itemstring`klav://vault/project/item[/field]`, `vault/project/item`, ID or title.
FlagTypeRequiredDefaultDescription
--revealboolean——Show secret values.
--fieldstring——Print only this field's value.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Previous passwords of an item, newest first (values hidden).

Framework
clap
klav item history <item> [flags]
ArgumentTypeDescription
itemstringItem title or ID.
FlagTypeRequiredDefaultDescription
--revealnumber——Print previous password `N` (from the list) instead.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List items (metadata only).

Framework
clap
klav item ls [flags]
FlagTypeRequiredDefaultDescription
--vaultstring——Only this vault.
--projectstring——Only this project.
--kind …("login" | "card" | "identity" | "ssh-key" | "file" | "totp" | "note" | "api-key" | …+1)[]——Only these types: `--kind login,card` or `--kind login --kind card`.
--codesboolean——Only items with a one-time code, of any type (`klav totp` shows it).
--tagstring——Only items with this tag.
--trashboolean——List the trash.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Move an item to another project, perhaps of another vault.

Framework
clap
klav item move <item> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
FlagTypeRequiredDefaultDescription
--vaultstring——Destination vault (default: the vault of the project).
--projectstring——Destination project (default: General).
--allow-duplicateboolean——Move it even if the project already has an item with this title (references by title become ambiguous).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Permanently delete an item that is in the trash.

Framework
clap
klav item purge <item> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
FlagTypeRequiredDefaultDescription
--yesboolean——Confirm the permanent deletion.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Restore an item from the trash.

Framework
clap
klav item restore <item>
ArgumentTypeDescription
itemstringItem reference, ID or title.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Move an item to the trash.

Framework
clap
klav item rm <item>
ArgumentTypeDescription
itemstringItem reference, ID or title.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The sites of an item: those the person confirmed, and those an agent added that wait for her (ADR 0030 §7). Only confirmed sites are autofilled, suggested or filled by agents.

Framework
clap
klav item sites <item> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
FlagTypeRequiredDefaultDescription
--confirmboolean——Confirm every site an agent added (writes a new version as you).
--remove …string[]——Remove this URL (repeatable).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Lock `klavd` now.

Framework
clap
klav lock [flags]
FlagTypeRequiredDefaultDescription
--stopboolean——Also stop `klavd`.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The audit log: who used what, when and why; `log verify` checks it.

Framework
clap
klav log [flags]
FlagTypeRequiredDefaultDescription
--itemstring——Only events about this item (reference, ID or title).
--agentstring——Only events of this agent (name or ID).
--vaultstring——Only events in this vault.
--sincenumber——From: a duration back from now (`24h`, `7d`), a date (`2026-11-02`) or a UTC time (`2026-11-02T14:30`).
--untilnumber——Until (same formats as `--since`; a date means its end).
--alertsboolean——Only events with alerts (first use, bursts, denials).
--permission …Permission[]——Only events with this permission (`fill`, `inject`, `totp`, `reveal`, `list`, `create`, `update`, `delete`, `passkey`, `rotate`). Repeat it for several.
--outcome …string[]——Only events with this outcome: `allow`, `ask` or `deny` (the policy), `approve` (the person's decision). Repeat it for several.
--textstring——Only events whose item, agent, reason or site contain this text.
--taskstring——The summary of one task: who approved it, every use, what was approved outside it and how it ended (ID or its first characters).
--limit, -nnumber—50At most this many events (newest first).
--jsonboolean——JSON output (every matching event, ignores `--limit`).
--csvboolean——CSV output (every matching event, ignores `--limit`).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Forget this device's copy of the log and the head it verified, after the server was restored from a backup you trust: from then on this device takes the server's chain as it is now as the good one. Asks first. No network.

Framework
clap
klav log reset [flags]
FlagTypeRequiredDefaultDescription
--yesboolean——Do not ask: you accept the chain the server has now.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Check the hash chain, the signatures in it and the signed heads; then sign the current head with this device. Exit code 3 if it was altered.

Framework
clap
klav log verify [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Set up this device for an existing account.

Framework
clap
klav login [flags]
FlagTypeRequiredDefaultDescription
--serverstring——Your own server's URL (the one in your emergency kit). Default: https://api.klav.dev (klav.dev). [env: KLAV_SERVER]
--emailstring——Account e-mail (not needed with `--qr` or `--code`).
--qrboolean——Add this device by showing a QR code to a signed-in device (mode A).
--codestring——Add this device with the `KD1-…` code a signed-in device shows (mode B).
--device-namestring——Name of this device (default: the host name).
--emergency-kitstring——Read the Secret Key from an emergency kit file (else it is asked).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Sign this device out and delete its copy of the account from `$KLAV_HOME` (vaults, session, Secret Key file). The account stays on the server.

Framework
clap
klav logout [flags]
FlagTypeRequiredDefaultDescription
--yes, -yboolean——Do not ask (needed without a terminal).
--discard-unsentboolean——Sign out even with generated passwords or passkeys not uploaded yet: they are lost with this device's copy.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

MCP server over stdio for an AI agent, with the agent's identity (`klav client connect` sets it up in a client).

Framework
clap
klav mcp [flags]
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT]
--waitnumber—60sHow long a tool waits for the person when the policy says `ask` (each call can ask for another `wait_seconds`, up to 10 min).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Presence before `klavd` hands out a value (ADR 0041): how often it asks for Touch ID or the master password.

Framework
clap
klav presence
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Show how often `klavd` asks for your presence before it hands out a value, or set it. Loosening asks for Touch ID or the master password; tightening asks for nothing. Needs an unlocked `klavd`.

Framework
clap
klav presence window <window?> [flags]
ArgumentTypeDescription
window?"always" | "5m" | "unlocked"`always` (every value), `5m` (once per 5 minutes per terminal session), or `unlocked` (once until Klav locks).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Projects inside vaults.

Framework
clap
klav project
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Create a project.

Framework
clap
klav project create <name> [flags]
ArgumentTypeDescription
namestringName.
FlagTypeRequiredDefaultDescription
--vaultstring——Vault name or ID.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List projects.

Framework
clap
klav project ls [flags]
FlagTypeRequiredDefaultDescription
--vaultstring——Only this vault.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The credential proxy (ADR 0036): which agent it is, what it holds, and granting or taking away credentials one by one (person side).

Framework
clap
klav proxy
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Klav Cloud's attested proxy (`klav proxy use klav` sets it up): check it, stop using it, or set it up again.

Framework
clap
klav proxy cloud
2Handled3
3 handler sites
3Called by0
No static caller
3 usages · in 1 flow

Set it up again (after it lost its keys, or to change its keys): a new agent, your credentials shared with it after verifying it, the old one revoked. Sandbox issuers are added again afterwards. Asks for Touch ID.

Framework
clap
klav proxy cloud reset [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Verify it now: the signed manifest, a fresh attestation of the enclave, the image it runs and whether the account is entitled.

Framework
clap
klav proxy cloud status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Stop using it: revoke its agent, change the keys of every credential it held, and use no proxy. Then rotate those provider tokens at each provider. Asks for Touch ID.

Framework
clap
klav proxy cloud stop [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Grant one credential to the proxy with a profile: where its value may go and how. Shows the profile, then asks for Touch ID.

Framework
clap
klav proxy grant <item> [flags]
ArgumentTypeDescription
itemstringThe item: title, ID or `vault/project/item`.
FlagTypeRequiredDefaultDescription
--presetstring——Start from a provider's profile: `northflank` (GET, POST and PATCH on api.northflank.com; DELETE asks you; PUT is refused; nothing in it guards role or token changes by path, so a POST or PATCH that changes a role or a token goes through like any other call), or `maple` (the MCP gate: POST, GET and DELETE under /mcp of api.maple.dev, none asking; `--upstream https://api.eu.maple.dev` for the EU host; the key's own permissions are the limit, so use a read-only one). Each flag you also give replaces that part of it. `railway` needs a mode the proxy does not have yet. The MCP gateway's presets (`github`, `cloudflare`, `linear`, `stripe`, and `maple` with tool rules) are refused until each passes its hand test: use `--mcp-url` and `--tools-…` meanwhile. `postgres` (ADR 0052): a database through `--pg-direct` or `--pg-northflank-addon`, reads allowed, every other statement asks (`--read-only`: refused).
--profilestring——Profile name: the first segment of the proxy's local URL (`http://127.0.0.1:8790/<profile>/…`).
--upstreamstring——Where requests go: `https://host` or `https://host:port`.
--headerstring——The header the value goes in (`authorization`; with `--mcp-url`, `authorization` unless given).
--mcp-urlstring——An MCP profile (ADR 0049): the remote MCP server's URL, `https://host[:port]/path`. The proxy forwards only that path, reads the JSON-RPC in it, hides the tools no rule allows or asks for, and asks you per tool. Without `--prefix`, `Bearer `.
--mcp-header …string[]——A fixed, non-secret header the MCP server needs (`NAME:VALUE`, repeatable, at most 4), such as a read-only switch.
--tools-allow …string[]——MCP tools that go through: exact names or prefixes ending in `*` (`get_*`), comma-separated or repeated. `*` alone is every tool.
--tools-ask …string[]——MCP tools each call of which asks you first.
--tools-deny …string[]——MCP tools refused (and hidden from the agent's list). Any tool no pattern names is refused too.
--prefixstring——Text before the value (`"Bearer "`; default: none).
--fieldstring——The field holding the value (default: the item's main secret).
--method …string[]——HTTP methods let through (comma-separated or repeated).
--path-prefix …string[]——Path prefixes let through (`/v1`; `/` for every path).
--askboolean——Every call asks you first instead of going through.
--ask-method …string[]——More methods, each call of which asks you first.
--ratenumber——Most calls per minute through this profile.
--tunnelsboolean——WebSocket tunnels through the sandbox's HTTPS_PROXY (ADR 0052): each handshake to a `--tunnel-host` under `--tunnel-path` goes through with the real token. Needs at least one `--tunnel-host`.
--tunnels-askboolean——As `--tunnels`, but each handshake asks you first.
--tunnel-host …string[]——A host the provider sends WebSocket tunnels to (repeatable, at most 4): exact (`tunnel.example.com`), or `*.example.com` for exactly one label under it, which gives the token to anyone who can get such a name. Use exact hosts.
--tunnel-pathstring——The path a tunnel handshake must be under (default `/tunnel`).
--read-onlyboolean——With `--preset postgres` (ADR 0052): writes, schema changes, admin and unknown statements are refused instead of asking you.
--pg-directstring——With `--preset postgres`: the database's public host name and port (`db.example.com:5432`). The proxy connects with TLS and checks the name; the password never reaches the sandbox.
--pg-northflank-addonstring——With `--preset postgres`: a Northflank addon (`PROJECT/ADDON`), reached through Northflank's tunnel with the token of the profile `--pg-via` (a `--tunnels` profile of the proxy, `northflank` by default).
--pg-viastring——The Northflank profile whose token opens the addon's tunnel.
--pg-teamstring——The Northflank team, for a team project.
--pg-addon-portnumber——The addon's Postgres port (default 5432).
--pg-database …string[]——With `--preset postgres`: a database the sandbox may open (repeatable, 1–4).
--pg-userstring——With `--preset postgres`: the item's field that holds the role name (default `username`). The item's main secret is the password.
--pg-tlsstring——With `--preset postgres`: TLS toward the database, `verify-full` (default; on a Northflank addon, checked inside the tunnel for the addon instance's internal host name) or `none` (only on a Northflank addon with TLS turned off, whose tunnel is TLS already).
--pg-write-itemstring——With `--preset postgres`: a second item whose role may write, used only for writes you approve. The profile's item then holds a read-only role (recommended).
--pg-cleartextboolean——With `--preset postgres --pg-direct`: answer a cleartext password request, inside the verified TLS. Prefer moving the role to SCRAM.
--wordsstring——The proxy's 6 pairing words, for its first credential (asked if missing).
--every-device-is-updatedboolean——Every device of the account runs a Klav with per-item grants: needed for the account's first one, which older devices cannot read. With `--mcp-url`, also that every device and klav-proxy run a Klav with the MCP gateway: needed for the first MCP profile, which turns the account's MCP gateway on. With `--tunnels`, the same for WebSocket tunnels, and with `--preset postgres` for the Postgres guard.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Let an agent start sandboxes through the proxy, or stop it. Run it yourself: it asks for Touch ID, and an agent must never run it.

Framework
clap
klav proxy issuer
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Let AGENT start sandboxes through the account's proxy, with some of its profiles. Shows what it signs, then asks for Touch ID.

Framework
clap
klav proxy issuer add <agent> [flags]
ArgumentTypeDescription
agentstringThe agent: name or ID.
FlagTypeRequiredDefaultDescription
--profile …string[]required—A profile of the proxy its sandboxes may use (repeat for more).
--urlstringrequired—Where a sandbox reaches the proxy: `tls://host:port`.
--max-ttlnumber——Longest a sandbox it starts may live (`8h`, `90m`; at most 24h).
--max-livenumber——Most of its sandboxes alive at once (default 3).
--inject-askboolean——Make each `inject` of this agent ask you first (recommended: an issuer could otherwise hand a provider's token to the command that creates the sandbox).
--secret-requestsboolean——Let its sandboxes ask you for a secret through the proxy (ADR 0053, off by default). The first time, this turns the account's sandbox secret requests on.
--no-secret-requestsboolean——Stop its sandboxes from asking you for secrets. Without either flag the issuer keeps what it had (off for a new one).
--wordsstring——The agent's 6 pairing words, when it is still pending (asked if missing).
--every-device-is-updatedboolean——Every device and klav-proxy runs a Klav with sandbox issuers: needed for the account's first issuer, which older ones cannot read.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Stop AGENT from starting sandboxes.

Framework
clap
klav proxy issuer remove <agent> [flags]
ArgumentTypeDescription
agentstringThe agent: name or ID.
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The credential proxy running on this machine, through its local socket: its live sandboxes, and revoking them without unlocking.

Framework
clap
klav proxy local
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Register a credential proxy for this machine (`klav-proxy init`): shows its 6 words. The Klav app's LaunchAgent serves it.

Framework
clap
klav proxy local init [flags]
FlagTypeRequiredDefaultDescription
--emailstringrequired—E-mail of the Klav account.
--serverstring——Klav server (default: Klav's).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Revoke one live sandbox of the proxy on this machine, or all of them, at once: no Touch ID and no unlocking (the proxy logs it as revoked through its socket). Run it yourself: an agent must never run it.

Framework
clap
klav proxy local revoke <id?> [flags]
ArgumentTypeDescription
id?stringThe sandbox's ID, whole or its first 8 characters as `status` shows them.
FlagTypeRequiredDefaultDescription
--allboolean——Every live sandbox of the proxy on this machine.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Whether the proxy on this machine answers, its port, its MCP profiles and its live sandboxes with their connection. Never a value.

Framework
clap
klav proxy local status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account's Postgres guard (ADR 0052 §10): whether it is on, and turning it on.

Framework
clap
klav proxy pg-guard
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Turn it on: devices and klav-proxy older than the Postgres proxy then fail their approvals list and log checks. Asks for Touch ID. `klav proxy grant --preset postgres` turns it on by itself.

Framework
clap
klav proxy pg-guard enable [flags]
FlagTypeRequiredDefaultDescription
--every-device-is-updatedboolean——Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Whether the account's Postgres guard is on.

Framework
clap
klav proxy pg-guard status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Take one credential away from the proxy and change the item's key.

Framework
clap
klav proxy revoke <item> [flags]
ArgumentTypeDescription
itemstringThe item: title or ID.
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account's secret requests from sandboxes (ADR 0053 §9): whether a credential proxy may ask you for a secret on behalf of a sandbox, and turning it on. Nothing turns it off. Each issuer still opts in with `klav proxy issuer add --secret-requests`.

Framework
clap
klav proxy sandbox-secret-requests
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Turn them on: devices and klav-proxy older than them then fail their log checks once a sandbox asks. Asks for Touch ID. `klav proxy issuer add --secret-requests` turns them on by itself.

Framework
clap
klav proxy sandbox-secret-requests enable [flags]
FlagTypeRequiredDefaultDescription
--every-device-is-updatedboolean——Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Whether the account's secret requests from sandboxes are on.

Framework
clap
klav proxy sandbox-secret-requests status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The sandboxes of the account's proxy, from the verified log and the proxy's heartbeat; `revoke` takes one or all of them away.

Framework
clap
klav proxy sandboxes [flags]
FlagTypeRequiredDefaultDescription
--endedboolean——Also those that ended, and those whose proxy was revoked.
--jsonboolean——Machine-readable JSON output.
2Handled0
No handler found
3Called by0
No static caller
0 usages · in 1 flow

Revoke one sandbox of the account's proxy, or all it issued so far. Signed with the account, without Touch ID: it only takes access away. Run it yourself: an agent must never run it.

Framework
clap
klav proxy sandboxes revoke <id?> [flags]
ArgumentTypeDescription
id?stringThe sandbox's ID, whole or its first 8 characters as the list shows them.
FlagTypeRequiredDefaultDescription
--allboolean——Every sandbox of the account's proxy issued so far.
--waitboolean——Wait until the proxy logs their end (at most 2 minutes).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account's credential proxy, its 6 words, the credentials and profiles it holds, and what is lost without one. Never a value.

Framework
clap
klav proxy status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The account's WebSocket tunnels switch (ADR 0052 §10): whether the server takes tunnel profiles and their approvals, and turning it on. Nothing turns it off.

Framework
clap
klav proxy tunnels
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Turn them on: devices and klav-proxy older than tunnels then fail their approvals list and log checks. Asks for Touch ID. `klav proxy grant --tunnels` turns them on by itself.

Framework
clap
klav proxy tunnels enable [flags]
FlagTypeRequiredDefaultDescription
--every-device-is-updatedboolean——Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Whether the account's WebSocket tunnels are on.

Framework
clap
klav proxy tunnels status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Set which agent is the account's credential proxy: `use own AGENT`, `use klav` (Klav Cloud's attested proxy, for invited accounts), or `use none`. Pair your own proxy first with `klav-proxy init`.

Framework
clap
klav proxy use <mode> <agent?> [flags]
ArgumentTypeDescription
mode"own" | "klav" | "none"`own`, `klav` or `none`.
agent?stringThe proxy's agent name or ID (with `own`).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Run a command with secrets in its environment (`klav.toml`).

Framework
clap
klav run <command> [flags]
ArgumentTypeDescription
commandstring[]The command and its arguments (after `--`).
FlagTypeRequiredDefaultDescription
--configstring——Project file (default: the nearest `klav.toml` from the current directory upwards).
--var, -e …string[]——Extra variable `NAME=klav://…` (repeatable).
--env …string[]——The environment to inject (ADR 0032 §5): the project's environment of that name in the vault, plus `[env.NAME]` of `klav.toml`. Without it: `default_env`, the flat `[env]`, or the only environment. A `NAME=REF` here is read as `-e`, as before environments.
--no-filesboolean——Do not write the `[files]` of `klav.toml`.
--trustboolean——Use a `klav.toml` that is new or changed since you approved it without asking (it is pinned as approved).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Sandboxes an issuer agent starts through the account's credential proxy (ADR 0036 §4): their API keys stay with the proxy (agent side).

Framework
clap
klav sandbox
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

This agent's live sandboxes.

Framework
clap
klav sandbox ls [flags]
FlagTypeRequiredDefaultDescription
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--proxy-portnumber—8790Port of `klav-proxy serve` on this machine.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Start a sandbox and hand its one-time package to the command after `--` (in `KLAV_SANDBOX`) or to a new file (`--package-file`). The package is never printed.

Framework
clap
klav sandbox start <command?> [flags]
ArgumentTypeDescription
command?string[]The command that creates the sandbox, run with the package in `KLAV_SANDBOX` (after `--`).
FlagTypeRequiredDefaultDescription
--labelstringrequired—What the sandbox is for, as the person will see it (`chat-123`).
--profile …string[]required—A profile of the proxy the sandbox may use (repeat for more).
--ttlnumber——How long it may live (`8h`, `90m`; default 8h, or this agent's limit if the person set a shorter one; never past that limit).
--package-filestring——Write the package to this new file (mode 0600) instead of running a command; for a program that passes it on and deletes the file.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--proxy-portnumber—8790Port of `klav-proxy serve` on this machine.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

End one of this agent's sandboxes now, or all of them.

Framework
clap
klav sandbox stop <id?> [flags]
ArgumentTypeDescription
id?stringThe sandbox's ID (from `klav sandbox start` or `ls`).
FlagTypeRequiredDefaultDescription
--allboolean——Every live sandbox of this agent.
--agentstring——Agent name (default: `$KLAV_AGENT` or the only one).
--proxy-portnumber—8790Port of `klav-proxy serve` on this machine.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Secret requests from agents: fulfill a missing secret in a hidden prompt or deny it without the value ever touching the agent (person side, ADR 0046).

Framework
clap
klav secret-request
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Deny a pending secret request with a signed decision.

Framework
clap
klav secret-request deny <id> [flags]
ArgumentTypeDescription
idstringSecret request ID (or unique prefix).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Save the requested secret into your vault (hidden prompt on TTY or `--secret-stdin`) and sign the fulfillment decision.

Framework
clap
klav secret-request fulfill <id> [flags]
ArgumentTypeDescription
idstringSecret request ID (or unique prefix).
FlagTypeRequiredDefaultDescription
--vaultstring——Destination vault name or ID (create mode; overrides the proposal).
--projectstring——Destination project name or ID (create mode; overrides the proposal).
--titlestring——Item title override (create mode).
--fieldstring——Secret field name override (defaults to the proposal's field).
--url …string[]——Confirmed login URL to save (create mode; repeatable). Agent-suggested login URLs are never saved unless confirmed explicitly (T234).
--confirm-suggested-urlsboolean——Explicitly confirm and save all agent-suggested URLs on a `login` item (T234).
--notesstring——Notes override (create mode).
--env-linkboolean——Apply the proposal's environment link, including a protected one (unchecked by default when the target is protected, T314).
--no-env-linkboolean——Do not link the environment variable the proposal suggests.
--env-environmentstring——Environment item whose variable receives the reference (overrides the proposal and enables the link).
--env-variablestring——Environment variable that receives the reference (overrides the proposal and enables the link).
--allow-duplicateboolean——Allow creating an item whose title matches an existing live item in the same project.
--grant-proxyboolean——Also grant the proposed `klav-proxy` profile (unchecked by default; requires Touch ID or the master password, T239).
--wordsstring——The proxy's 6 pairing words (only for the proxy's first credential).
--proxy-profilestring——The profile name to grant under, in place of the proposal's. A sandbox's request never takes a name the proxy already has: its default is the free `NAME-2` the card shows.
--attach-sandboxboolean——Also let the sandbox that asked use the new profile now, until it ends (ADR 0053 §5; off by default). Only with --grant-proxy, only for a live sandbox and a base-URL profile.
--every-device-is-updatedboolean——Confirm every device runs a Klav with per-item grants (only for the account's first per-item grant).
--secret-stdinboolean——Read the secret value from stdin (after the master password line if `--password-stdin` is set) instead of prompting on the TTY.
--yes, -yboolean——Do not ask for `[y/N]` confirmation before prompting for the value.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List pending secret requests (or `--all` for recent decided/expired).

Framework
clap
klav secret-request list [flags]
FlagTypeRequiredDefaultDescription
--allboolean——Include fulfilled, denied and expired requests.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Show the decrypted proposal, setup link warnings and proxy preview of one secret request.

Framework
clap
klav secret-request show <id> [flags]
ArgumentTypeDescription
idstringSecret request ID (or unique prefix).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

"Don't let ISSUER's sandboxes ask again": turn off the secret requests of the issuer whose sandbox raised this request (ADR 0053 §3.3). Asks for Touch ID.

Framework
clap
klav secret-request stop-issuer <id> [flags]
ArgumentTypeDescription
idstringSecret request ID (or unique prefix).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

"Stop this sandbox": revoke the sandbox that raised a secret request (ADR 0053 §3.3), as `klav sandbox revoke` does.

Framework
clap
klav secret-request stop-sandbox <id> [flags]
ArgumentTypeDescription
idstringSecret request ID (or unique prefix).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Create an account on a server and set up this device.

Framework
clap
klav signup [flags]
FlagTypeRequiredDefaultDescription
--serverstring——Your own server's URL (https://…; http:// only for localhost). Default: https://api.klav.dev (klav.dev). [env: KLAV_SERVER]
--emailstringrequired—Account e-mail.
--device-namestring——Name of this device (default: the host name).
--emergency-kitstring——Write the emergency kit (with the Secret Key) to this new file (mode 0600) instead of showing it on the terminal.
--inviteInviteCode——Invite code, for a server that takes new accounts by invite. Else it is asked after the e-mail. It stays in the shell history and in `ps` until used: prefer the prompt, or KLAV_INVITE. [env: KLAV_INVITE]
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The Klav skill in the agent clients' skill folders: install it and keep it up to date without overwriting a copy someone edited.

Framework
clap
klav skill
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Install the Klav skills (default: in the folders of the clients installed here).

Framework
clap
klav skill install [flags]
FlagTypeRequiredDefaultDescription
--client …ClientArg[]——The folders of this client (repeatable).
--dir …string[]——A skills folder: skills go in `<DIR>/<name>/SKILL.md` (repeatable).
--skill …string[]——Only this bundled skill (repeatable; default: all bundled skills).
--dry-runboolean——Show what would change and change nothing.
--replaceboolean——Replace a copy that is not Klav's, or that someone edited: it is kept next to it as `SKILL.md.mine-<time>`.
--adoptboolean——Keep a copy Klav did not write as Klav's, if it is identical to a skill Klav published.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Print a skill this `klav` carries (default: `klav`).

Framework
clap
klav skill show <name?>
ArgumentTypeDescription
name?stringSkill name (`klav`, `klav-migrate`, `klav-setup`; default: `klav`).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The skills this `klav` carries, and every copy found in the clients' folders: up to date, older, edited, removed or not Klav's.

Framework
clap
klav skill status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Remove Klav's copies of its skills.

Framework
clap
klav skill uninstall [flags]
FlagTypeRequiredDefaultDescription
--client …ClientArg[]——The folders of this client (repeatable).
--dir …string[]——A skills folder: skills go in `<DIR>/<name>/SKILL.md` (repeatable).
--skill …string[]——Only this bundled skill (repeatable; default: all bundled skills).
--forceboolean——Also remove a copy someone edited.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Replace Klav's unchanged copies that are older than this `klav`'s skills, and install newly bundled companion skills into active Klav skill folders. Edited and removed copies are never overwritten or restored.

Framework
clap
klav skill update [flags]
FlagTypeRequiredDefaultDescription
--keep-mineboolean——Keep the edited copies as they are, and stop pointing them out until there is a newer skill.
--dir …string[]——Only the copies in this skills folder (repeatable).
--skill …string[]——Only this bundled skill (repeatable; default: all bundled skills).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Account, device and daemon status (no password needed).

Framework
clap
klav status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Pull changes from the server.

Framework
clap
klav sync [flags]
FlagTypeRequiredDefaultDescription
--reset-cacheboolean——Forget this device's copy of the vaults and its rollback marks, and download everything again. For when the server was restored from a backup you trust (every sync is refused as a rollback), or to drop vaults the server no longer lists. Revoked agents and signed vault keys are kept.
--yesboolean——Do not ask for confirmation.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Task requests of agents: several items and permissions for one job, approved with one card (person side, ADR 0021).

Framework
clap
klav task
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Approve a task as the card proposes it, minus what you leave out (Touch ID or the master password).

Framework
clap
klav task approve <id> [flags]
ArgumentTypeDescription
idstringTask ID (or its first characters).
FlagTypeRequiredDefaultDescription
--without …string[]——Leave out an item, or one of its permissions: `REF` or `REF:permission` (REF: `klav://…`, the title or the item ID). Repeatable.
--fornumber——End it sooner than the agent asked (e.g. `1h`; at least `5m`).
--yes, -yboolean——Do not ask for confirmation after showing the card.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Deny a task.

Framework
clap
klav task deny <id> [flags]
ArgumentTypeDescription
idstringTask ID (or its first characters).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

End a running task now («End task»).

Framework
clap
klav task end <id> [flags]
ArgumentTypeDescription
idstringTask ID (or its first characters).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Pending and running tasks (`--all`: also the recent ended ones).

Framework
clap
klav task list [flags]
FlagTypeRequiredDefaultDescription
--allboolean——Include denied, expired and ended tasks.
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The card of a task: what Klav proposes (pending) or what was approved.

Framework
clap
klav task show <id> [flags]
ArgumentTypeDescription
idstringTask ID (or its first characters).
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Current one-time password of an item.

Framework
clap
klav totp <item> [flags]
ArgumentTypeDescription
itemstringItem reference, ID or title.
FlagTypeRequiredDefaultDescription
--fieldstring——TOTP field (default: the first one).
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Unlock (keeps `klavd` unlocked; Touch ID when enrolled).

Framework
clap
klav unlock [flags]
FlagTypeRequiredDefaultDescription
--passwordboolean——Use the master password even if Touch ID is enrolled.
--idle-locknumber—15mWhen `klavd` has to be started: lock after this long without use.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Vaults.

Framework
clap
klav vault
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Create a vault (with a "General" project).

Framework
clap
klav vault create <name>
ArgumentTypeDescription
namestringName.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

List vaults.

Framework
clap
klav vault ls [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable JSON output.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

klav-forward

10 commands

Lets this sandbox use Klav's credential proxy: your API keys stay at the proxy, never in the sandbox.

Framework
clap
klav-forward
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Release this sandbox at the proxy and stop its forwarder, freeing the port. Exit 0 when nothing runs here too. A new forwarder needs a new package from `klav sandbox start`.

Framework
clap
klav-forward down [flags]
FlagTypeRequiredDefaultDescription
--state-dirstring——The state directory of `up`.
--jsonboolean——Print the result as JSON.
--if-other-packageboolean——Stop the forwarder here only if it belongs to another package than the one in KLAV_SANDBOX (the first line of a sandbox's setup script). One for this package is left alone, and so is any when KLAV_SANDBOX or state.json cannot be read: exit 0, and `up` says what it finds.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Print the shell lines with the local URLs (no secrets).

Framework
clap
klav-forward env [flags]
FlagTypeRequiredDefaultDescription
--state-dirstring——The state directory of `up`.
--jsonboolean——Print the URLs as one line of JSON instead.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Klav's MCP server for this sandbox (stdio), registered as `klav-sandbox` by the setup lines of `klav sandbox start`. Its `sandbox_info` tool lists what this sandbox may use, and `request_secret` and `get_secret_request` ask the person for a missing secret, which never reaches the sandbox. It holds no key and asks the running forwarder; stdout carries only MCP messages.

Framework
clap
klav-forward mcp [flags]
FlagTypeRequiredDefaultDescription
--state-dirstring——The state directory of `up`.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Run COMMAND with mode (b)'s HTTPS_PROXY and the sandbox's CA (ADR 0052), for tools that ignore a base URL. Only COMMAND gets them: nothing is exported shell-wide, and HTTP_PROXY is never set.

Framework
clap
klav-forward run <command?> [flags]
ArgumentTypeDescription
command?string[]The command and its arguments.
FlagTypeRequiredDefaultDescription
--state-dirstring——The state directory of `up`.
--profilestring——Check that PROFILE is one of this sandbox's profiles first.
--shimstring——The shim of this command (written by `up`): runs the real one, found in PATH without the shims' directory. (hidden)
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

This sandbox's secret requests (from `request_secret` of `klav-forward mcp`).

Framework
clap
klav-forward secret-request
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Wait for the person to fulfill or deny one of this sandbox's secret requests. Exit codes: 0 fulfilled, 4 still pending, 5 denied, 6 expired, 7 agents paused, 1 anything else. Never prints a value.

Framework
clap
klav-forward secret-request wait <id> [flags]
ArgumentTypeDescription
idstringThe request_id `request_secret` gave.
FlagTypeRequiredDefaultDescription
--timeoutnumber—10mHow long to wait (`90`, `30s`, `10m`, `1h`).
--state-dirstring——The state directory of `up`.
--jsonboolean——Print the outcome as one line of JSON.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The forwarder itself, started by `up` (the package comes on stdin).

Framework
clap
klav-forward serve [flags]
FlagTypeRequiredDefaultDescription
--portnumberrequired—
--state-dirstringrequired—
--claim-wait-secsnumberrequired—
--keep-alive-secsnumber—forward::KEEP_ALIVE.as_secs()
--mode-b-portnumber—8791
--pg-portnumber—15432
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Whether this sandbox can still use the proxy. Exit codes: 0 live, 5 revoked, 6 expired, 7 agents paused, 1 anything else.

Framework
clap
klav-forward status [flags]
FlagTypeRequiredDefaultDescription
--state-dirstring——The state directory of `up`.
--jsonboolean——Print the result as JSON.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Claim the sandbox in KLAV_SANDBOX (from `klav sandbox start`) and forward http://127.0.0.1:PORT/<profile>/… to the proxy.

Framework
clap
klav-forward up [flags]
FlagTypeRequiredDefaultDescription
--daemonboolean——Keep running in the background after the claim (for a setup script).
--portnumber—8790The local port.
--mode-b-portnumber—8791The local port of mode (b), the HTTPS_PROXY that `klav-forward run` and the shims use, when the proxy names hosts for it.
--pg-portnumber—15432The first local port of the Postgres listeners (ADR 0052), one per Postgres profile in name order, when the sandbox has any.
--state-dirstring——Where the state, the log and the fallback shell lines go (default: $KLAV_FORWARD_HOME or ~/.klav-forward).
--profile-filestring—/etc/profile.d/klav-forward.shWhere the shell lines with the local URLs go.
--no-skillboolean——Do not install the Klav skill for this sandbox's user.
--claim-wait-secsnumber—120How long to keep trying while the proxy or Klav's server does not answer. (hidden)
--keep-alive-secsnumber—forward::KEEP_ALIVE.as_secs()How often the forwarder asks the proxy whether its sandbox lives. (hidden)
--jsonboolean——Print the result as JSON.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

The command line of `klav-nitro-parent`.

Framework
clap
klav-nitro-parent [flags]
FlagTypeRequiredDefaultDescription
--channel-listenstring—0.0.0.0:443TCP address for sandbox channels (`a<agent_id>.proxy.klav.dev`).
--channel-enclaveEndpointrequired—The enclave's channel port (`vsock:CID:PORT`, or `tcp:IP:PORT`).
--api-listenstring—0.0.0.0:8443TCP address for the public API (`/v1/manifest`, `/v1/attest`, `/v1/enroll`, `/v1/status`, the hand-off).
--api-enclaveEndpointrequired—The enclave's API port.
--egress-listenEndpointrequired—Where the enclave asks for egress (`vsock:4294967295:PORT` listens on every CID).
--health-listenstring—0.0.0.0:8080TCP address of the load balancer's health check.
--allow-port …number[]——Another egress port besides 443 (repeatable).
--per-ip-per-minutenumber—600New inbound connections per source IP per minute.
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

klav-proxy

5 commands

Klav's credential proxy: puts the credentials you grant it into HTTP requests, without handing them to the agent that asks

Framework
clap
klav-proxy [flags]
FlagTypeRequiredDefaultDescription
--homestring——The proxy's data directory (its registration and, by default, its key). Default: KLAV_HOME, else Klav's usual directory. (global)
--namestring—klav-proxyThe agent name the proxy registered with. (global)
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Klav Cloud's hosted proxy inside an AWS Nitro Enclave (ADR 0051): opens /dev/nsm, listens on vsock, and starts a new seed or joins a live peer through the attested hand-off. Only inside an enclave.

Framework
clap
klav-proxy enclave [flags]
FlagTypeRequiredDefaultDescription
--bootstrap"genesis" | "join"required—How the enclave gets its seed. [env: KLAV_ENCLAVE_BOOTSTRAP]
--joinstring——With `--bootstrap join`: the live holder's hand-off base URL, as this enclave reaches it through the parent's egress. [env: KLAV_ENCLAVE_JOIN]
--join-attemptsnumber—60With `--bootstrap join`: how many times to try before giving up (every 5 s). [env: KLAV_ENCLAVE_JOIN_ATTEMPTS]
--manifest-seqnumber——With `--bootstrap genesis`: the `seq` of the published manifest to serve. Without it, the enclave waits for one on `POST /v1/manifest`. [env: KLAV_ENCLAVE_MANIFEST_SEQ]
--release-key …string[]required—The release authority's Ed25519 public key the image expects (64 hex characters; repeatable, or comma-separated). The enclave starts only if this build pins every one of them. [env: KLAV_ENCLAVE_RELEASE_KEYS]
--channelEndpoint—vsock:4294967295:5000Where sandboxes' channels arrive (TLS, routed by SNI). [env: KLAV_ENCLAVE_CHANNEL]
--apiEndpoint—vsock:4294967295:5001Where the public API is served. [env: KLAV_ENCLAVE_API]
--peerEndpoint——Where other enclaves ask for the hand-off. Without it, the hand-off is served on the API. [env: KLAV_ENCLAVE_PEER]
--egressEndpoint——The parent's egress port (`vsock:3:PORT`). Without it, the enclave connects directly: only for a run outside an enclave. [env: KLAV_ENCLAVE_EGRESS]
--serverstring—https://api.klav.devThe Klav server every account lives on. [env: KLAV_ENCLAVE_SERVER]
--endpointstring—proxy.klav.devThe proxy's DNS name: each account's channel is `a<agent_id>.<this>`. [env: KLAV_ENCLAVE_ENDPOINT]
--manifestsstring—https://raw.githubusercontent.com/OmarAlex24/klav/main/deploy/nitro/manifests/Where the signed manifests are published (a URL ending in `/`). [env: KLAV_ENCLAVE_MANIFESTS]
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow

Registers the proxy with the account and shows the 6 words to compare.

Framework
clap
klav-proxy init [flags]
FlagTypeRequiredDefaultDescription
--emailstringrequired—E-mail of the Klav account.
--serverstring—Klav server (default: Klav's).
--key-store"file" | "keychain"—Store::FileWhere to keep the proxy's key.
--key-filestring——The key file (mode 0600), instead of <home>/agents/<name>.key.
--jsonboolean——Machine-readable output.
--require-memory-lockboolean——Refuse to start when the memory can't be locked out of swap (also KLAV_PROXY_REQUIRE_MEMORY_LOCK=1).
--no-memory-lockboolean——Don't lock the memory out of swap (also KLAV_PROXY_MEMORY_LOCK=off). Core dumps stay off.
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Serves mode (a) on 127.0.0.1: http://127.0.0.1:PORT/<profile>/<path>.

Framework
clap
klav-proxy serve [flags]
FlagTypeRequiredDefaultDescription
--portnumber—8790Port on 127.0.0.1 (the address is always loopback).
--channelstring——Also listen for sandboxes' forwarders on this address (`HOST:PORT`, such as a Tailscale address): TLS 1.3 with this proxy's key, which the sandbox package pins. The person's `klav proxy issuer add --url tls://…` must name it.
--max-bodynumber—DEFAULT_MAX_BODYLargest request body, in bytes.
--timeoutnumber—DEFAULT_REQUEST_TIMEOUT.as_secs()Longest call to a provider, in seconds, answer included; for a stream (`text/event-stream`), its headers only: then it may stay open 15 minutes, and 2 minutes without a chunk.
--no-local-callsboolean——Refuse every profile call on 127.0.0.1 (`403 klav_not_allowed`): only sandboxes, through `--channel`, reach the credentials. The issuers' signed API keeps working.
--control-socketstring——The local socket for the Klav app and `klav proxy local` on this machine (this user only), instead of <home>/agents/<name>.sock.
--no-control-socketboolean——No local socket.
--if-registeredboolean——Exit 0 without serving when no proxy is registered under this name, another klav-proxy already answers on its local socket, or the proxy is pending, revoked or its account is being deleted (the Mac app's LaunchAgent).
--require-memory-lockboolean——Refuse to start when the memory can't be locked out of swap (also KLAV_PROXY_REQUIRE_MEMORY_LOCK=1).
--no-memory-lockboolean——Don't lock the memory out of swap (also KLAV_PROXY_MEMORY_LOCK=off). Core dumps stay off.
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

Shows the proxy's state and the profiles it holds (never a value).

Framework
clap
klav-proxy status [flags]
FlagTypeRequiredDefaultDescription
--jsonboolean——Machine-readable output.
2Handled2
2 handler sites
3Called by0
No static caller
2 usages · in 1 flow

klavd

1 command

Keeps your Klav account unlocked in memory for `klav` and locks it after inactivity or when the machine sleeps.

Framework
clap
klavd [flags]
FlagTypeRequiredDefaultDescription
--idle-locknumber—15mLock after this long without use (`90s`, `15m`, `1h`).
--no-touch-idboolean——Do not offer Touch ID (also `KLAV_NO_TOUCH_ID=1`). [env: KLAV_NO_TOUCH_ID]
--if-not-runningboolean——Exit successfully if a `klavd` already answers for this home (the Mac app's LaunchAgent: another one is not an error to retry).
2Handled1
1 handler site
3Called by0
No static caller
1 usage · in 1 flow