---
title: "CLI commands"
description: "170 entries."
canonical: "https://klav.everdoc.dev/stable/reference/cli"
channel: "stable"
---

# CLI commands

> OmarAlex24/klav · channel `stable` · v0.15.1 @ [`034e81b52d1b`](https://github.com/OmarAlex24/klav/tree/034e81b52d1b693c65ff95181cd555c6734bc8e8) · 2026-12-04 · generated by Everdoc from source (no LLM).

170 entries.

<a id="cli-command-klav"></a>

## `klav`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:10](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L10)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--password-stdin` | `boolean` |  |  | 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-daemon` | `boolean` |  |  | Do not use `klavd` even if it is running: unlock in this process. [env: KLAV_NO_DAEMON] (global) |

- Used at: [crates/klav-cli/src/main.rs:100](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L100)

<a id="cli-command-klav-account"></a>

## `klav account`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L51)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:59](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L59)

<a id="cli-command-klav-account-delete"></a>

## `klav account delete`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2104)
- Handlers: 0 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--cancel` | `boolean` |  |  | Cancel the deletion asked for, from any device. Asks for Touch ID through `klavd`, or the master password, like resuming agents. |


<a id="cli-command-klav-account-kit"></a>

## `klav account kit`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2095](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2095)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--emergency-kit` | `string` |  |  | Write it to this new file (mode 0600) instead of the terminal. |

- Used at: [crates/klav-cli/src/commands/account.rs:486](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L486)

<a id="cli-command-klav-account-set-server"></a>

## `klav account set-server`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2089](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2089)
- Handlers: 1 · Callers: 0
- Arguments: `<url>`
- Used at: [crates/klav-cli/src/commands/account.rs:485](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L485)

<a id="cli-command-klav-agent"></a>

## `klav agent`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:85](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L85)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:68](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L68)

<a id="cli-command-klav-agent-approve"></a>

## `klav agent approve`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:920](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L920)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--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 proje… |
| `--hours` | `string[]` |  |  | Only work inside this weekly window, e.g. `mon-fri 09:00-18:00 -06:00` (repeatable). |
| `--expires` | `number` |  |  | The grant stops working after this long (e.g. `8h`, `30d`). |
| `--policy-file` | `string` |  |  | A policy file (JSON, `docs/diseno.md` §5.2) used as the base. |
| `--words` | `string` |  |  | 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-removed` | `boolean` |  |  | An active agent: also change the key of each project taken away, and give the other agents that hold it a new grant. |
| `--yes, -y` | `boolean` |  |  | An active agent: sign the differences without asking `[y/N]` (a change that widens still asks for Touch ID or the master password). |

- Used at: [crates/klav-cli/src/commands/agent.rs:40](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L40)

<a id="cli-command-klav-agent-browser"></a>

## `klav agent browser`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:908](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L908)
- Handlers: 0 · Callers: 0

<a id="cli-command-klav-agent-browser-forget"></a>

## `klav agent browser forget`

Forget a registered browser.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1232](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1232)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`
- Used at: [crates/klav-cli/src/commands/agent_actions.rs:354](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent_actions.rs#L354)

<a id="cli-command-klav-agent-browser-register"></a>

## `klav agent browser register`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1221)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--cdp` | `string` | yes |  | The browser's CDP address (`http://127.0.0.1:9222`). |
| `--target` | `string` |  |  | Tab (CDP target ID); default: the first tab. |

- Used at: [crates/klav-cli/src/commands/agent_actions.rs:342](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent_actions.rs#L342)

<a id="cli-command-klav-agent-deny"></a>

## `klav agent deny`

Deny a pending registration (person side).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:922](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L922)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`
- Used at: [crates/klav-cli/src/commands/agent.rs:102](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L102)

<a id="cli-command-klav-agent-fill"></a>

## `klav agent fill`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:905](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L905)
- Handlers: 0 · Callers: 0
- Arguments: `<reference>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | Why the agent needs it (mandatory; logged and shown to the person). |
| `--wait` | `number` |  |  | Wait this long for the person when it needs approval (e.g. `2m`). |
| `--approval` | `string` |  |  | Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--cdp` | `string` |  |  | The browser's CDP address (`http://127.0.0.1:9222`). |
| `--target` | `string` |  |  | Tab (CDP target ID); default: the first tab. |
| `--session` | `string` |  |  | A browser registered with `klav agent browser register`. |
| `--extension` | `boolean` |  |  | The active tab of the person's browser, through Klav's extension. |
| `--selector` | `string[]` |  |  | CSS selector for a field: `password=#pass` (repeatable). |
| `--submit` | `boolean` |  |  | Submit the form after filling. |
| `--json` | `boolean` |  |  | Print the report as JSON (field names and addresses, never values). |
| `--config` | `string` |  |  | Project file (default: nearest `klav.toml`). |


<a id="cli-command-klav-agent-inject"></a>

## `klav agent inject`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:902](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L902)
- Handlers: 0 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | Why the agent needs it (mandatory; logged and shown to the person). |
| `--wait` | `number` |  |  | Wait this long for the person when it needs approval (e.g. `2m`). |
| `--approval` | `string` |  |  | Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--in-file, -i` | `string` |  |  | Template with `{{ klav://… }}` references. |
| `--reference, -r` | `string` |  |  | One reference whose value is written as is. |
| `--out-file, -o` | `string` | yes |  | Output file, created with mode 0600. |
| `--force` | `boolean` |  |  | Replace the output file if it exists. |
| `--ttl` | `number` |  |  | Remove the file after this long (waits in the foreground). |
| `--config` | `string` |  |  | Project file for short references (default: nearest `klav.toml`). |


<a id="cli-command-klav-agent-label"></a>

## `klav agent label`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:936](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L936)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--label` | `string` |  |  | Friendly alias in your own words (e.g. "Proxmox proxy"). |
| `--host` | `string` |  |  | Machine, server or sandbox host (e.g. "pve-home"). |
| `--clear` | `boolean` |  |  | Remove the label and host for this agent. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:93](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L93)

<a id="cli-command-klav-agent-list"></a>

## `klav agent list`

The account's agents (person side).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:887](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L887)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:31](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L31)

<a id="cli-command-klav-agent-pause"></a>

## `klav agent pause`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:940](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L940)
- Handlers: 1 · Callers: 0
- Arguments: `<agent?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Every agent of the account. |
| `--for` | `number` |  |  | End the pause by itself after this long (e.g. `1h`); by default it lasts until you resume. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:100](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L100)

<a id="cli-command-klav-agent-register"></a>

## `klav agent register`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:882](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L882)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--name` | `string` | yes |  | Name of the agent (shown to the person; also its local name). |
| `--server` | `string` |  |  | Server URL (default: the server of the account on this device, else https://api.klav.dev). [env: KLAV_SERVER] |
| `--email` | `string` |  |  | E-mail of the account to join (default: the account on this device). |
| `--note` | `string` |  |  | A note for the person (e.g. what the agent is for). |
| `--key-store` | `"auto" \| "keychain" \| "file"` |  | `auto` | Where to keep the agent's private key. |
| `--key-file` | `string` |  |  | Key file for `--key-store file` (default: `$KLAV_HOME/agents/<name>.key`). |
| `--json` | `boolean` |  |  | Print the result as JSON on stdout: the agent ID, its public identity, the six words and when the request lapses. |

- Used at: [crates/klav-cli/src/commands/agent.rs:29](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L29)

<a id="cli-command-klav-agent-resume"></a>

## `klav agent resume`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:944](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L944)
- Handlers: 1 · Callers: 0
- Arguments: `<agent?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Every agent of the account. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:101](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L101)

<a id="cli-command-klav-agent-revoke"></a>

## `klav agent revoke`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:946](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L946)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--rotate` | `boolean` |  |  | Also rotate the keys of its projects and re-issue the grants of the other agents that share them. |
| `--yes, -y` | `boolean` |  |  | Do not ask for confirmation. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:94](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L94)

<a id="cli-command-klav-agent-run"></a>

## `klav agent run`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:898](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L898)
- Handlers: 0 · Callers: 0
- Arguments: `<command>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | Why the agent needs it (mandatory; logged and shown to the person). |
| `--wait` | `number` |  |  | Wait this long for the person when it needs approval (e.g. `2m`). |
| `--approval` | `string` |  |  | Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--config` | `string` |  |  | 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`, th… |
| `--no-files` | `boolean` |  |  | Do not write the `[files]` of `klav.toml`. |
| `--timeout` | `number` |  | `10m` | Kill the command after this long. |


<a id="cli-command-klav-agent-search"></a>

## `klav agent search`

Find the items this agent may list, by title, user name, URL or tag (agent side, like `search_items` in `klav mcp`): exact `klav://` references and field names, never values.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:891](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L891)
- Handlers: 1 · Callers: 0
- Arguments: `<query?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Only this vault. |
| `--project` | `string` |  |  | Only this project. |
| `--kind` | `"login" \| "card" \| "identity" \| "ssh-key" \| "file" \| "totp" \| "note" \| "api-key" \| …+1` |  |  | Only this type (`search_items` calls it `type`). |
| `--repo-only` | `boolean` |  |  | Only items of granted projects linked to this Git repository. |
| `--limit` | `number` |  | `50` | At most this many items (max 200). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:41](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L41)

<a id="cli-command-klav-agent-secret-request"></a>

## `klav agent secret-request`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:916](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L916)
- Handlers: 0 · Callers: 0

<a id="cli-command-klav-agent-secret-request-create"></a>

## `klav agent secret-request create`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:748](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L748)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | 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`). |
| `--title` | `string` |  |  | Suggested item title (`create` mode). |
| `--ref` | `string` |  |  | Target item reference or ID (`update` mode). |
| `--field` | `string` |  |  | Target secret field name (default depends on kind, e.g. `api_key`). |
| `--project` | `string` |  |  | Suggested granted project (`Vault/Project` or project ID, `create` mode). |
| `--placeholder` | `string` |  |  | Short hint for the hidden input (e.g. `sk_live_…`). |
| `--setup-url` | `string` |  |  | Provider dashboard URL (`https://…`) where the person can create or copy the key (never auto-opened, T235). |
| `--base-url` | `string` |  |  | Non-secret API base URL for `api-key` items. |
| `--url` | `string[]` |  |  | Suggested login URL (repeatable; unchecked by default on the card, T234). |
| `--notes` | `string` |  |  | Suggested non-secret notes (`create` mode). |
| `--env-environment` | `string` |  |  | Environment item to propose linking the saved field into (for example `development`; requires --env-variable). |
| `--env-variable` | `string` |  |  | Environment variable to propose linking the saved field as (for example `DATABASE_URL`; requires --env-environment). |
| `--proxy-profile` | `string` |  |  | Optional proposed `klav-proxy` profile name (unchecked by default, T239). |
| `--proxy-upstream` | `string` |  |  | Upstream `https://…` URL for the proposed proxy profile. |
| `--proxy-header` | `string` |  |  | Header name for the proposed proxy profile (default: `authorization`). |
| `--proxy-prefix` | `string` |  |  | 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-rate` | `number` |  |  | Optional per-minute rate limit (`1..=600`) for the proposed proxy profile. |
| `--wait` | `number` |  |  | Wait this long for the person to decide (e.g. `2m`). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:659](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L659)

<a id="cli-command-klav-agent-secret-request-show"></a>

## `klav agent secret-request show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:764](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L764)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:676](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L676)

