Expand description
A key an agent’s launch environment names as ANTHROPIC_AUTH_TOKEN=vault:<entry id>
(backend::agent_env): the model endpoint an agent was pointed at wants one. Unlike a model
route’s key (route_key), which goes only into srv’s outgoing request, this value is put in
the agent’s own process environment, where the agent can read it. So the entry must be one the
person has opened to that agent (the Vault’s agents setting, vaults::entry_usable), and every
launch it is put in is recorded under the agent’s name.
Constants§
- NOT_
AVAILABLE - What a caller is told when an entry is not one an agent may have: one answer for a missing entry, a
wrong kind and a closed Vault, so a refusal never says which entries exist or what they are called
(
vaults::resolvekeeps the same rule). The reason is in srv’s log. - USED
- The activity line for a use, listed with the other uses of a value.
Functions§
- for_
launch - The entry’s value for
agent_id’s launch, recorded as a use byagent_slug. - problem
- Why
entry_idis not an entryagent_idmay have put in its environment, if it is not: the one answerNOT_AVAILABLE. Reads no value. Used when the reference is written (for the agent that writes it and the agent it is written for) and again at every launch.