guardry/

guardry/Answers/Agent credential

What is an agent credential?

An agent credential is a credential issued to one AI agent that identifies it and limits what it can reach, what it can do and for how long.

An agent credential is a credential issued to one AI agent rather than to a person. It identifies the agent to a system, limits what that agent can reach and do, and can be taken away without affecting anyone else.

Why it matters

If an agent works with your login, or with a key that several things share, the system cannot tell the agent apart from you or from the others. You cannot narrow the agent's access without narrowing your own, and stopping it means changing a key that other things depend on. A separate credential for each agent makes access narrow, attributable and easy to end.

What good looks like

  • One credential for each agent.
  • A limited scope, so the agent reaches only what its task needs.
  • A lifetime, so access ends without anyone having to remember.
  • Revocation at any moment.

How Guardry does it

In Guardry each agent gets its own agent credential, created in the dashboard under Agent access and shown once. Guardry stores it as a hash. A credential has four parts:

  • a scope, which is one environment, or every current and future environment in the organization
  • an optional name prefix, for example STRIPE_
  • permissions, chosen separately, to read secret values, to read secret values only after a person approves each request, to use assigned services without ever receiving their credentials, and to create new entries
  • a lifetime of 1 hour, 4 hours, 7 days or 30 days

You sign the CLI in with the credential, pasted at a hidden prompt:

guardry login --profile coding-agent
guardry --profile coding-agent whoami

A credential can be revoked at any moment, and "Revoke all agents" stops every agent in an organization at once.

Limits

Revocation applies to future requests. A value an agent already received stays with it. An agent can never edit, rotate or delete an existing entry, and it cannot see members, manage credentials or approve anything.

Questions

Is an agent credential the same as an API key?

It works in a similar way, as a value the agent presents to prove what it is. The purpose differs. An API key opens one provider's service. An agent credential opens a limited part of a vault, where the agent gets the keys its task needs.

Can two agents share one credential?

Give each agent its own. With a shared credential, a record of reads cannot tell the agents apart, and revoking it stops both.

How do I use an agent credential in CI?

For CI and unattended runners, set GUARDRY_URL=https://app.guardry.ai and a protected GUARDRY_TOKEN, or GUARDRY_TOKEN_FILE.