<a id="cli-command-klav-agent-secret-request-wait"></a>

## `klav agent secret-request wait`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:751](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L751)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--timeout` | `number` |  | `10m` | How long to wait (`10m` default). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:660](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L660)

<a id="cli-command-klav-agent-show"></a>

## `klav agent show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:928](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L928)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L51)

<a id="cli-command-klav-agent-status"></a>

## `klav agent status`

State of a registered agent (agent side).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:884](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L884)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--wait` | `boolean` |  |  | Wait until the person approves or denies it. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:30](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L30)

<a id="cli-command-klav-agent-task"></a>

## `klav agent task`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:912](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L912)
- Handlers: 0 · Callers: 0

<a id="cli-command-klav-agent-task-end"></a>

## `klav agent task end`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:600](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L600)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | Why (mandatory; logged). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:561](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L561)

<a id="cli-command-klav-agent-task-request"></a>

## `klav agent task request`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:561](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L561)
- Handlers: 1 · Callers: 0
- Arguments: `<file>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--wait` | `number` |  | `10m` | Wait for the person (default `10m` when given without a value). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:510](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L510)

<a id="cli-command-klav-agent-task-show"></a>

## `klav agent task show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:590](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L590)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:550](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L550)

<a id="cli-command-klav-agent-task-wait"></a>

## `klav agent task wait`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:576](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L576)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--timeout` | `number` |  | `10m` | Give up after this long (a task request expires 10 minutes after it was made). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:536](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L536)

<a id="cli-command-klav-agent-totp"></a>

## `klav agent totp`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:894](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L894)
- Handlers: 1 · Callers: 0
- Arguments: `<reference>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reason` | `string` | yes |  | Why the agent needs it (mandatory; the person sees it). |
| `--field` | `string` |  |  | Field (default: the first one-time password field). |
| `--wait` | `number` |  |  | Wait this long for the person when it needs approval (e.g. `2m`). |
| `--approval` | `string` |  |  | Use this approval (the ID of a request the person approved, after `klav approval wait`); refused if it is for another action. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |

- Used at: [crates/klav-cli/src/commands/agent.rs:42](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L42)

<a id="cli-command-klav-approval"></a>

## `klav approval`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:96](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L96)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:71](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L71)

<a id="cli-command-klav-approval-approve"></a>

## `klav approval approve`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:456](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L456)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--for` | `number` |  |  | Approve the same action on the same item for this long (e.g. `15m`, at most `24h`) instead of once. |
| `--add-to-task` | `boolean` |  |  | «Add to the task»: add it to the agent's running task (same end time) and approve this request once. |
| `--yes, -y` | `boolean` |  |  | Do not ask for confirmation after showing the request. |

- Used at: [crates/klav-cli/src/commands/agent.rs:1406](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1406)

<a id="cli-command-klav-approval-deny"></a>

## `klav approval deny`

Deny a request.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:480](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L480)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`
- Used at: [crates/klav-cli/src/commands/agent.rs:1510](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1510)

<a id="cli-command-klav-approval-list"></a>

## `klav approval list`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:448](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L448)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Include decided and expired requests. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:1347](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1347)

<a id="cli-command-klav-approval-show"></a>

## `klav approval show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:473](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L473)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:1484](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1484)

<a id="cli-command-klav-approval-wait"></a>

## `klav approval wait`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:487](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L487)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--timeout` | `number` |  | `10m` | Give up after this long (the request itself expires 10 minutes after it was made). |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/agent.rs:1517](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1517)

<a id="cli-command-klav-client"></a>

## `klav client`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:117](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L117)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:77](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L77)

<a id="cli-command-klav-client-connect"></a>

