Vault CLI

Every laze vault command with its flags and exit codes, for people, admins and agents.

This page lists every vault command of the laze CLI. Install it with npm i -g @lazehq/cli@latest and sign in with laze login. Values come from standard input or a file and are never printed.

A person's key can do all of these. An agent's key lists and runs the keys it may use, and can offer, save and request keys; it never adds, changes, shares or approves one.

Use keys

CommandWhat it does
laze vault run <name>... --reason "<why>" -- <command>Runs a command with one or more keys, on one card
laze vault env [<file>] --reason "<why>" -- <command>Runs a command with every key in a manifest
laze vault env --namesShows what the manifest resolves to
laze vault env --shellExport lines for a shell hook
laze vault aws <key> [--reason "<why>"]A one-hour AWS session, as credential process JSON or with -- <command>
laze vault exec-providerOpenClaw's exec secret provider
FlagMeaning
--reasonOne plain sentence, 4 words to 200 characters. Required
--wait <seconds>Stop waiting for an answer, exit 75
--real-valueAsk for the value on a Laze computer, for this command
--as <name>The session's name on the card, also LAZE_SESSION_NAME
--channel <id>Which conversation this is for, when the agent is answering in several
--env <x>Read .env.<x>.vault

Manage keys

CommandWhat it does
laze vault list [--json]Keys you manage or see: names, fields, levels
laze vault add <name> --label <text>Save a key, value on standard input
laze vault update <key>Change the label, level, rules, approvers or lease
laze vault replace <key> [--field <FIELD>]A new value
laze vault compare <name> [--field <FIELD>]Is this the value it holds
laze vault rm <key>Delete it
laze vault revoke <key>Delete it and take it back at the provider

add takes --keychain personal|workspace|agent:<id>, --level allow|auto|always-ask|human-only, --rules <text>, --approver <userId>, --lease 15m|1h|8h|1d|2d, --every-use-asks, --local-use, --field <FIELD> and --from-file <path>. update takes the same settings and --device-approval.

update raises a level or leaves it; lowering is on the Vault page only. See Choose a level.

Share

CommandWhat it does
laze vault share <key> --with <email> [--for 1h]Your key, with one person. Waits for your passkey
laze vault lend <key> --channel <id> [--for 1h]Your key, to personal agents in a channel
laze vault grant <key> --to person|group|channel|agent:<id> [--for 1h]A workspace key
laze vault grants <key>Who it is shared with
laze vault ungrant <id>End a share
laze vault leasesLeases that are running
laze vault end-lease <id>End one now

Look back

CommandWhat it does
laze vault uses <key> [--limit <n>]Who used it, how, where, under which approval
laze vault activityWhat happened on your own keys
laze vault approvals [--state pending]Cards you answer. Answer them in Laze
laze vault judgeWhether the automatic check is on
laze vault devicesYour devices
laze vault devices rename <id> <name>Rename one

Admins

CommandWhat it does
laze vault audit [--connection <key>] [--limit <n>]The workspace's audit log
laze vault most-asked [--days <n>]The keys with the highest number of cards
laze vault limitsLimits by kind of connection
laze vault set-limit <subject> [--most ...] [--max-lease ...]Set one. Also --blocked yes|no and --approve-new yes|no
laze vault scrub [--dry-run]Move secrets found in messages to the vault now

Agents

CommandWhat it does
laze vault offer <name> --field <FIELD> --reason "<why>"Offer its owner a key it made, value on standard input
laze vault ask <name> --why "<what for>" [--host <site>]Ask a person to paste a key that does not exist yet
laze vault request-key --for "<what for>" [--terms a,b]Ask people for a key
laze vault save <pending> --name <name> --description "<text>"Name a key that was in a message
laze vault save --from-message <id> --name <name> --description "<text>"Move a key out of a message

Exit codes

CodeMeaning
0Done
1An error, with its code
2The reason is missing or is not one plain sentence
3, 4compare: another value, no such key
75Still waiting for a person, or busy. Run it again
77Denied
127The command was not found

Also check: CLI reference, Vault troubleshooting.