What a vault stores
A vault config records two things:op_vault_id: which 1Password vault to read credentials from.- A service account token authorizing access to that vault. It is validated against the provider before it is stored, kept write-only, and never returned by any endpoint.
Bind the vault to a browser
Creating a vault is not enough on its own: nothing uses it until you bind it to a Browser environment by setting the browser’svault_id field to the vault’s id. Set it inline in an agent’s environments list, or on a catalog environment when you create or update it:
fill_secret_at action whenever a credential in the vault matches the page it is on. The vault must belong to your organization; leave vault_id unset to run without secret access.
How secrets are matched
Agents never name a 1Password item directly. When an agent fills a credential, the item is selected automatically from the page’s URL:- Domain gating: an item is eligible only if the page’s hostname equals, or is a subdomain of, one of the item’s stored sites. An agent on
test.hcompany.aican use an item stored forhcompany.ai(a parent domain), but not one stored forprod.hcompany.ai(a sibling). - Closest host wins: when several eligible items hold the same field, the one whose hostname matches the page most specifically is chosen. An exact host beats a parent-domain match, and a deeper subdomain beats a shallower one.
- Path breaks ties: if two items match the hostname equally well, the one whose stored path best prefixes the page URL wins. Path is only a tiebreaker, never a requirement.