## `klav client connect`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:134](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L134)
- Handlers: 1 · Callers: 0
- Arguments: `<client>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: the client's name, e.g. `cursor`). |
| `--no-skill` | `boolean` |  |  | Do not install the skill. |
| `--dry-run` | `boolean` |  |  | Show what would change and change nothing. |
| `--yes, -y` | `boolean` |  |  | Write without asking (needed without a terminal). |
| `--replace` | `boolean` |  |  | Replace a `klav` entry Klav did not write, or one that changed since it did (a copy is kept). |
| `--adopt` | `boolean` |  |  | Keep a `klav` entry Klav did not write as Klav's, as it is, if it runs a `klav` program. |
| `--expect-sha256` | `string` |  |  | Only write if the settings file still has this SHA-256 (the `file_sha256` of `--dry-run --json`). |
| `--key-store` | `"auto" \| "keychain" \| "file"` |  | `auto` | Where 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.… |
| `--proxy-port` | `number` |  | `8790` | The port the credential proxy listens on, on this Mac. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/client.rs:38](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client.rs#L38)

<a id="cli-command-klav-client-disconnect"></a>

## `klav client disconnect`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:137](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L137)
- Handlers: 1 · Callers: 0
- Arguments: `<client>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--keep-skill` | `boolean` |  |  | Leave the skill where it is. |
| `--dry-run` | `boolean` |  |  | Show what would change and change nothing. |
| `--yes, -y` | `boolean` |  |  | Do not ask (needed without a terminal). |
| `--force` | `boolean` |  |  | 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 … |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/client.rs:42](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client.rs#L42)

<a id="cli-command-klav-client-list"></a>

## `klav client list`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:130](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L130)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/client.rs:34](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client.rs#L34)

<a id="cli-command-klav-client-restore"></a>

## `klav client restore`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:140](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L140)
- Handlers: 1 · Callers: 0
- Arguments: `<client>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--force` | `boolean` |  |  | Restore even if the file changed since Klav wrote it (its current content is kept as another backup). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/client.rs:43](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client.rs#L43)

<a id="cli-command-klav-client-rules"></a>

## `klav client rules`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:143](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L143)
- Handlers: 0 · Callers: 0
- Arguments: `<path?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--file` | `string` |  |  | Instruction file to write: `AGENTS.md`, `CLAUDE.md`, or another path inside the repository (relative paths start at the repository root). |
| `--dry-run` | `boolean` |  |  | Show what would change and change nothing. |
| `--remove` | `boolean` |  |  | Remove only Klav's marked block. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |


<a id="cli-command-klav-env"></a>

## `klav env`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:77](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L77)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:65](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L65)

<a id="cli-command-klav-env-create"></a>

## `klav env create`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1916](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1916)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  |  |
| `--protected` | `boolean` |  |  | Protected: presence every time, and `ask once` for agents. |
| `--no-protected` | `boolean` |  |  | Not protected (turning protection off asks for presence). |

- Used at: [crates/klav-cli/src/commands/env.rs:75](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L75)

<a id="cli-command-klav-env-import"></a>

## `klav env import`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1963](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1963)
- Handlers: 1 · Callers: 0
- Arguments: `<file>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--env` | `string` | yes |  | The environment to import into (created if missing). |
| `--project` | `string` |  |  |  |
| `--dry-run` | `boolean` |  |  | Show the review and change nothing. |
| `--yes, -y` | `boolean` |  |  | Accept every proposal and do not ask (the file is not deleted). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/env.rs:195](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L195)

<a id="cli-command-klav-env-link"></a>

## `klav env link`

Link this Git repository to a project (it only suggests: never grants or skips a confirmation).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1982](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1982)
- Handlers: 1 · Callers: 0
- Arguments: `<project?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--remote` | `string` |  |  | The Git remote to read (default: `origin`, or the one chosen before for this repository). |
| `--yes, -y` | `boolean` |  |  | Do not ask (the remote must be clear, `klav.toml` is not written). |

- Used at: [crates/klav-cli/src/commands/env.rs:216](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L216)

<a id="cli-command-klav-env-ls"></a>

## `klav env ls`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1892](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1892)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  | Project (`Vault/Project`, a name or an ID; default: `klav.toml`'s `project`, or every project). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/env.rs:31](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L31)

<a id="cli-command-klav-env-rm"></a>

## `klav env rm`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1950](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1950)
- Handlers: 1 · Callers: 0
- Arguments: `<name>` `<vars?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  |  |
| `--yes, -y` | `boolean` |  |  | Do not ask (needed without a terminal). |

- Used at: [crates/klav-cli/src/commands/env.rs:161](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L161)

<a id="cli-command-klav-env-scan"></a>

## `klav env scan`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2006](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2006)
- Handlers: 1 · Callers: 0
- Arguments: `<dir?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/env.rs:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L222)

<a id="cli-command-klav-env-set"></a>

## `klav env set`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1930](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1930)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  |  |
| `--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). |
| `--protected` | `boolean` |  |  | Turn `protected` on or off with the same change. |

- Used at: [crates/klav-cli/src/commands/env.rs:103](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L103)

<a id="cli-command-klav-env-show"></a>

## `klav env show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1903](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1903)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  |  |
| `--reveal` | `boolean` |  |  | Print the values. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/env.rs:69](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L69)

<a id="cli-command-klav-env-unlink"></a>

## `klav env unlink`

Remove this repository from a project's links.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1995](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1995)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--project` | `string` |  |  | Project (`Vault/Project`; default: `klav.toml`'s `project`). |
| `--remote` | `string` |  |  | The Git remote to read. |

- Used at: [crates/klav-cli/src/commands/env.rs:221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/env.rs#L221)

<a id="cli-command-klav-extension"></a>

## `klav extension`

Browser extension: native messaging host manifests.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:110](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L110)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:75](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L75)

<a id="cli-command-klav-extension-host-status"></a>

## `klav extension host-status`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2646](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2646)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--browser` | `("chrome" \| "chromium" \| "brave" \| "arc" \| "edge" \| "dia" \| "ardia" \| "firefox")[]` |  |  | Only this browser (repeatable; default: every installed one). |
| `--user-data-dir` | `string` |  |  | 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). |
| `--dev` | `boolean` |  |  | 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 … |
| `--host` | `string` |  |  | Path of `klav-native-host` (default: next to `klav`, or in PATH). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/extension.rs:265](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/extension.rs#L265)

<a id="cli-command-klav-extension-install-host"></a>

## `klav extension install-host`

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`.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2640](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2640)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--browser` | `("chrome" \| "chromium" \| "brave" \| "arc" \| "edge" \| "dia" \| "ardia" \| "firefox")[]` |  |  | Only this browser (repeatable; default: every installed one). |
| `--user-data-dir` | `string` |  |  | 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). |
| `--dev` | `boolean` |  |  | 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 … |
| `--host` | `string` |  |  | Path of `klav-native-host` (default: next to `klav`, or in PATH). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/extension.rs:263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/extension.rs#L263)

<a id="cli-command-klav-extension-uninstall-host"></a>

## `klav extension uninstall-host`

Remove the native messaging host manifests.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2642](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2642)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--browser` | `("chrome" \| "chromium" \| "brave" \| "arc" \| "edge" \| "dia" \| "ardia" \| "firefox")[]` |  |  | Only this browser (repeatable; default: every installed one). |
| `--user-data-dir` | `string` |  |  | 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). |
| `--dev` | `boolean` |  |  | 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 … |
| `--host` | `string` |  |  | Path of `klav-native-host` (default: next to `klav`, or in PATH). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/extension.rs:264](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/extension.rs#L264)

<a id="cli-command-klav-generate"></a>

## `klav generate`

Generate a password or a passphrase.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:64](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L64)
- Handlers: 0 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--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). |
| `--site` | `string` |  |  | Site the password is for: its bundled rules (smart). |
| `--rules` | `string` |  |  | The site's `passwordrules` text (smart), e.g. "minlength: 8; required: digit;". |
| `--length, -l` | `number` |  | `20` | Password length (random; preferred length for smart). |
| `--words, -w` | `number` |  |  | Words of a memorable passphrase (implies --type memorable). |
| `--separator` | `string` |  | `-` | Passphrase separator: 1 to 8 bytes, no ASCII letter or digit, no control or invisible character. |
| `--no-capitalize` | `boolean` |  |  | Passphrase words in lowercase. |
| `--no-number` | `boolean` |  |  | Passphrase without a digit. |
| `--pin-length` | `number` |  | `6` | Digits of a PIN. |
| `--no-symbols` | `boolean` |  |  | No symbols. |
| `--no-digits` | `boolean` |  |  | No digits. |
| `--no-uppercase` | `boolean` |  |  | No uppercase letters. |
| `--avoid-ambiguous` | `boolean` |  |  | Avoid look-alike characters (0/O, 1/l/I…). |
| `--no-history` | `boolean` |  |  | Do not keep the password in the generator history. |


<a id="cli-command-klav-generated"></a>

## `klav generated`

The passwords Klav generated.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:67](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L67)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:79](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L79)

<a id="cli-command-klav-generated-ls"></a>

## `klav generated ls`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2518](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2518)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/generated.rs:23](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/generated.rs#L23)

<a id="cli-command-klav-generated-rm"></a>

## `klav generated rm`

Delete entries of the generator history.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2528](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2528)
- Handlers: 1 · Callers: 0
- Arguments: `<index?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Delete the whole history. |

