# Duang Security & Zero-Key Vault (duang.ai/security)

> Your agents get the data. Your keys never leave the vault.

## Architecture Guarantees
- **Zero-key credential injection**: Provider API keys and OAuth tokens are decrypted only at the outbound server dispatch boundary; AI models and local dotfiles never receive raw secrets.
- **Per-team envelope encryption & revocation**: Every team workspace is encrypted independently. Agents hold scoped, revocable team tokens, CLI device grants, or MCP OAuth tokens.
- **No silent billing fallback**: Team connections always execute first ($0). If a team connection expires or fails, Duang returns a reconnect link and stops—never silently switching providers or charging the wallet.
- **SSRF protection**: Outbound requests block private IP ranges and protect against DNS rebinding.
- **Append-only micro-USD ledger**: Every reservation, settlement, top-up, and refund is recorded immutably with atomic balance guards. Failed upstream/platform calls cost $0.
- **Source-available core**: Auditable and self-hostable at https://github.com/fastagent-sh/duang.
