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
CLI ReferenceProxy Logs

Governance Audit Logs

Every AgentSecrets proxy call is logged. The operational proxy daemon logs (agentsecrets proxy logs) track local daemon runtime events and connections. The governance audit logs (agentsecrets logs) show the cryptographically verified access logs with complete context.

What the governance log records

Every entry captures:

  • Timestamp
  • Agent identity and identity level
  • Active environment at time of call
  • Credential reference (key name, never value)
  • Injection style
  • Target domain and full URL
  • HTTP method
  • Response status code
  • Duration in milliseconds
  • Whether response redaction occurred
  • Domain allowlist snapshot — the exact state of the allowlist at the moment of the call, not the current state

The allowlist snapshot is important for forensics. If the allowlist changes after an incident, historical entries still show what was authorized at the time of the call. The governance log is forensically complete.

Querying the governance log

# Stream live logs agentsecrets logs list --tail # Filter by agent agentsecrets logs list --agent billing-processor # Find anonymous calls — gaps in identity coverage agentsecrets logs list --identity anonymous # Aggregate statistics for the last 7 days agentsecrets logs summary --since 7d # Export for compliance review agentsecrets logs export --format csv --since 30d # Inspect a specific entry in full detail agentsecrets logs show <entry-id>

Workspace & Project Scoping

All agentsecrets logs commands are implicitly scoped to your active workspace (configured via agentsecrets workspace switch). If the workspace is Shared, the CLI pulls workspace-wide logs from the central server. If the workspace is Personal, it reads them from the local SQLite audit database (~/.agentsecrets/audit.db).

To filter logs for a specific project within that active workspace, use the --project flag on any logs command:

agentsecrets logs list --project payments-service agentsecrets logs summary --project content-pipeline

What is never in the log

There is no value field in the audit log schema. It is not a field that is populated with empty strings or null, the field does not exist. You cannot accidentally log a credential value by misconfiguring the verbosity level or enabling debug mode. The schema makes it structurally impossible.

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