- Used at: [crates/klav-cli/src/commands/generated.rs:60](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/generated.rs#L60)

<a id="cli-command-klav-generated-show"></a>

## `klav generated show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2523](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2523)
- Handlers: 1 · Callers: 0
- Arguments: `<index>`
- Used at: [crates/klav-cli/src/commands/generated.rs:55](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/generated.rs#L55)

<a id="cli-command-klav-health"></a>

## `klav health`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:70](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L70)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--fix-with` | `string` |  |  | «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… |
| `--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). |
| `--for` | `number` |  |  | With --fix-with: how long the agent has (5m to 24h; default 2h). |
| `--task` | `string` |  |  | With --fix-with: the task's title, as the agent will read it. |
| `--reason` | `string` |  |  | With --fix-with: the reason, as the agent will read it. |
| `--yes, -y` | `boolean` |  |  | With --fix-with: do not ask before offering (needed without a terminal). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/main.rs:80](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L80)

<a id="cli-command-klav-health-breach-check"></a>

## `klav health breach-check`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2583](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2583)
- Handlers: 0 · Callers: 0
- Arguments: `<state?>`

<a id="cli-command-klav-import"></a>

## `klav import`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:73](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L73)
- Handlers: 1 · Callers: 0
- Arguments: `<files>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--from` | `string` |  |  | Where the files come from, when detection is not enough: bitwarden, 1password, google, chrome (edge, brave), firefox, safari or csv. |
| `--vault` | `string` |  |  | Destination vault (default: Personal). |
| `--project` | `string` |  |  | Destination project (default: General). |
| `--dry-run` | `boolean` |  |  | Show what would happen, change nothing. |
| `--json` | `boolean` |  |  | Machine-readable JSON output (the preview, and the result). |

- Used at: [crates/klav-cli/src/main.rs:64](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L64)

<a id="cli-command-klav-inject"></a>

## `klav inject`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:81](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L81)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--in-file, -i` | `string` |  |  | Template with `{{ klav://… }}` references (default: stdin). |
| `--reference, -r` | `string` |  |  | One reference whose value (text or file) is written as is. |
| `--out-file, -o` | `string` |  |  | Output file, created with mode 0600 (default: stdout). |
| `--force` | `boolean` |  |  | Replace the output file if it exists. |
| `--ttl` | `number` |  |  | Remove the file after this long (e.g. `30s`, `10m`, `1h`); `klav` waits in the foreground and also removes it on Ctrl-C/SIGTERM. |
| `--fifo` | `boolean` |  |  | 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). |
| `--config` | `string` |  |  | Project file for short references (default: nearest `klav.toml`). |
| `--env` | `string` |  |  | The environment to write (ADR 0032 §6), with `--dotenv`. |
| `--dotenv` | `boolean` |  |  | Write the environment as a `.env` file (`NAME='value'` lines). |
| `--trust` | `boolean` |  |  | 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. |

- Used at: [crates/klav-cli/src/main.rs:67](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L67)

<a id="cli-command-klav-item"></a>

## `klav item`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:60](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L60)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:62](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L62)

<a id="cli-command-klav-item-add"></a>

## `klav item add`

Add an item.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2270](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2270)
- Handlers: 1 · Callers: 0
- Arguments: `<kind>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--title` | `string` | yes |  | Title (the item name in `klav://` references). |
| `--vault` | `string` |  |  | Vault (default: Personal). |
| `--project` | `string` |  |  | Project (default: General). |
| `--username` | `string` |  |  | Username (same as `--field username=…`). |
| `--from-url` | `boolean` |  |  | Ask for the database connection URL on the terminal, without echo (`database` only). Parsing it fills empty structured fields. |
| `--from-url-stdin` | `boolean` |  |  | Read the database connection URL from the next line of stdin (`database` only). Parsing it fills empty structured fields. |
| `--build-url` | `boolean` |  |  | Compose the connection URL from the structured fields when `url` is empty (`database` only). |
| `--allow-duplicate` | `boolean` |  |  | Add it even if the project already has an item with this title (references by title become ambiguous). |
| `--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-stdin` | `boolean` |  |  | Read the notes from the rest of stdin. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:320](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L320)

<a id="cli-command-klav-item-attach"></a>

## `klav item attach`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2307](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2307)
- Handlers: 1 · Callers: 0
- Arguments: `<item>` `<field>` `<path>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--name` | `string` |  |  | File name to record (default: the name of `path`). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:468](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L468)

<a id="cli-command-klav-item-edit"></a>

## `klav item edit`

Edit an item.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2334](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2334)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--title` | `string` |  |  | New title. |
| `--allow-duplicate` | `boolean` |  |  | Rename even if the project already has an item with the new title (references by title become ambiguous). |
| `--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-stdin` | `boolean` |  |  | Read the notes from the rest of stdin. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:440](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L440)

<a id="cli-command-klav-item-get"></a>

## `klav item get`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2321](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2321)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reveal` | `boolean` |  |  | Show secret values. |
| `--field` | `string` |  |  | Print only this field's value. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:396](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L396)

<a id="cli-command-klav-item-history"></a>

## `klav item history`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2416](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2416)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reveal` | `number` |  |  | Print previous password `N` (from the list) instead. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:596](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L596)

<a id="cli-command-klav-item-ls"></a>

## `klav item ls`

List items (metadata only).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2386](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2386)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Only this vault. |
| `--project` | `string` |  |  | 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`. |
| `--codes` | `boolean` |  |  | Only items with a one-time code, of any type (`klav totp` shows it). |
| `--tag` | `string` |  |  | Only items with this tag. |
| `--trash` | `boolean` |  |  | List the trash. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:559](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L559)

<a id="cli-command-klav-item-purge"></a>

## `klav item purge`

Permanently delete an item that is in the trash.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2378](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2378)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--yes` | `boolean` |  |  | Confirm the permanent deletion. |

- Used at: [crates/klav-cli/src/commands/item.rs:544](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L544)

<a id="cli-command-klav-item-restore"></a>

## `klav item restore`

Restore an item from the trash.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2373](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2373)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`
- Used at: [crates/klav-cli/src/commands/item.rs:540](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L540)

<a id="cli-command-klav-item-rm"></a>

## `klav item rm`

Move an item to the trash.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2368](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2368)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`
- Used at: [crates/klav-cli/src/commands/item.rs:533](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L533)

<a id="cli-command-klav-item-search"></a>

## `klav item search`

Search titles, usernames, URLs and tags.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2409](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2409)
- Handlers: 1 · Callers: 0
- Arguments: `<query>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:585](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L585)

<a id="cli-command-klav-item-sites"></a>

## `klav item sites`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2355](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2355)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--confirm` | `boolean` |  |  | Confirm every site an agent added (writes a new version as you). |
| `--remove` | `string[]` |  |  | Remove this URL (repeatable). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/item.rs:506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/item.rs#L506)

<a id="cli-command-klav-lock"></a>

## `klav lock`

Lock `klavd` now.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:36](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L36)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--stop` | `boolean` |  |  | Also stop `klavd`. |

- Used at: [crates/klav-cli/src/main.rs:54](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L54)

<a id="cli-command-klav-log"></a>

## `klav log`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:107](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L107)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--item` | `string` |  |  | Only events about this item (reference, ID or title). |
| `--agent` | `string` |  |  | Only events of this agent (name or ID). |
| `--vault` | `string` |  |  | Only events in this vault. |
| `--since` | `number` |  |  | From: a duration back from now (`24h`, `7d`), a date (`2026-11-02`) or a UTC time (`2026-11-02T14:30`). |
| `--until` | `number` |  |  | Until (same formats as `--since`; a date means its end). |
| `--alerts` | `boolean` |  |  | 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. |
| `--text` | `string` |  |  | Only events whose item, agent, reason or site contain this text. |
| `--task` | `string` |  |  | 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, -n` | `number` |  | `50` | At most this many events (newest first). |
| `--json` | `boolean` |  |  | JSON output (every matching event, ignores `--limit`). |
| `--csv` | `boolean` |  |  | CSV output (every matching event, ignores `--limit`). |

- Used at: [crates/klav-cli/src/main.rs:74](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L74)

<a id="cli-command-klav-log-reset"></a>

## `klav log reset`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:415](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L415)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--yes` | `boolean` |  |  | Do not ask: you accept the chain the server has now. |

- Used at: [crates/klav-cli/src/commands/log.rs:19](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L19)

<a id="cli-command-klav-log-verify"></a>

## `klav log verify`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:410](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L410)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/log.rs:18](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L18)

<a id="cli-command-klav-login"></a>

## `klav login`

Set up this device for an existing account.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:32](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L32)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--server` | `string` |  |  | Your own server's URL (the one in your emergency kit). Default: https://api.klav.dev (klav.dev). [env: KLAV_SERVER] |
| `--email` | `string` | yes |  | Account e-mail. |
| `--device-name` | `string` |  |  | Name of this device (default: the host name). |
| `--emergency-kit` | `string` |  |  | Read the Secret Key from an emergency kit file (else it is asked). |

- Used at: [crates/klav-cli/src/main.rs:52](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L52)

<a id="cli-command-klav-logout"></a>

## `klav logout`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:44](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L44)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--yes, -y` | `boolean` |  |  | Do not ask (needed without a terminal). |
| `--discard-unsent` | `boolean` |  |  | Sign out even with generated passwords or passkeys not uploaded yet: they are lost with this device's copy. |

