AgentSecrets provides two structural security guarantees through its architecture:
- Server Isolation: The server only stores encrypted blobs. Decryption is impossible without your private key, which never leaves your device.
- Agent Isolation: AI agents never receive secret values. They only see key names, endpoints, and API responses. Values are injected at the proxy or process level, ensuring they never enter the agent's context.
Encryption Hierarchy
Secrets are protected by a multi-layered encryption model:
- Password → Key: Uses
Argon2id for memory-hard key derivation. - Private Key: Uses
X25519 (asymmetric) to enable team sharing without server involvement. - Workspace Key: Uses
AES-256-GCM (symmetric) to encrypt the actual secret values.
Key Storage and Access
| Key | Where Stored | Who Can Access |
|---|
| Private Key | Keychain via keychain-auth daemon | You only |
| Workspace Key | Cached securely in client memory | You + authorized client binaries |
| Password-Derived Key | Never stored (derived on demand) | You only (requires password) |
Secure keychain operations are managed by the local keychain-auth daemon, which uses native services like Apple Keychain (macOS), Windows Credential Manager, or Secret Service (Linux).