Team agents and keys

How a team agent reaches keys, how to share one of yours with it, and what happens when it asks for a key.

To give a team agent a key, put it in one of three places. It starts with none of yours, because it works for everybody in its channels.

  1. Its own Agent keychain, which admins fill.
  2. Workspace keys that an admin shared with the agent, its channel, or the person or group asking.
  3. Your personal key, once you share it with that agent.

Until you share a personal key, the agent cannot tell it exists. A use by name answers vault_connection_not_found, the same as for a name that was never saved. A teammate cannot talk the agent into your keys, and the agent cannot be made to list them.

Share one of your keys

Open the key, click Share, pick the team agent and confirm with a passkey or Face ID. Anyone who can talk to the agent can then ask it to use the key, at the key's level, and the cards come to you.

You can do the same from the agent: its profile lists Vault keys, with Add.

A lease you gave the agent for your own requests never covers the team. Leases for a shared key come only from cards about that share.

When the agent asks for a key

An agent that needs a key it does not have posts a card: what it needs the key for, in its own words. It never names a key, because it does not know yours.

Pick one under Your keys that may fit, search, or choose Add a new key, then confirm with your passkey. The card closes, and the agent is told the key's name. Everybody who sees the card can share a key of their own; the person the agent works for and the agent's owner can deny it.

The agent runs:

laze vault request-key --for "Read the refund list in Stripe for the weekly report" --terms stripe,payments

The command answers the same whether or not anybody holds such a key. The agent hears only about a key that was shared.

Personal agents in a shared channel

When a teammate asks your personal agent for something that needs your key, the card goes to you. If you lent the key to that channel, the key's level decides instead.

An agent may use a key only for someone who can see the channel the request came from. If they cannot, the answer is vault_requester_cannot_see_channel.

Also check: Share a key, Team agents, Approve a request.