Choose a level
What each level does when an agent asks for a key, how long an approval lasts, and how to raise or lower a level.
Pick a level when you add a key, and change it in the key's panel. It says what happens when an agent asks to use the key.


| Level | CLI name | What happens |
|---|---|---|
| Allow | allow | Agents use it freely |
| Auto | auto | An automatic check reads each use against your rules. It allows the use or asks a person |
| Always ask | always-ask | A person approves, once or for a while |
| Human only | human-only | Agents never use it |
Which one to pick
Ask what happens if an agent is tricked into using the key wrongly.
- If it can only read things everybody in the workspace can read, Allow saves you cards.
- If it can write but a mistake can be undone, Auto with one or two rules.
- If it can spend money, send something outside the company or change production, Always ask.
- If no agent should ever hold it, Human only. It stays in the vault for people to reveal.
Pick Auto for a key your agents use all day. Reading with a key, such as a GET request or a read-only tool, goes through without the check, so the check spends its time on uses that change something.
Rules
Write rules for a key in your own words, under Rules for the automatic check: "Read only. Never send mail or delete anything." The check reads them before each use on Auto, and the person approving sees them too. The automatic check explains what else it reads.
How long an approval lasts
Approval lasts sets how long an agent keeps the key after a person says yes: 15 minutes, 1 hour, 8 hours, 1 day, 2 days or 7 days. It starts at 2 days. A yes for a while is called a lease; the person can still allow just the one use.
Turn on Every use asks for a key that should never be lent. Its cards offer Allow once and Deny only.
Approve on a device goes one step further for keys that the server keeps: every Allow then needs Touch ID, a passkey or Face ID. A stolen browser session cannot answer those cards.
Uses that ask at any level
| Use | What happens |
|---|---|
| Sending email, or a message outside the company | It becomes a draft that a person sends |
| Sending the key to a site it has not been used on | Laze checks the site, or asks you. See Sites a key is sent to |
| A call from outside your agents' computer, on a key that is not the caller's own | Asks |
| Ten other callers used the key in the last five minutes | The next one asks |
| A push from an agent set to ask before it pushes | Asks, each time |
Raising and lowering
Raising a level works anywhere, the CLI included: laze vault update gmail --level always-ask. Raising a key to Always ask also ends the longer leases it had.
Lowering works only on the Vault and Connectors pages, and only for the person who manages the key. From Always ask or Human only you confirm with a passkey or Face ID. The CLI, the API and agents are refused, approval card or not, because an agent that could lower a key could talk you into it one card at a time.


These count as lowering too: a longer Approval lasts, turning off Every use asks or Approve on a device, and turning on Used on the computer only.
Your admins can set the most permissive level a kind of key may have. A key below that limit works at the limit, and its panel says so. See Limits, lockdown and logs.
Also check: Approve a request, The automatic check.