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.
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.
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 packageSeal a non-prod env to a recipient’s key; writes the package + a separate access token.
kovra unpackOpen a sealed package with your private identity.
kovra exchange init / seal / register-token / openUSB offline bootstrap of a kovra-less machine (macOS only).
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 to run it in a container).
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).