# Guardry for AI agents — secrets your agent asks for by name

> Connect Claude Code, Cursor, Codex, any MCP client or a CI job to your vault. The agent fetches what it needs at run time, inside the boundary you set.

Connect Claude Code, Cursor, Codex, any MCP client or a CI job to a Guardry vault. The agent fetches what it needs at run time, inside the boundary the person set, and never needs a key pasted into a chat.

## If you are an AI agent

- Read [llms.txt](https://guardry.ai/llms.txt) first, then follow the [setup runbook](https://guardry.ai/setup.md).
- Facts about Guardry for assistants are on [the AI info page](https://guardry.ai/ai-info.md).
- Every page on this site has a Markdown version: add `.md` to its address.
- Two steps need the person you are helping: creating the account and creating your credential.
- Never ask for a credential in the conversation. `guardry login --profile <name>` reads it at a hidden prompt.

## Connect your agent

```sh
# Installs the CLI, the MCP server and the skill (macOS, Linux)
curl -fsSL https://app.guardry.ai/install.sh | sh
```

- [Claude Code](https://guardry.ai/agents/claude-code.md): `guardry skill install --agent claude`
- [Cursor](https://guardry.ai/agents/cursor.md): `guardry skill install --agent cursor`
- [Codex](https://guardry.ai/agents/codex.md): `guardry skill install --agent codex`
- [Any MCP client](https://guardry.ai/agents/mcp.md): `guardry --profile coding-agent mcp config` prints a configuration with a path and a profile name, and no credential
- [CI and unattended runners](https://guardry.ai/agents/ci.md): set `GUARDRY_URL` and a protected `GUARDRY_TOKEN`, then `guardry secrets run --secret DEPLOY_KEY -- ./deploy.sh`
- [The agent skill](https://guardry.ai/agents/skill.md): `guardry skill install --agent universal` for any agent that reads the shared skills directory

## In practice

| The person says | The agent does |
| --- | --- |
| Run the migration with DATABASE_URL from Guardry. Do not print it. | `guardry secrets run --secret DATABASE_URL -- npm run migrate` The value goes into the program's environment; the read is recorded first. |
| Which Stripe keys do we have for staging? | `guardry secrets list --search stripe` Names and descriptions only. No value is read. |
| Check the open issues on our repository. | `guardry grants request --service SERVICE_ID --operation issues.list --purpose "Read open issues" --minutes 5`, waits for approval, then `guardry services execute SERVICE_ID --grant GRANT_ID`. The GitHub token never leaves the vault. |
| Save the API key you just generated. | `your-credential-generator \| guardry secrets create NEW_API_KEY --stdin` The value comes from standard input. An existing name cannot be overwritten. |
| I think that key ended up in the log. | `guardry secrets report-leak API_KEY --surface log` The value is not repeated. The entry is marked for rotation until a person resolves it. |

## What an agent can do, if its credential allows

- List names and descriptions inside its scope and name prefix
- See variable values inside its scope
- Read secret values, directly or after a person approves each request
- Use an assigned service without receiving its credential
- Create new entries
- Report a suspected leak, and list its own audit events

## What an agent can never do

- Edit, rotate or delete an existing entry, including one it created
- See or manage other agent credentials
- See team members, or invite anyone
- Approve a request, its own or another agent's
- Reach another organization
- Act after its credential expires or is revoked

## Questions

### Does my agent need a Guardry account?

No. You have the account. You create an agent credential in the dashboard, and the agent signs the CLI in with it at a hidden prompt, or a runner reads it from a protected variable.

### Does installing the skill or the MCP server give an agent access?

No. The skill is a set of instructions and the MCP server is another way for an agent to reach the same vault. Neither does anything until a profile has been signed in with an agent credential, and the vault checks that credential on every request.

### Can the agent read every secret I have?

Only what its credential covers: one environment or the whole organization, optionally narrowed to names with a prefix, and only if it has permission to read values at all.

### Can the MCP server hand a secret to the model as text?

Not by default. The MCP server has no plain-text read tool unless you start it with `--allow-plaintext-tools`, and even then the vault's permissions and approvals apply.

### What should an agent do if it exposes a secret?

Report it straight away with `guardry secrets report-leak`, without repeating the value, and tell you. The entry is then marked as needing rotation until you resolve it.

---

Source: https://guardry.ai/agents/ · Updated 2026-11-27 · Guardry for language models: https://guardry.ai/llms.txt
