guardry/Docs
Setup guide
Create your vault, import your secrets, connect an AI agent and run your first command with Guardry Secrets.
Move credentials out of scattered files, give each agent a narrow scope, and see every secret read.
1. Create your account
Open your setup invitation, create a passkey, and save the recovery code in your password manager. You can then sign in with your device, security key, or synced passkey.
Create an organization for yourself or your team. Each organization has its own vault, membership and audit history.
2. Organize and import secrets
In Secrets, choose a project and environment. Use Add environment to create combinations such as website / development, website / production, or personal / automation.
Choose Import secrets, then Upload file to select a .env or JSON file, or Paste text to paste its contents. Select the matching file format and review the selected names and destination. Only selected values are uploaded. Every entry defaults to Secret — hidden; choose Variable — visible for non-sensitive values such as BILLING_USER: every organization member and every agent credential that covers the environment can see a variable's value, without approval. Keep BILLING_PASSWORD and BILLING_TOTP_SECRET as secrets. Existing names are skipped. Import up to 100 secrets per import, 512 KiB total and 16 KiB per value.
Quoted multiline values are supported. Empty values are skipped. Shell commands and variable references are kept literal; nothing in the file is executed or expanded. Import one project/environment at a time. Verify your applications before you remove local copies. Guardry does not delete your files.
For an individual token, private key or other text credential, use Add secret. Use Edit to replace an existing value or change its type. A provider credential must also be rotated or revoked at its provider; changing a vault value does not invalidate copies already released.
Manage environments and visible variables
Edit environment changes its project or name while preserving values and agent access. Update scripts that explicitly specify the old project/environment. Delete environment requires typing its full name, removes all of its values and revokes its agent credentials. Audit history remains. Recreating that name does not restore old credentials.
Use Add variable for a non-sensitive value you want to see beside your secrets. Variables are visible to all organization members and to every agent credential that covers their environment, without approval, while secrets stay hidden. Anything sensitive should be a secret. Both types are encrypted in storage and reads are audited. To convert an existing entry, choose Edit → Type. Making a secret visible requires explicit confirmation.
The CLI accepts both types together:
guardry secrets run --secret BILLING_USER --secret BILLING_PASSWORD --secret BILLING_TOTP_SECRET -- python agent.py
To create a new variable through an authorized agent, use guardry secrets create NAME --stdin --kind variable. Creation defaults to secret. Agents cannot change any existing entry or its type.
3. Install the CLI and skill
macOS or Linux (Intel/AMD and ARM64):
curl -fsSL https://app.guardry.ai/install.sh | sh
The installer verifies an RSA-signed SHA-256 manifest, installs the CLI in ~/.local/bin, and installs the skill in the shared agent-skills directory plus detected Claude Code and Cursor directories. No administrator privileges are needed.
If your shell cannot find guardry, add this line to your shell profile and open a new terminal:
export PATH="$HOME/.local/bin:$PATH"
Windows PowerShell (x64 and ARM64):
Invoke-WebRequest https://app.guardry.ai/install.ps1 -OutFile "$env:TEMP\guardry-install.ps1" & "$env:TEMP\guardry-install.ps1"
The Windows installer verifies the same signed release and adds the installation directory to your user PATH. Open a new terminal afterward. If your organization's PowerShell policy blocks downloaded scripts, follow that policy; manually verified release binaries are published under /releases/ on app.guardry.ai.
You can inspect the installer before running it. The signature protects release integrity relative to the key embedded in that installer; your initial trust comes from the HTTPS origin you download it from, https://app.guardry.ai.
Install just the agent skill
guardry skill install --agent codex
# Also supported: claude, cursor, universal, allOr use the skills installer, which takes the skill from Guardry's own address without a GitHub repository:
DISABLE_TELEMETRY=1 npx skills add https://app.guardry.ai --skill guardry-secrets --global --agent codex
Start a new agent session to discover the skill. Installing a skill does not grant vault access.
4. Give an agent access
Open Agent access → Connect agent. Choose one project/environment, a short expiry, and optionally a name prefix. Start with read-only access. Enable creation only for agents that need to add new secret names. Copy the credential once.
guardry login --profile coding-agent
# Paste the agent credential at the hidden prompt.
guardry --profile coding-agent whoami
guardry --profile coding-agent secrets listSaved profiles are private local files containing one bootstrap credential, bound to the Guardry server that issued it. They replace separate local service credentials, not the need for authentication. Use a separate profile for each scope. Keep agent runners isolated from your human dashboard session and unrelated profiles.
Set a default profile for a runner without exposing its token:
export GUARDRY_PROFILE=coding-agent
For CI, use GUARDRY_URL=https://app.guardry.ai and a protected GUARDRY_TOKEN variable or a private GUARDRY_TOKEN_FILE. Never paste the credential into chat, source code or a command argument.
In Agent access, choose Renew on an expired agent to give its saved credential a new lifetime. Choose Rotate to replace a lost or exposed credential. The old credential stops working immediately. Save the replacement and use the same CLI profile or update the runner's protected configuration. Both actions keep the agent's permissions and history. Request new grants as needed.
Revoked credentials are hidden by default. Choose Show revoked in Agent access to review them.
5. Run with secrets
Inject only the values a program needs. Nothing is written to an environment file:
guardry --profile coding-agent secrets run \ --secret API_KEY --secret DATABASE_URL -- python agent.py
Create a new secret from an approved source without putting its value in the command line:
your-credential-generator | guardry secrets create NEW_API_KEY --stdin
Plaintext reads are available when explicitly needed. Prefer process injection to showing values in an agent transcript:
guardry secrets read API_KEY --raw
Agents cannot rotate or delete any existing secret, including secrets they created. Each read is audited before the value is returned. Review Audit log for actor, name, version, time and outcome. Revoke an agent credential from the dashboard to stop future reads immediately.
Recovery and team access
Your recovery code can enroll a replacement passkey. Recovery invalidates existing passkeys and dashboard sessions and gives you a new recovery code. It does not revoke agent credentials; review and revoke those separately if needed.
Organization owners invite members by email address under Team members, as administrators or viewers. Guardry gives you a link to share with that person; it does not send the invitation for you. The link lasts 24 hours and can be revoked. The invited person proves they control that address before joining. Existing accounts must sign in with their passkey. Viewers can inspect metadata, visible variables and audit history, but cannot reveal secret values.
What Guardry protects
Secret values are encrypted with authenticated encryption and tenant-specific keys. Permission checks and read audits happen in each organization's vault. An audit-storage failure denies release. Audit rows are append-only through the application.
A process allowed to read a secret can copy it. A compromised hosting administrator or application runtime can access encryption roots. Cloudflare recovery data may retain deleted ciphertext during the recovery window. No independent security audit has been completed yet, and Guardry holds no compliance certification today.
Descriptions and credential bundles
Add descriptions to secrets, variables and environments. Explain purpose and permitted use without including credentials. Credential bundles group related entries by provider and owner. Agents can search this metadata without reading values.
guardry environments list guardry secrets list --search "billing sandbox" --json guardry bundles list
Use services without revealing stored credentials
In Services, bind a stored secret to GitHub repository reads or one-time-code generation. In Agent access, choose Service operations only and explicitly select the allowed services. Start with a one-hour session. Keep human approval enabled for interactive work; unattended workloads can use a deliberately configured automatic service policy.
guardry services list
guardry grants request --service SERVICE_ID --operation repository.read --purpose "Inspect the assigned repository" --minutes 5
guardry grants status GRANT_ID
# Review and approve the request in the dashboard.
guardry services execute SERVICE_ID --grant GRANT_ID
guardry executions listGrants bind the exact operation and credential versions. Failed attempts still consume a use; inspect execution history before retrying an ambiguous outcome. TOTP uses totp.generate and returns a sensitive temporary code, never its reusable seed. It does not automate the rest of a sign-in.
For local applications that require plaintext, issue a separate read credential. If read approval is enabled, request the exact names with guardry grants request --read NAME --purpose "Task" and pass --grant GRANT_ID to secrets read or secrets run.
Report an accidental leak
Agents can flag a suspected exposure without sending the leaked value. Use the version from the original read, or omit it if unknown.
guardry --profile coding-agent --project billing --environment production secrets report-leak API_KEY --secret-version 3 --surface log
Choose conversation, log, repository, file, or other. The MCP tool is guardry_report_leak; it is available without plaintext-read tools. Never include values, excerpts or URLs.
A red Rotation required alert appears across the organization dashboard. Open Leak alerts to see who reported it and which version/environment was affected. Revoke or rotate the credential at its provider, save its replacement in Guardry, then confirm Resolve report. Only administrators can resolve reports; each decision is audited.
Saving a new value or deleting an entry does not revoke its exposed copy or clear its report. Other reports stay open. This feature reports suspected exposure; it does not automatically detect leaks or rotate provider credentials.
Connect an MCP client
guardry --profile coding-agent mcp config
Copy the printed configuration into your MCP client's settings. It contains no credentials and starts guardry --profile coding-agent mcp serve. The installer includes the CLI, MCP server and agent skill. Plaintext reading is absent from MCP by default. Explicitly enabling it still requires server permission and any configured approval.
Encrypted environment backups
Organization owners can create a portable backup under Recovery. Save its generated recovery key separately in a password manager. Restore the file and matching key into a new environment; existing entries are never overwritten. Entries, descriptions, bundles and service definitions are restored. Tokens, old grants, team membership and historical audit events are not. Restored services require new approval and agent assignment.
The portable archive can be restored without the original vault encryption keys. Test recovery with sample data before relying on it. Revoke all agents stops future agent requests across the organization, but does not invalidate provider credentials already copied elsewhere.
One environment or the whole organization
In Agent access → Connect agent, choose Selected environment or All projects and environments. Organization access includes future environments and stays inside this organization. To read every credential, choose Read values for local applications and leave the name prefix blank. Leave creation unchecked for read-only access. Existing credentials keep their scope.
guardry --profile organization-reader environments list guardry --profile organization-reader secrets list --search "billing" --json guardry --profile organization-reader --project billing --environment production secrets run --secret API_KEY -- python agent.py
Discovery includes project and environment without revealing values. Reads, creation and grant requests must select an exact environment; names can repeat between environments. MCP tools accept project and environment fields. Auditing, expiry, revocation and approvals apply to both access scopes. Agents cannot edit or delete existing entries.