- Used at: [crates/klav-cli/src/main.rs:56](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L56)

<a id="cli-command-klav-mcp"></a>

## `klav mcp`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:113](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L113)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). [env: KLAV_AGENT] |
| `--wait` | `number` |  | `60s` | How long a tool waits for the person when the policy says `ask` (each call can ask for another `wait_seconds`, up to 10 min). |

- Used at: [crates/klav-cli/src/main.rs:76](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L76)

<a id="cli-command-klav-presence"></a>

## `klav presence`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:40](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L40)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:55](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L55)

<a id="cli-command-klav-presence-window"></a>

## `klav presence window`

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`.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2493](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2493)
- Handlers: 1 · Callers: 0
- Arguments: `<window?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/presence.rs:35](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/presence.rs#L35)

<a id="cli-command-klav-project"></a>

## `klav project`

Projects inside vaults.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:57](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L57)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:61](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L61)

<a id="cli-command-klav-project-create"></a>

## `klav project create`

Create a project.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2163](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2163)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Vault name or ID. |

- Used at: [crates/klav-cli/src/commands/vault.rs:99](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L99)

<a id="cli-command-klav-project-link"></a>

## `klav project link`

Link a Git repository to a project so Klav suggests its items in this repo (ADR 0032 §2). Reads `git remote get-url origin` unless `--repo` is given.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2173](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2173)
- Handlers: 1 · Callers: 0
- Arguments: `<project>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Vault name or ID (overrides `Vault/` if omitted from `project`). |
| `--repo` | `string` |  |  | Explicit repository URL or `host/owner/repo` instead of detecting from Git. |
| `--remote` | `string` |  | `origin` | Git remote to read when `--repo` is omitted. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/vault.rs:103](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L103)

<a id="cli-command-klav-project-ls"></a>

## `klav project ls`

List projects.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2155](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2155)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Only this vault. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/vault.rs:72](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L72)

<a id="cli-command-klav-project-unlink"></a>

## `klav project unlink`

Unlink a Git repository from a project (ADR 0032 §2).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2189](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2189)
- Handlers: 1 · Callers: 0
- Arguments: `<project>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Vault name or ID (overrides `Vault/` if omitted from `project`). |
| `--repo` | `string` |  |  | Explicit repository URL or `host/owner/repo` instead of detecting from Git. |
| `--remote` | `string` |  | `origin` | Git remote to read when `--repo` is omitted. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/vault.rs:135](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L135)

<a id="cli-command-klav-proxy"></a>

## `klav proxy`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:89](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L89)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:69](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L69)

<a id="cli-command-klav-proxy-cloud"></a>

## `klav proxy cloud`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1269](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1269)
- Handlers: 3 · Callers: 0
- Used at: [crates/klav-cli/src/commands/proxy.rs:52](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L52), [crates/klav-cli/src/commands/proxy.rs:65](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L65), [crates/klav-cli/src/commands/proxy.rs:68](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L68)

<a id="cli-command-klav-proxy-cloud-reset"></a>

## `klav proxy cloud reset`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1346](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1346)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:68](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L68)

<a id="cli-command-klav-proxy-cloud-status"></a>

## `klav proxy cloud status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1337](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1337)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:52](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L52)

<a id="cli-command-klav-proxy-cloud-stop"></a>

## `klav proxy cloud stop`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1341](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1341)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:65](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L65)

<a id="cli-command-klav-proxy-grant"></a>

## `klav proxy grant`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1252](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1252)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--preset` | `string` |  |  | 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 c… |
| `--profile` | `string` |  |  | Profile name: the first segment of the proxy's local URL (`http://127.0.0.1:8790/<profile>/…`). |
| `--upstream` | `string` |  |  | Where requests go: `https://host` or `https://host:port`. |
| `--header` | `string` |  |  | The header the value goes in (`authorization`; with `--mcp-url`, `authorization` unless given). |
| `--mcp-url` | `string` |  |  | 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 tool… |
| `--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. |
| `--prefix` | `string` |  |  | Text before the value (`"Bearer "`; default: none). |
| `--field` | `string` |  |  | 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). |
| `--ask` | `boolean` |  |  | Every call asks you first instead of going through. |
| `--ask-method` | `string[]` |  |  | More methods, each call of which asks you first. |
| `--rate` | `number` |  |  | Most calls per minute through this profile. |
| `--tunnels` | `boolean` |  |  | 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. Nee… |
| `--tunnels-ask` | `boolean` |  |  | 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 … |
| `--tunnel-path` | `string` |  |  | The path a tunnel handshake must be under (default `/tunnel`). |
| `--read-only` | `boolean` |  |  | With `--preset postgres` (ADR 0052): writes, schema changes, admin and unknown statements are refused instead of asking you. |
| `--pg-direct` | `string` |  |  | 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… |
| `--pg-northflank-addon` | `string` |  |  | With `--preset postgres`: a Northflank addon (`PROJECT/ADDON`), reached through Northflank's tunnel with the token of the profile `--pg-via` (a `--tunnels` pro… |
| `--pg-via` | `string` |  |  | The Northflank profile whose token opens the addon's tunnel. |
| `--pg-team` | `string` |  |  | The Northflank team, for a team project. |
| `--pg-addon-port` | `number` |  |  | The addon's Postgres port (default 5432). |
| `--pg-database` | `string[]` |  |  | With `--preset postgres`: a database the sandbox may open (repeatable, 1–4). |
| `--pg-user` | `string` |  |  | With `--preset postgres`: the item's field that holds the role name (default `username`). The item's main secret is the password. |
| `--pg-tls` | `string` |  |  | With `--preset postgres`: TLS toward the database, `verify-full` (default; on a Northflank addon, checked inside the tunnel for the addon instance's internal h… |
| `--pg-write-item` | `string` |  |  | 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-cleartext` | `boolean` |  |  | With `--preset postgres --pg-direct`: answer a cleartext password request, inside the verified TLS. Prefer moving the role to SCRAM. |
| `--words` | `string` |  |  | The proxy's 6 pairing words, for its first credential (asked if missing). |
| `--every-device-is-updated` | `boolean` |  |  | 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 … |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:46](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L46)

<a id="cli-command-klav-proxy-issuer"></a>

## `klav proxy issuer`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1258](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1258)
- Handlers: 2 · Callers: 0
- Used at: [crates/klav-cli/src/commands/proxy.rs:48](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L48), [crates/klav-cli/src/commands/proxy.rs:49](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L49)

<a id="cli-command-klav-proxy-issuer-add"></a>

## `klav proxy issuer add`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1506)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--profile` | `string[]` | yes |  | A profile of the proxy its sandboxes may use (repeat for more). |
| `--url` | `string` | yes |  | Where a sandbox reaches the proxy: `tls://host:port`. |
| `--max-ttl` | `number` |  |  | Longest a sandbox it starts may live (`8h`, `90m`; at most 24h). |
| `--max-live` | `number` |  |  | Most of its sandboxes alive at once (default 3). |
| `--inject-ask` | `boolean` |  |  | 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-requests` | `boolean` |  |  | 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-requests` | `boolean` |  |  | Stop its sandboxes from asking you for secrets. Without either flag the issuer keeps what it had (off for a new one). |
| `--words` | `string` |  |  | The agent's 6 pairing words, when it is still pending (asked if missing). |
| `--every-device-is-updated` | `boolean` |  |  | Every device and klav-proxy runs a Klav with sandbox issuers: needed for the account's first issuer, which older ones cannot read. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:48](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L48)

<a id="cli-command-klav-proxy-issuer-remove"></a>

## `klav proxy issuer remove`

