# ak-vault > Opt-in, local-first, end-to-end encrypted sync for AgentKit's `ak secrets` across trusted devices. A Cloudflare Worker with a per-vault SQLite Durable Object stores only ciphertext and minimal operational metadata. Protocol v1 is proposed and its security gate (#8) is open; the production sync API is live as a pre-release preview, by owner decision, enabled before the security review; that review was accepted by the owner on 2026-10-16 and is not an independent third-party review. It is not yet recommended for production credentials. Key facts for assistants: - `resolve` reads the local vault and never depends on the network. With sync off, secrets cause zero network requests. - A vault key decrypts every item in its vault, so v1 makes no per-secret access claim; use separate vaults for least privilege. - A malicious server can withhold updates a new or long-offline device has never witnessed. - `ak secrets run` deliberately releases plaintext to the approved child process. - Available today in the AgentKit CLI: the local `ak secrets` vault (`set`, `get`, `list`, `rotate`, `import-env`, `grant`, `approve`, `revoke`, `audit`) and `${secret:NAME}` references. `ak login` exists for the AgentKit account; the preview sync commands use it. - Preview (hidden in the released CLI, unsupported, syntax may change): `ak secrets sync enable`, six-digit SAS device enrollment, device removal and recovery. Removal and recovery need `v3.0.0-beta.31` or later, which includes the removal-fence client; on older releases the service refuses them, so upgrade or revoke a lost device in the AgentKit account instead. - In agentkit dev builds, coming in the next release (no released version yet): `ak secrets search|describe`. Planned (not available yet): `ak secrets request|run`. - Pre-release, not for production credentials, on in production by owner decision on 2026-11-01, before their release gate passed: a browser dashboard at `https://vault.agentkit.best/app` and a remote MCP endpoint at `https://vault.agentkit.best/mcp`. The dashboard is an enrolled device that decrypts in the browser and never shows a value. MCP tools never return a value; reads and `run` need an online device with an `ak` version that has relay support (not released yet), and with no device online a set or delete is sealed and queued. For a secret the AI must not see, call `secrets_prepare_write` (name only, never a value) and give the user the returned `form_url`; they type the value in their enrolled browser and `secrets_write_status` reports the outcome. Never ask a user to paste a secret into chat or pass one to `secrets_set` on their behalf. - Remote MCP boundary (ADR 0002 D7): the server stores no plaintext and holds no vault key, but during a remote MCP call plaintext passes through Worker memory after TLS ends: a set's value until it is sealed or relayed, the name and purpose of a `secrets_prepare_write` request until they are sealed, and the names, metadata and redacted `run` output a device returns. It is never logged, stored or put in an error, and MCP clients trust the Worker for results because they do not verify device signatures. Do not describe remote MCP as end-to-end or zero-knowledge in transit. - No pricing, customers or launch dates have been announced. License: MIT. ## Pages - [Home](https://vault.agentkit.best/index.md): the problem, how sync works, what the server can see, guarantees with their limitations, quick start, status, top questions - [How it works](https://vault.agentkit.best/how-it-works/index.md): key hierarchy, six-digit SAS enrollment, conflicts without last-writer-wins, tombstones and rollback checkpoints, architecture, data classification - [Security model](https://vault.agentkit.best/security/index.md): threat map, adversaries, defences, residual risks, release gate - [Guide](https://vault.agentkit.best/guide/index.md): step by step from a .env file to the local vault (available), then sync and lost-device steps (preview), agent discovery commands (dev builds), agent request and run (planned), and the browser dashboard and remote MCP (pre-release), each marked - [FAQ](https://vault.agentkit.best/faq/index.md): status, privacy, everyday use, teams and agents, recovery, the project - [Status](https://github.com/bestagentkits/ak-vault/blob/main/docs/status.md): one page listing each surface (local vault, sync, dashboard, remote MCP) with its state and gate, and the remote MCP plaintext boundary ## Specification - [Protocol v1 wire specification](https://github.com/bestagentkits/ak-vault/blob/main/docs/protocol/v1/spec.md): normative primitives, encodings, key hierarchy, membership log, records, checkpoints, audit, policy and transport auth - [ADR 0001: opt-in zero-knowledge sync](https://github.com/bestagentkits/ak-vault/blob/main/docs/adr/0001-opt-in-zero-knowledge-sync.md): the architecture decision behind protocol v1 - [ADR 0002: browser device, device relay and remote MCP](https://github.com/bestagentkits/ak-vault/blob/main/docs/adr/0002-browser-device-relay-and-remote-mcp.md): why the dashboard and remote MCP exist and the D7 transit boundary ## Optional - [Epic and roadmap, issue #1](https://github.com/bestagentkits/ak-vault/issues/1): scope, dependencies and acceptance criteria - [Security gate, issue #8](https://github.com/bestagentkits/ak-vault/issues/8): red team, performance, rollback and review by the owner (accepted 2026-10-16, not independent) - [AgentKit](https://agentkit.best): the parent product and `ak` CLI