Open-source, end-to-end encrypted password manager built for humans and AI agents.
Agents get actions, not values: connect Claude Code, Claude Desktop, Codex, Cursor, or VS Code so your agents can sign in to websites, run commands with API keys, and use passkeys — without ever seeing your passwords, with Touch ID / Face ID approvals and a verifiable audit log.
Website (klav.dev) · Documentation (docs.klav.dev) · What Klav does · Security (SECURITY.md) · Contributing
Public preview (
v0.9): Klav is self-hosted today and has not yet undergone an external security audit (planned before1.0). Use it with care while it matures, and report any security issue privately viaSECURITY.md.
Every coding agent you run today usually gets a raw copy of your .env files, long-lived API keys, or browser logins.
Klav treats each agent as its own cryptographic principal:
- Zero-knowledge vault: Your master password and 128-bit Secret Key never leave your devices. The server stores only ciphertext.
- Scoped agent identities: Pair an agent with 6 words and Touch ID / Face ID. Grant per-project permissions (
allow,ask,deny) forlist,fill,inject,totp,create,update,delete,passkey,rotate, andreveal(revealis denied by default). - Actions instead of raw secrets:
klav mcp, the CLI, and the SDK fill browser logins (fill_login), use passkeys inside approved tasks (passkey_sign_in), and run commands with injected secrets (run_with_secrets, with output redaction) without returning secret values to the model. - Human-in-the-loop approvals & tasks: Sensitive calls pause and prompt you on your Mac (Touch ID) or iPhone (Face ID). Approve once, for a time window, or bundle multi-site jobs into one revocable task.
- Tamper-evident audit log & kill switch: Every agent call is signed and hash-chained. Pause all agents in one click (even while locked) or revoke an agent to rotate project keys and see an exact "what did this agent see?" exposure report.
- One-command client setup:
klav client connect claude-code|claude-desktop|codex|cursor|vscodeconfigures MCP safely (with backups), installs the agent skill, and registers the agent. - MCP server (
klav mcp), CLI (klav agent …), and SDK (klav-sdk,@klav/sdk): Browser autofill via the extension or CDP, command execution with env/file injection (klav run,klav inject,run_with_secrets,inject_file), TOTP, task requests, and assisted password rotation. - Sandbox credential proxy (early preview):
klav-proxyandklav-forwardkeep real API tokens outside disposable sandboxes over a pinned TLS 1.3 channel (base-URL mode,northflankpreset,klav proxy/klav sandboxCLI, and the Mac app's Active Sandboxes panel).
- Native Mac app: Menu bar & window, Touch ID via
klavd, vault editor, Vault Health, agent approvals & activity, automatic Sparkle updates (Klav.dmg, Apple silicon, macOS 15+). - Native iPhone app: Face ID (Secure Enclave), AutoFill for passwords, TOTP codes, and passkeys, APNs push approvals (TestFlight beta, iOS 18+).
- Browser extension: Chromium (Chrome, Brave, Edge, Arc, Dia) and Firefox — multi-step login autofill, TOTP, passkeys, cards, addresses, generator, and agent
fill_login. - CLI (
klav) + local daemon (klavd): macOS and Linux (x86_64, glibc 2.36+). - Importers: Bitwarden JSON (including passkeys) & CSV, 1Password
.1pux& CSV, Google Authenticator export QR codes, and Chrome/Edge/Brave/Firefox/Safari CSVs. - Vault health & assisted password change: Detects reused, weak, old, and (opt-in) Have I Been Pwned breached passwords, and lets an approved agent rotate reused passwords without seeing them.
See docs/features.md for the full feature-by-feature matrix across every surface.
-
Host your server with the published image, SQLite and invite mode (no Rust build; Postgres and Railway are in
docs/self-hosting.mdand docs.klav.dev/self-hosting):mkdir klav && cd klav curl -fsSLO https://raw.githubusercontent.com/OmarAlex24/klav/v0.10.0/docker-compose.yml docker compose up -d # Create the invite you sign up with; nobody registers without one docker compose exec klav klav-server invite create --email you@example.com
Put TLS in front before connecting from other devices:
tailscale serve --bg 8080(private, your tailnet only) orcaddy reverse-proxy --from klav.example.com --to 127.0.0.1:8080(public). Without Docker: the Linuxklav-server-linux-x86_64.tar.gzwith its systemd unit, orbrew install omaralex24/tap/klav-serveron Linux and macOS (quick start). -
Install Klav:
- macOS: Download
Klav.dmgfrom klav.dev/#download (or GitHub Releases, orbrew install --cask omaralex24/tap/klav), drag Klav to Applications, and run Set up this Mac to installklavd,/usr/local/bin/klav, browser native messaging, and the agent skill. - Linux: Download
klav-linux-x86_64.tar.gzfrom klav.dev/#download (containsklav,klavd, andklav-native-host), orbrew install omaralex24/tap/klav-cli. - From source:
cargo build --release -p klav-cli -p klav-daemon(requires the Rust toolchain inrust-toolchain.toml).
- macOS: Download
-
Connect an agent:
klav client connect claude-code # or codex, cursor, vscode, claude-desktop
All cryptography lives in a single Rust crate (crates/klav-core) with versioned binary formats and test vectors in docs/vectores/:
- Key derivation: Argon2id + 128-bit Secret Key → account KEK
- Authentication: OPAQUE (
opaque-ke) — the server never sees your master password - Encryption: XChaCha20-Poly1305 with bound AAD (
account‖vault‖project‖item‖version), STREAM chunked attachments, and HPKE (RFC 9180) for wrapping project/item keys to agents - Signing & passkeys: Ed25519 for signed agent requests, grants, revocations, and the hash-chained audit log; ES256 (
p256) for synced WebAuthn passkeys - Safety: Secrets wrapped in
secrecy::SecretBox/zeroize;unsafeforbidden outsideklav-ffiand the macOS Touch ID shim
Read the full architecture and security docs:
Designs accepted in docs/decisiones/ and planned for upcoming public releases (see docs.klav.dev/on-the-way):
- Per-repository environments (
klav env): Nameddevelopment/productionvariable sets,.envimport, and Touch ID /ask-onceprotection on production secrets. - Transparent sandbox proxy (
HTTPS_PROXYmode & MCP gate): Zero-code-change credential injection for tools and MCP servers inside sandboxes, plus iOS active-sandbox management and egress pinning. - Deployed services: Domain-challenged enrollment tokens, key ratcheting, clone detection, and keyless workload federation so leaked PaaS environment variables leave nothing long-lived to rotate.
- Store listings & hosted server: Chrome Web Store, Mozilla Add-ons, Apple App Store, and Klav's managed server (
api.klav.dev, $20/year — join the waitlist).
User-facing documentation is in English at apps/docs (docs.klav.dev) and docs/self-hosting.md. Several internal reference documents and older ADRs under docs/ are still migrating from Spanish to English (ADR 0031).
crates/klav-server:AGPL-3.0-only- Everything else (core, CLI, daemon, proxy, forwarder, SDK, browser extension, macOS & iOS apps):
Apache-2.0
See ADR 0003 for the licensing rationale.