Stop AGENT from starting sandboxes.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1508](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1508)
- Handlers: 1 · Callers: 0
- Arguments: `<agent>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:49](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L49)

<a id="cli-command-klav-proxy-local"></a>

## `klav proxy local`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1265](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1265)
- Handlers: 0 · Callers: 0

<a id="cli-command-klav-proxy-local-init"></a>

## `klav proxy local init`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1362](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1362)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--email` | `string` | yes |  | E-mail of the Klav account. |
| `--server` | `string` |  |  | Klav server (default: Klav's). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy_local.rs:24](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_local.rs#L24)

<a id="cli-command-klav-proxy-local-revoke"></a>

## `klav proxy local revoke`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1359](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1359)
- Handlers: 1 · Callers: 0
- Arguments: `<id?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Every live sandbox of the proxy on this machine. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy_local.rs:23](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_local.rs#L23)

<a id="cli-command-klav-proxy-local-status"></a>

## `klav proxy local status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1355](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1355)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy_local.rs:22](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_local.rs#L22)

<a id="cli-command-klav-proxy-pg-guard"></a>

## `klav proxy pg-guard`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1278](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1278)
- Handlers: 2 · Callers: 0
- Used at: [crates/klav-cli/src/commands/proxy.rs:75](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L75), [crates/klav-cli/src/commands/proxy.rs:78](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L78)

<a id="cli-command-klav-proxy-pg-guard-enable"></a>

## `klav proxy pg-guard enable`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1306](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1306)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--every-device-is-updated` | `boolean` |  |  | Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:78](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L78)

<a id="cli-command-klav-proxy-pg-guard-status"></a>

## `klav proxy pg-guard status`

Whether the account's Postgres guard is on.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1302](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1302)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:75](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L75)

<a id="cli-command-klav-proxy-revoke"></a>

## `klav proxy revoke`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1254](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1254)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:47](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L47)

<a id="cli-command-klav-proxy-sandbox-secret-requests"></a>

## `klav proxy sandbox-secret-requests`

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`.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1284](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1284)
- Handlers: 2 · Callers: 0
- Used at: [crates/klav-cli/src/commands/proxy.rs:81](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L81), [crates/klav-cli/src/commands/proxy.rs:84](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L84)

<a id="cli-command-klav-proxy-sandbox-secret-requests-enable"></a>

## `klav proxy sandbox-secret-requests enable`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1295](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1295)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--every-device-is-updated` | `boolean` |  |  | Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:84](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L84)

<a id="cli-command-klav-proxy-sandbox-secret-requests-status"></a>

## `klav proxy sandbox-secret-requests status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1291](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1291)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:81](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L81)

<a id="cli-command-klav-proxy-sandboxes"></a>

## `klav proxy sandboxes`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1261](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1261)
- Handlers: 0 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--ended` | `boolean` |  |  | Also those that ended, and those whose proxy was revoked. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |


<a id="cli-command-klav-proxy-sandboxes-revoke"></a>

## `klav proxy sandboxes revoke`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1408](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1408)
- Handlers: 1 · Callers: 0
- Arguments: `<id?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Every sandbox of the account's proxy issued so far. |
| `--wait` | `boolean` |  |  | Wait until the proxy logs their end (at most 2 minutes). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy_sandboxes.rs:45](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_sandboxes.rs#L45)

<a id="cli-command-klav-proxy-status"></a>

## `klav proxy status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1245](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1245)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:34](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L34)

<a id="cli-command-klav-proxy-tunnels"></a>

## `klav proxy tunnels`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1274](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1274)
- Handlers: 2 · Callers: 0
- Used at: [crates/klav-cli/src/commands/proxy.rs:71](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L71), [crates/klav-cli/src/commands/proxy.rs:74](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L74)

<a id="cli-command-klav-proxy-tunnels-enable"></a>

## `klav proxy tunnels enable`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1317](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1317)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--every-device-is-updated` | `boolean` |  |  | Every device and klav-proxy runs a Klav with WebSocket tunnels: needed when the account has another device or a proxy. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:74](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L74)

<a id="cli-command-klav-proxy-tunnels-status"></a>

## `klav proxy tunnels status`

Whether the account's WebSocket tunnels are on.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1313)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:71](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L71)

<a id="cli-command-klav-proxy-use"></a>

## `klav proxy use`

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`.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1249](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1249)
- Handlers: 1 · Callers: 0
- Arguments: `<mode>` `<agent?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/proxy.rs:45](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L45)

<a id="cli-command-klav-run"></a>

## `klav run`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:79](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L79)
- Handlers: 1 · Callers: 0
- Arguments: `<command>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--config` | `string` |  |  | 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 … |
| `--no-files` | `boolean` |  |  | Do not write the `[files]` of `klav.toml`. |
| `--trust` | `boolean` |  |  | Use a `klav.toml` that is new or changed since you approved it without asking (it is pinned as approved). |

- Used at: [crates/klav-cli/src/main.rs:66](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L66)

<a id="cli-command-klav-sandbox"></a>

## `klav sandbox`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:93](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L93)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:70](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L70)

<a id="cli-command-klav-sandbox-ls"></a>

## `klav sandbox ls`

This agent's live sandboxes.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1434](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1434)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--proxy-port` | `number` |  | `8790` | Port of `klav-proxy serve` on this machine. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/sandbox.rs:257](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/sandbox.rs#L257)

<a id="cli-command-klav-sandbox-start"></a>

## `klav sandbox start`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1432](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1432)
- Handlers: 1 · Callers: 0
- Arguments: `<command?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--label` | `string` | yes |  | What the sandbox is for, as the person will see it (`chat-123`). |
| `--profile` | `string[]` | yes |  | A profile of the proxy the sandbox may use (repeat for more). |
| `--ttl` | `number` |  |  | 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-file` | `string` |  |  | 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. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--proxy-port` | `number` |  | `8790` | Port of `klav-proxy serve` on this machine. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/sandbox.rs:256](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/sandbox.rs#L256)

<a id="cli-command-klav-sandbox-stop"></a>

## `klav sandbox stop`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:1436](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L1436)
- Handlers: 1 · Callers: 0
- Arguments: `<id?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Every live sandbox of this agent. |
| `--agent` | `string` |  |  | Agent name (default: `$KLAV_AGENT` or the only one). |
| `--proxy-port` | `number` |  | `8790` | Port of `klav-proxy serve` on this machine. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/sandbox.rs:258](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/sandbox.rs#L258)

<a id="cli-command-klav-secret-request"></a>

## `klav secret-request`

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).

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:105](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L105)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:73](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L73)

<a id="cli-command-klav-secret-request-deny"></a>

## `klav secret-request deny`

Deny a pending secret request with a signed decision.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:638](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L638)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:81](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L81)

<a id="cli-command-klav-secret-request-fulfill"></a>

## `klav secret-request fulfill`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:636](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L636)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--vault` | `string` |  |  | Destination vault name or ID (create mode; overrides the proposal). |
| `--project` | `string` |  |  | Destination project name or ID (create mode; overrides the proposal). |
| `--title` | `string` |  |  | Item title override (create mode). |
| `--field` | `string` |  |  | 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-urls` | `boolean` |  |  | Explicitly confirm and save all agent-suggested URLs on a `login` item (T234). |
| `--notes` | `string` |  |  | Notes override (create mode). |
| `--env-link` | `boolean` |  |  | Apply the proposal's environment link, including a protected one (unchecked by default when the target is protected, T314). |
| `--no-env-link` | `boolean` |  |  | Do not link the environment variable the proposal suggests. |
| `--env-environment` | `string` |  |  | Environment item whose variable receives the reference (overrides the proposal and enables the link). |
| `--env-variable` | `string` |  |  | Environment variable that receives the reference (overrides the proposal and enables the link). |
| `--allow-duplicate` | `boolean` |  |  | Allow creating an item whose title matches an existing live item in the same project. |
| `--grant-proxy` | `boolean` |  |  | Also grant the proposed `klav-proxy` profile (unchecked by default; requires Touch ID or the master password, T239). |
| `--words` | `string` |  |  | The proxy's 6 pairing words (only for the proxy's first credential). |
| `--proxy-profile` | `string` |  |  | 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… |
| `--attach-sandbox` | `boolean` |  |  | 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 ba… |
| `--every-device-is-updated` | `boolean` |  |  | Confirm every device runs a Klav with per-item grants (only for the account's first per-item grant). |
| `--secret-stdin` | `boolean` |  |  | Read the secret value from stdin (after the master password line if `--password-stdin` is set) instead of prompting on the TTY. |
| `--yes, -y` | `boolean` |  |  | Do not ask for `[y/N]` confirmation before prompting for the value. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:80](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L80)

<a id="cli-command-klav-secret-request-list"></a>

## `klav secret-request list`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:619](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L619)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Include fulfilled, denied and expired requests. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:38](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L38)

<a id="cli-command-klav-secret-request-show"></a>

## `klav secret-request show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:628](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L628)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:71](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L71)

<a id="cli-command-klav-secret-request-stop-issuer"></a>

## `klav secret-request stop-issuer`

"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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:657](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L657)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:102](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L102)

<a id="cli-command-klav-secret-request-stop-sandbox"></a>

## `klav secret-request stop-sandbox`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:647](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L647)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/secret_request.rs:101](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L101)

