guardry/

For AI agentsand the people who run them

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, and never needs a key pasted into a chat.

If you are an AI agent

Start with llms.txt, then follow the setup runbook.

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 reads it at a hidden prompt.

01Connect your agent

One install. Then one line for your agent.

The installer brings the CLI, the MCP server and the skill, and puts the skill where Claude Code and Cursor look for it.

curl -fsSL https://app.guardry.ai/install.sh | sh
Claude Code

Skill and CLI

The skill teaches Claude Code to fetch secrets by name and never print them.

guardry skill install --agent claude
Cursor

Skill and CLI

The same skill, installed where Cursor's agent finds it.

guardry skill install --agent cursor
Codex

Skill and CLI

Codex reads the shared skills location the installer writes to.

guardry skill install --agent codex
Any MCP client

Built-in MCP server

Prints a configuration with a path and a profile name. No credential is in it.

guardry --profile coding-agent mcp config
CI and runners

An environment variable

Set GUARDRY_URL and a protected GUARDRY_TOKEN, then run as usual.

guardry secrets run --secret DEPLOY_KEY -- ./deploy.sh
Everything else

The agent skill

Install the skill for any agent that reads the shared skills directory.

guardry skill install --agent universal

02In practice

What you say, and what the agent does.

Run the migration with DATABASE_URL from Guardry. Do not print it.
Agent

Runs the program with the value in its environment. The read is recorded first.

guardry secrets run --secret DATABASE_URL -- npm run migrate
Which Stripe keys do we have for staging?
Agent

Searches names and descriptions. No value is read.

guardry secrets list --search stripe
Check the open issues on our repository.
Agent

Asks for approval, waits for you to approve it in the dashboard, then has Guardry read the repository. The GitHub token never leaves the vault.

guardry grants request --service SERVICE_ID --operation issues.list --purpose "Read open issues" --minutes 5
Save the API key you just generated.
Agent

Stores it as a new entry, from standard input, so the value is never a command argument. It cannot overwrite a name that exists.

your-credential-generator | guardry secrets create NEW_API_KEY --stdin
I think that key ended up in the log.
Agent

Reports the exposure without repeating the value. The entry is marked for rotation until you resolve it.

guardry secrets report-leak API_KEY --surface log

03The boundary

What an agent can do, and what it never can.

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

Never, whatever its credential says

  • 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

04Questions

Agents and secrets.

For the model itself there is a facts page with the same answers in one place.

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.

Stop pasting keys. Start naming them.

Create your vault, create a credential for your agent, and tell it which secret to use.