Add a key
Save a key with one or more fields, replace its value, change its icon and rules, reveal it or delete it.
To add a key, open Settings, Vault and click Add a key. Agents then ask for it by its name, and what they get depends on the level you pick.


| Field | What it is for |
|---|---|
| Name | What agents ask for, such as posthog-read. Lowercase letters, digits and dashes, up to 63 characters |
| Label | What you read on cards and lists, such as "PostHog, read only" |
| Keychain | Mine, the workspace's (admins), or one team agent's (admins) |
| Sensitivity | The level: Allow, Auto, Always ask or Human only |
| Fields | One or more names with a value, such as CLIENT_ID and CLIENT_SECRET. Each becomes an environment variable in the command that uses the key |
After you save, the page shows field names only. The value is encrypted before it is written to disk.
From the command line
The value comes from standard input or a file, never from a flag, so it does not land in your shell history.
pbpaste | laze vault add posthog-read --label "PostHog, read only" \
--field POSTHOG_API_KEY --level auto --rules "Read only. Never change a dashboard."Without --field, send one FIELD=value line per field. An agent's key cannot add, change or delete keys: those commands run as you. An agent that made a key itself, such as a new webhook secret, offers it to you instead.
Change a key
Click a key to open its panel. Settings holds the level, the rules, how long an approval lasts, the approvers and the sites; Access shows who can use it; Usage shows every use.


- Replace value: agents get the new value on their next use. Shares, leases and the usage log stay. From the CLI:
laze vault replace posthog-read --field POSTHOG_API_KEY. - Rename: change the label any time. The name is what agents and env files refer to, so it stays the same for the life of the key.
- Icon: click the mark at the top of the panel and pick an emoji, a workspace emoji or a picture up to 1 MB. A key draws its brand's logo when there is one.
- Delete: type the name to confirm. Agents lose the key at once, with every share and lease on it.
laze vault revokealso takes a connected account back at the provider.
See a stored value
Only the owner of a key can reveal it; for a workspace or agent key, an admin. You confirm it is you with your password or a device, write why you need it, and the value shows for 30 seconds. The reveal is in the audit log with your name and reason.


The confirmation is asked again after five minutes, because a laptop left open is the easiest way to read someone else's keys.
Check whether a key holds a value
laze vault compare posthog-read takes a value on standard input and says whether the key holds it, without printing anything. Use it in scripts that rotate keys.
| Exit code | Meaning |
|---|---|
| 0 | The key holds this value |
| 3 | The key holds another value |
| 4 | No key has that name |
| 1 | An error |
It answers 10 times per person and 30 times per workspace in five minutes, so a script cannot guess a value by trying.
Keys used on the computer only
Some values are used inside the program and never sent over the network: a signing key, an encryption key, a database URL. Turn on Used on the computer only in the key's panel, and agents on a Laze computer get the value itself. The page asks you to confirm, because the value can then end up in a log or a chat.
For one command, leave the switch off and let the agent ask with --real-value. See Sites a key is sent to.
Connect an account instead
For Gmail, GitHub, Notion and other services with a sign-in, click Connect an account. The vault keeps the tokens and refreshes them. See Connected accounts.
Also check: Choose a level, Share a key, Env files and AWS.