<a id="cli-command-klav-signup"></a>

## `klav signup`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:30](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L30)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--server` | `string` |  |  | Your own server's URL (https://…; http:// only for localhost). Default: https://api.klav.dev (klav.dev). [env: KLAV_SERVER] |
| `--email` | `string` | yes |  | Account e-mail. |
| `--device-name` | `string` |  |  | Name of this device (default: the host name). |
| `--emergency-kit` | `string` |  |  | Write the emergency kit (with the Secret Key) to this new file (mode 0600) instead of showing it on the terminal. |
| `--invite` | `InviteCode` |  |  | 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 th… |

- Used at: [crates/klav-cli/src/main.rs:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L51)

<a id="cli-command-klav-skill"></a>

## `klav skill`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L121)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:78](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L78)

<a id="cli-command-klav-skill-install"></a>

## `klav skill install`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:262](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L262)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--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-run` | `boolean` |  |  | Show what would change and change nothing. |
| `--replace` | `boolean` |  |  | Replace a copy that is not Klav's, or that someone edited: it is kept next to it as `SKILL.md.mine-<time>`. |
| `--adopt` | `boolean` |  |  | Keep a copy Klav did not write as Klav's, if it is identical to a skill Klav published. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/skill.rs:28](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/skill.rs#L28)

<a id="cli-command-klav-skill-show"></a>

## `klav skill show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:271](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L271)
- Handlers: 1 · Callers: 0
- Arguments: `<name?>`
- Used at: [crates/klav-cli/src/commands/skill.rs:31](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/skill.rs#L31)

<a id="cli-command-klav-skill-status"></a>

## `klav skill status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L259)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/skill.rs:27](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/skill.rs#L27)

<a id="cli-command-klav-skill-uninstall"></a>

## `klav skill uninstall`

Remove Klav's copies of its skills.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:269](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L269)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--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). |
| `--force` | `boolean` |  |  | Also remove a copy someone edited. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/skill.rs:30](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/skill.rs#L30)

<a id="cli-command-klav-skill-update"></a>

## `klav skill update`

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.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:267](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L267)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--keep-mine` | `boolean` |  |  | 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). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/skill.rs:29](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/skill.rs#L29)

<a id="cli-command-klav-status"></a>

## `klav status`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:46](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L46)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/main.rs:57](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L57)

<a id="cli-command-klav-sync"></a>

## `klav sync`

Pull changes from the server.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:48](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L48)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--reset-cache` | `boolean` |  |  | 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 … |
| `--yes` | `boolean` |  |  | Do not ask for confirmation. |

- Used at: [crates/klav-cli/src/main.rs:58](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L58)

<a id="cli-command-klav-task"></a>

## `klav task`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:100](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L100)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:72](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L72)

<a id="cli-command-klav-task-approve"></a>

## `klav task approve`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:523](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L523)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--without` | `string[]` |  |  | Leave out an item, or one of its permissions: `REF` or `REF:permission` (REF: `klav://…`, the title or the item ID). Repeatable. |
| `--for` | `number` |  |  | End it sooner than the agent asked (e.g. `1h`; at least `5m`). |
| `--yes, -y` | `boolean` |  |  | Do not ask for confirmation after showing the card. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:60](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L60)

<a id="cli-command-klav-task-deny"></a>

## `klav task deny`

Deny a task.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:541](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L541)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:101](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L101)

<a id="cli-command-klav-task-end"></a>

## `klav task end`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:548](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L548)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:114](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L114)

<a id="cli-command-klav-task-list"></a>

## `klav task list`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L506)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--all` | `boolean` |  |  | Include denied, expired and ended tasks. |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:27](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L27)

<a id="cli-command-klav-task-show"></a>

## `klav task show`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:515](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L515)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/task.rs:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L51)

<a id="cli-command-klav-totp"></a>

## `klav totp`

Current one-time password of an item.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:62](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L62)
- Handlers: 1 · Callers: 0
- Arguments: `<item>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--field` | `string` |  |  | TOTP field (default: the first one). |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/main.rs:63](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L63)

<a id="cli-command-klav-unlock"></a>

## `klav unlock`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:34](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L34)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--password` | `boolean` |  |  | Use the master password even if Touch ID is enrolled. |
| `--idle-lock` | `number` |  | `15m` | When `klavd` has to be started: lock after this long without use. |

- Used at: [crates/klav-cli/src/main.rs:53](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L53)

<a id="cli-command-klav-vault"></a>

## `klav vault`

Vaults.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:54](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L54)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-cli/src/main.rs:60](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/main.rs#L60)

<a id="cli-command-klav-vault-create"></a>

## `klav vault create`

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

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2146](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2146)
- Handlers: 1 · Callers: 0
- Arguments: `<name>`
- Used at: [crates/klav-cli/src/commands/vault.rs:35](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L35)

<a id="cli-command-klav-vault-ls"></a>

## `klav vault ls`

List vaults.

- Kind: cli-command
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/cli.rs:2144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/cli.rs#L2144)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable JSON output. |

- Used at: [crates/klav-cli/src/commands/vault.rs:13](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/vault.rs#L13)

<a id="cli-command-klav-forward"></a>

## `klav-forward`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:59](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L59)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-forward/src/main.rs:276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L276)

<a id="cli-command-klav-forward-down"></a>

## `klav-forward down`

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`.

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:150](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L150)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--state-dir` | `string` |  |  | The state directory of `up`. |
| `--json` | `boolean` |  |  | Print the result as JSON. |
| `--if-other-package` | `boolean` |  |  | 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 i… |

- Used at: [crates/klav-forward/src/main.rs:320](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L320)

<a id="cli-command-klav-forward-env"></a>

## `klav-forward env`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L121)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--state-dir` | `string` |  |  | The state directory of `up`. |
| `--json` | `boolean` |  |  | Print the URLs as one line of JSON instead. |

- Used at: [crates/klav-forward/src/main.rs:306](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L306)

<a id="cli-command-klav-forward-mcp"></a>

## `klav-forward mcp`

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.

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:171](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L171)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--state-dir` | `string` |  |  | The state directory of `up`. |

- Used at: [crates/klav-forward/src/main.rs:332](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L332)

<a id="cli-command-klav-forward-run"></a>

## `klav-forward run`

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.

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:132](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L132)
- Handlers: 1 · Callers: 0
- Arguments: `<command?>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--state-dir` | `string` |  |  | The state directory of `up`. |
| `--profile` | `string` |  |  | Check that PROFILE is one of this sandbox's profiles first. |
| `--shim` | `string` |  |  | The shim of this command (written by `up`): runs the real one, found in PATH without the shims' directory. (hidden) |

- Used at: [crates/klav-forward/src/main.rs:309](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L309)

<a id="cli-command-klav-forward-secret-request"></a>

## `klav-forward secret-request`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:178](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L178)
- Handlers: 1 · Callers: 0
- Used at: [crates/klav-forward/src/main.rs:341](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L341)

<a id="cli-command-klav-forward-secret-request-wait"></a>

## `klav-forward secret-request wait`

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.

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:202](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L202)
- Handlers: 1 · Callers: 0
- Arguments: `<id>`

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--timeout` | `number` |  | `10m` | How long to wait (`90`, `30s`, `10m`, `1h`). |
| `--state-dir` | `string` |  |  | The state directory of `up`. |
| `--json` | `boolean` |  |  | Print the outcome as one line of JSON. |

- Used at: [crates/klav-forward/src/main.rs:341](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L341)

<a id="cli-command-klav-forward-serve"></a>

## `klav-forward serve`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:181](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L181)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--port` | `number` | yes |  |  |
| `--state-dir` | `string` | yes |  |  |
| `--claim-wait-secs` | `number` | yes |  |  |
| `--keep-alive-secs` | `number` |  | `forward::KEEP_ALIVE.as_secs()` |  |
| `--mode-b-port` | `number` |  | `8791` |  |
| `--pg-port` | `number` |  | `15432` |  |

- Used at: [crates/klav-forward/src/main.rs:352](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L352)

<a id="cli-command-klav-forward-status"></a>

## `klav-forward status`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:112](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L112)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--state-dir` | `string` |  |  | The state directory of `up`. |
| `--json` | `boolean` |  |  | Print the result as JSON. |

- Used at: [crates/klav-forward/src/main.rs:302](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L302)

<a id="cli-command-klav-forward-up"></a>

## `klav-forward up`

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

