Skip to content

CLI reference

This is the map of the kovra CLI. Each command runs through the same policy decision; run kovra <command> --help for its exact flags and arguments.

CommandWhat it does
kovra initInitialize the vault registry and master key.
kovra setupOnboard the current repo: ensure the vault, register the MCP server in .mcp.json, insert the conventions block in CLAUDE.md.
CommandWhat it does
kovra add <coord>Create a secret (value via hidden prompt or --stdin; never argv).
kovra set <coord>Update a secret’s value.
kovra edit <coord>Edit metadata (sensitivity / description / reference); lowering sensitivity is a guarded downgrade.
kovra rm <coord>Delete a secret.
kovra listList secrets — metadata only, never values.
kovra show <coord>Reveal one value to stdout (high needs bioProve; inject-only never).
kovra generate <coord>Generate a random value server-side; never printed.
kovra import <coord> --from op://…Copy a value from 1Password into the vault as a literal.

The agent-initiated flow: an agent (or you) queues a request to create a secret — naming only the coordinate, never a value — and a human fulfils it out-of-band, so the value never passes through the agent’s context. See kovra over MCP.

CommandWhat it does
kovra intake request <coord>Queue a request to create a secret (--sensitivity, --description; no value here).
kovra intake listList the pending secret-creation requests.
kovra intake fulfill <id>Supply the value for a request and seal it (--stdin / --clipboard / --window; high confirms).
kovra intake cancel <id>Drop a pending request without fulfilling it.

On macOS, the kovra-menulet menu-bar app lists pending requests and opens the native fulfilment window for you.

CommandWhat it does
kovra run --env <e> -- <cmd>Resolve an .env.refs and run a command with values injected into the child process. --allow allowlists an executable for high/prod.
kovra run --stdio -- <cmd>Same, but inherit stdin/stdout/stderr into the child (alias --interactive) — needed to wrap interactive processes and stdio MCP servers. Output isn’t captured, so no masking; the secret is still injected via the environment only and the high/prod gates still run.
CommandWhat it does
kovra code <coord>Print the current TOTP code (never the seed).
kovra keygen <coord>Generate and custody an asymmetric keypair (private half never on disk).
kovra pubkey <coord>Print a keypair’s OpenSSH public key (free).
kovra sign / verifySign data with the private key / verify a signature.
kovra encrypt / decryptEncrypt to / decrypt with an ed25519 keypair.
kovra ssh-add <coord>Load a custodied key into the running ssh-agent, in memory only.
kovra ssh-agentRun kovra as a governed ssh-agent (signs in memory; high/prod confirm per signature).
CommandWhat it does
kovra add <coord> --reference azure-kv://…Store a pointer to Azure Key Vault.
kovra add <coord> --reference aws-sm://…Store a pointer to AWS Secrets Manager.

References resolve at runtime under your own identity. See Cloud references.

CommandWhat it does
kovra confirm <text>Request an attended human confirmation (exit 0 if approved) — for a host/app to gate its own action.
kovra approve [id]Approve/deny a pending confirmation from another session (the file-broker fallback to biometrics).
CommandWhat it does
kovra uiBring up the on-demand loopback admin UI. --docker runs it in a container; --window opens it in a native OS window (macOS); --persistent keeps it up and locks on idle instead of shutting down.
CommandWhat it does
kovra scaffoldScan source for env-var references and propose an .env.refs (reads names only, never values).
kovra doctor (lint)Validate a project’s secret config; coordinates + status only, never a value.
kovra hooksManage git hooks that keep secrets out of commits.
kovra auditQuery the audit trail — coordinates, truncated fingerprints, timestamps, origin; never a value.
kovra key export / importBack up / restore the vault master key (disaster recovery).