Share a key

Who a key can be shared with, who approves its uses, who can read its value, and how to end a share.

Your own agents use your keys without sharing anything. Share a key when somebody else's agent, a team agent, a channel or an app needs it.

Open the key, click Share, search for a person, an agent or a channel, pick for how long (1 hour, 1 day, 1 week or no end) and confirm.

The Share dialog of a personal key with who can use it, a search for people, agents and channels, and for how long
Sharing a personal key. Each line shows who can use it, and Remove ends it at once.

What each share gives

You share withWhich agents use itWho approvesCan they read the value
A personThat person's own agents, when that person asksThat personOnly at Allow
A team agentThat agent, for anyone it works forYouOnly at Allow
A channel (Lend)Personal agents working in that channelYouOnly at Allow
A person, group, channel, agent or app, from the workspace keychainThe agents they can talk to, or that appThe key's approversOnly at Allow

A key at Allow can be read by whoever uses it, because using it freely and reading it come to the same thing. At the other levels the person you shared it with approves uses and never sees the value.

A sealed key you shared still asks you each time: only your device opens it.

Confirming a share

Sharing a personal key takes a passkey or Face ID. A password does not approve it, because a share hands a key to other people's agents and a stolen session should not be enough.

laze vault share posthog-read --with mia@acme.test, or an agent asking for you, makes a share that waits. Open Share on the key and click Approve with passkey, or Decline with a reason the agent reads.

Always ask and Human only keys are shared only from the Vault page. From the CLI or an agent the share is refused with vault_share_protected.

A rule for one agent

Each agent line in the Share dialog has its own rule.

RuleWhat it does
Follows the keyThe key's level decides
OffThis agent cannot use it
Ask every timeThis agent always asks, even on an Allow key
Always allowThis agent uses it without asking

Rules are set on the page only. Giving an agent more than it has asks for your passkey. If you later raise the key, an Always allow shows Confirm again and waits, so a key you made stricter is strict for everybody until you confirm. Off and Ask every time end the agent's leases at once.

Who has access

The Access tab of a key lists its owner, everyone it is shared with, the channels it is lent to and the agents with their own rule. Manage access opens the Share dialog.

The Access tab of a key listing its owner, the people and agents it is shared with, and Manage access
The Access tab lists who can use the key, in one place.

Ending a share

Click Remove next to the line, or laze vault grants <name> and laze vault ungrant <id>. The next use is refused. A value someone already read at Allow stays with them, so replace the value if that matters.

Workspace keys

An admin adds a key to the Workspace keychain and shares it by name. Nothing is shared by default: a workspace key with no shares is used by no agent. Pick Approvers in the key's panel; they answer its cards. The person who asked is never the one who approves for a key they do not manage.

laze vault grant stripe-readonly --to agent:agent_123 --for 1w
laze vault grants stripe-readonly

Also check: Team agents and keys, Choose a level.