- Kind: cli-command
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/main.rs:75](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L75)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--daemon` | `boolean` |  |  | Keep running in the background after the claim (for a setup script). |
| `--port` | `number` |  | `8790` | The local port. |
| `--mode-b-port` | `number` |  | `8791` | The local port of mode (b), the HTTPS_PROXY that `klav-forward run` and the shims use, when the proxy names hosts for it. |
| `--pg-port` | `number` |  | `15432` | The first local port of the Postgres listeners (ADR 0052), one per Postgres profile in name order, when the sandbox has any. |
| `--state-dir` | `string` |  |  | Where the state, the log and the fallback shell lines go (default: $KLAV_FORWARD_HOME or ~/.klav-forward). |
| `--profile-file` | `string` |  | `/etc/profile.d/klav-forward.sh` | Where the shell lines with the local URLs go. |
| `--no-skill` | `boolean` |  |  | Do not install the Klav skill for this sandbox's user. |
| `--claim-wait-secs` | `number` |  | `120` | How long to keep trying while the proxy or Klav's server does not answer. (hidden) |
| `--keep-alive-secs` | `number` |  | `forward::KEEP_ALIVE.as_secs()` | How often the forwarder asks the proxy whether its sandbox lives. (hidden) |
| `--json` | `boolean` |  |  | Print the result as JSON. |

- Used at: [crates/klav-forward/src/main.rs:279](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/main.rs#L279)

<a id="cli-command-klav-nitro-parent"></a>

## `klav-nitro-parent`

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

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/parent.rs:454](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/parent.rs#L454)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--channel-listen` | `string` |  | `0.0.0.0:443` | TCP address for sandbox channels (`a<agent_id>.proxy.klav.dev`). |
| `--channel-enclave` | `Endpoint` | yes |  | The enclave's channel port (`vsock:CID:PORT`, or `tcp:IP:PORT`). |
| `--api-listen` | `string` |  | `0.0.0.0:8443` | TCP address for the public API (`/v1/manifest`, `/v1/attest`, `/v1/enroll`, `/v1/status`, the hand-off). |
| `--api-enclave` | `Endpoint` | yes |  | The enclave's API port. |
| `--egress-listen` | `Endpoint` | yes |  | Where the enclave asks for egress (`vsock:4294967295:PORT` listens on every CID). |
| `--health-listen` | `string` |  | `0.0.0.0:8080` | TCP address of the load balancer's health check. |
| `--allow-port` | `number[]` |  |  | Another egress port besides 443 (repeatable). |
| `--per-ip-per-minute` | `number` |  | `600` | New inbound connections per source IP per minute. |

- Used at: [crates/klav-proxy/src/main.rs:14](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/main.rs#L14)

<a id="cli-command-klav-proxy"></a>

## `klav-proxy`

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

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/cli.rs:31](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L31)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--home` | `string` |  |  | The proxy's data directory (its registration and, by default, its key). Default: KLAV_HOME, else Klav's usual directory. (global) |
| `--name` | `string` |  | `klav-proxy` | The agent name the proxy registered with. (global) |

- Used at: [crates/klav-proxy/src/main.rs:14](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/main.rs#L14)

<a id="cli-command-klav-proxy-enclave"></a>

## `klav-proxy enclave`

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.

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/cli.rs:132](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L132)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--bootstrap` | `"genesis" \| "join"` | yes |  | How the enclave gets its seed. [env: KLAV_ENCLAVE_BOOTSTRAP] |
| `--join` | `string` |  |  | 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-attempts` | `number` |  | `60` | With `--bootstrap join`: how many times to try before giving up (every 5 s). [env: KLAV_ENCLAVE_JOIN_ATTEMPTS] |
| `--manifest-seq` | `number` |  |  | 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_MANI… |
| `--release-key` | `string[]` | yes |  | 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 ev… |
| `--channel` | `Endpoint` |  | `vsock:4294967295:5000` | Where sandboxes' channels arrive (TLS, routed by SNI). [env: KLAV_ENCLAVE_CHANNEL] |
| `--api` | `Endpoint` |  | `vsock:4294967295:5001` | Where the public API is served. [env: KLAV_ENCLAVE_API] |
| `--peer` | `Endpoint` |  |  | Where other enclaves ask for the hand-off. Without it, the hand-off is served on the API. [env: KLAV_ENCLAVE_PEER] |
| `--egress` | `Endpoint` |  |  | 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] |
| `--server` | `string` |  | `https://api.klav.dev` | The Klav server every account lives on. [env: KLAV_ENCLAVE_SERVER] |
| `--endpoint` | `string` |  | `proxy.klav.dev` | The proxy's DNS name: each account's channel is `a<agent_id>.<this>`. [env: KLAV_ENCLAVE_ENDPOINT] |
| `--manifests` | `string` |  | `https://raw.githubusercontent.com/OmarAlex24/klav/main/deploy/nitro/manifests/` | Where the signed manifests are published (a URL ending in `/`). [env: KLAV_ENCLAVE_MANIFESTS] |

- Used at: [crates/klav-proxy/src/cli.rs:192](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L192)

<a id="cli-command-klav-proxy-init"></a>

## `klav-proxy init`

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

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/cli.rs:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L51)
- Handlers: 2 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--email` | `string` | yes |  | E-mail of the Klav account. |
| `--server` | `string` |  | `` | Klav server (default: Klav's). |
| `--key-store` | `"file" \| "keychain"` |  | `Store::File` | Where to keep the proxy's key. |
| `--key-file` | `string` |  |  | The key file (mode 0600), instead of <home>/agents/<name>.key. |
| `--json` | `boolean` |  |  | Machine-readable output. |
| `--require-memory-lock` | `boolean` |  |  | Refuse to start when the memory can't be locked out of swap (also KLAV_PROXY_REQUIRE_MEMORY_LOCK=1). |
| `--no-memory-lock` | `boolean` |  |  | Don't lock the memory out of swap (also KLAV_PROXY_MEMORY_LOCK=off). Core dumps stay off. |

- Used at: [crates/klav-proxy/src/cli.rs:178](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L178), [crates/klav-proxy/src/cli.rs:270](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L270)

<a id="cli-command-klav-proxy-serve"></a>

## `klav-proxy serve`

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

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/cli.rs:77](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L77)
- Handlers: 2 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--port` | `number` |  | `8790` | Port on 127.0.0.1 (the address is always loopback). |
| `--channel` | `string` |  |  | 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… |
| `--max-body` | `number` |  | `DEFAULT_MAX_BODY` | Largest request body, in bytes. |
| `--timeout` | `number` |  | `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 … |
| `--no-local-calls` | `boolean` |  |  | 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 work… |
| `--control-socket` | `string` |  |  | 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-socket` | `boolean` |  |  | No local socket. |
| `--if-registered` | `boolean` |  |  | 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… |
| `--require-memory-lock` | `boolean` |  |  | Refuse to start when the memory can't be locked out of swap (also KLAV_PROXY_REQUIRE_MEMORY_LOCK=1). |
| `--no-memory-lock` | `boolean` |  |  | Don't lock the memory out of swap (also KLAV_PROXY_MEMORY_LOCK=off). Core dumps stay off. |

- Used at: [crates/klav-proxy/src/cli.rs:183](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L183), [crates/klav-proxy/src/cli.rs:328](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L328)

<a id="cli-command-klav-proxy-status"></a>

## `klav-proxy status`

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

- Kind: cli-command
- Workspace: [klav-proxy](../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/cli.rs:123](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L123)
- Handlers: 2 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | `boolean` |  |  | Machine-readable output. |

- Used at: [crates/klav-proxy/src/cli.rs:188](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L188), [crates/klav-proxy/src/cli.rs:388](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-proxy/src/cli.rs#L388)

<a id="cli-command-klavd"></a>

## `klavd`

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

- Kind: cli-command
- Workspace: [klav-daemon](../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/main.rs:17](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/main.rs#L17)
- Handlers: 1 · Callers: 0

| Flag | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--idle-lock` | `number` |  | `15m` | Lock after this long without use (`90s`, `15m`, `1h`). |
| `--no-touch-id` | `boolean` |  |  | Do not offer Touch ID (also `KLAV_NO_TOUCH_ID=1`). [env: KLAV_NO_TOUCH_ID] |
| `--if-not-running` | `boolean` |  |  | Exit successfully if a `klavd` already answers for this home (the Mac app's LaunchAgent: another one is not an error to retry). |

- Used at: [crates/klav-daemon/src/main.rs:69](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/main.rs#L69)
