What is AgentSecrets?
The Zero-Knowledge Difference
How AgentSecrets Works
Installation
Quick Start
Migrating from .env Files
Migrating from Vault / AWS
Migrating from dotenv-vault
Production Checklist
Credential Exposure
What Zero-Knowledge Means
The Proxy Model
The Three-Layer Model
Environments
Agent Identity
Storage Modes
The No get() Principle
Secret-Level Policies
Cloud Overview & Architecture
The Dual-Engine Model
Cloud Resolver Data Plane
Workload & Agent Tokens
Egress Allowlists & Audit Streams
Cloud REST API Reference
Account (init / login)
Server & Self-Hosting (server)
Docs
Shell Autocompletion
Keychain Auth
Secrets
Environments
Credential Proxy
env Injection
Workspaces & Teams
Projects
Agent Identity
Audit & Governance
Integrations Overview
Claude Desktop
Cursor
OpenClaw
HTTP Proxy (Any)
LangChain (Soon)
CrewAI (Soon)
CI/CD Pipeline
SDK Overview
Python SDK
Python API Reference
Python SDK Manual Testing
JavaScript SDK (Soon)
Ecosystem Overview
Zero-Knowledge MCP Server
Server Overview
5-Layer Architecture
Self-Hosting Guide
Authentication & Keys
Workspaces & Teams
Projects & Scope
Environments
Secrets & Sync Protocol
Agent Identity Resolution
Telemetry & Metrics Engine
Audit Log Sync
API Endpoint Reference
Security Overview
Anti-Impersonation & Process Verification
Encryption Model
Zero-Knowledge Sync
Proxy Security Layers
Threat Model
OWASP Top 10 Mitigation
Security FAQ
Third-Party Audit
Reporting Vulnerabilities
Guides Overview
Building on the SDK
Stripe Integration
OpenAI Integration
Multi-Agent Setup
Onboarding Team
CI/CD Pipeline
Publishing ZK MCP
Rotating Credentials
Auditing Team Activity
Dev to Production
Kubernetes Deployment
Monorepo Setup
Production Proxy Hardening
vs .env Files
vs HashiCorp Vault
vs AWS Secrets Manager
vs dotenv-vault
vs Infisical
When Not to Use
Proxy Not Starting
Proxy Not Resolving
Domain Blocked
Sync Conflicts
MCP Not Connecting
Session Token Errors
Proxy Session Authorization
Keychain Storage & Backends
SSRF & Destination Rules
Installation Issues
Error Codes Reference
Frequently Asked Questions
v3.1.x
v3.0.0
v2.1.0
v2.0.0
v1.4.0
v1.3.x
v1.2.0
v1.1.x
v1.0.x
Getting StartedProduction Checklist

Production Checklist

Before deploying an AgentSecrets-powered agent to production, work through this checklist. Each item corresponds to a specific security or reliability concern.


Secrets hygiene

All credentials are stored in AgentSecrets — no .env files, no hardcoded values, no environment variables set outside of AgentSecrets
Production secrets are set in the production environment — run agentsecrets environment switch production and agentsecrets secrets list to confirm coverage
Cross-environment diff is clean — run agentsecrets secrets diff --from development --to production and resolve any missing keys
No .env files in your repository — check .gitignore includes .env, .env.*, and .env.local
Storage mode is set to keychain only (mode 1) — unless your deployment environment specifically requires mode 2, keychain only is the correct choice for production

Domain allowlist

Only required domains are authorized — run agentsecrets workspace allowlist list and remove any domains not needed in production
Every domain your agent calls is explicitly listed — test your agent's full call surface and verify all target domains are in the allowlist
No overly broad entries — the allowlist matches exact domains; review for anything that should be scoped more narrowly

Agent identity

Production agents use issued identity — anonymous and declared identity are suitable for development; production agents should use cryptographically issued tokens
Each agent has its own token — do not share tokens between agents; individual tokens can be revoked without affecting others
Tokens are stored securely — issued tokens should be stored in the OS keychain or a secrets manager, not in config files or environment variables
Unused tokens are revoked — run agentsecrets agent token list for each agent and revoke any tokens no longer in use

Audit log

Audit log is accessible — run agentsecrets logs list and confirm entries are appearing
No anonymous calls in production — run agentsecrets logs list --identity anonymous and resolve any identity coverage gaps
Log export process is in place — if you need audit logs for compliance, test agentsecrets logs export --format csv and confirm the output meets your requirements

Team access

Production allowlist changes require admin confirmation — verify that non-admin team members cannot modify the allowlist
Offboarded developers have been removed — run agentsecrets workspace list and review member access
Production workspace is a shared workspace — personal workspaces are for individual projects; production team environments should use shared workspaces with appropriate role assignments

Cloud sync

Secrets are pushed to cloud — run agentsecrets secrets diff in the production environment and confirm there are no local-only entries
Pull works on a fresh machine — test that a new team member can run agentsecrets login, switch to the workspace, and pull production secrets successfully

Proxy

Proxy starts cleanly in your deployment environment — run agentsecrets proxy start and agentsecrets proxy status to confirm
Session token is handled correctly — if your deployment restarts the proxy, ensure dependent processes handle session token rotation
Proxy logs are being reviewed — set up a process to review agentsecrets proxy logs periodically or integrate with your observability stack via log export

Final verification

Run agentsecrets status and confirm:

Logged in as: your-prod-account@example.com Workspace: your-production-workspace Project: your-production-project Environment: production Proxy: running (port 8765) Last sync: recent

Then make a test call and confirm the audit log entry appears:

agentsecrets call --url https://api.stripe.com/v1/balance --bearer STRIPE_KEY agentsecrets logs list --tail

If both succeed, your production setup is correct.

Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.