guardry/Guides
Guides
Step-by-step answers to the questions people ask when they start giving AI agents access to real credentials.
- How to replace .env files for AI coding agentsImport the .env file into a vault, give the agent a scoped credential, and start your program with guardry secrets run, then delete the file.
- How to stop pasting API keys into AI chatsStore the key once in a vault and let the agent fetch it by name at run time, so the value never appears in a chat transcript.
- How to require human approval before an AI agent reads a secretGive the agent a credential that reads secret values only after a person approves each request, tied to exact entries and versions.
- How to let an AI agent use a GitHub token without seeing itBind the stored token to a GitHub service for one repository and give the agent a service-only credential, so it never receives the token.
- How to give an AI agent one-time codes without the TOTP seedStore the TOTP seed as a secret, bind it to a TOTP service, and let the agent request a code with totp.generate without receiving the seed.
- An AI agent leaked an API key: what to doRevoke the key at its provider first, then report the leak, save the replacement, resolve the report and check the audit log for reads.
- How to see which AI agent read which secretGive each agent its own credential and the audit log shows which agent read which entry and version, when, with what outcome and from which IP.
- How to share secrets with your team and their AI agentsKeep the secrets in one organization, invite teammates by email address, and give every agent its own scoped credential instead of a shared key.
- How to let AI agents store new credentials safelyGive the agent a credential with the create permission and a name prefix, so it can add new entries from stdin and never change existing ones.
- How to limit an AI agent to one environment and one set of keysCreate the agent credential with a scope of one environment and a name prefix such as STRIPE_, then choose its permissions and a short lifetime.
- How to rotate an API key your AI agents useCreate a new key at the provider, save it in the dashboard as the next version, let agents read it, then revoke the old key at the provider.
- How to revoke an AI agent's access to your secretsRevoke the agent's credential in the dashboard to stop its future requests, then rotate any secret it already read at the provider.