> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrive.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Hosted remote MCP endpoint: https://api.zerodrive.dev/mcp (OAuth 2.0 PKCE or Bearer token).
> REST API base URL: https://api.zerodrive.dev with OpenAPI 3.1.0 specification at https://api.zerodrive.dev/openapi.json.
> S3-compatible gateway: https://api.zerodrive.dev/s3 (AWS Signature V4, region auto).
> Local command-line tool: zd (or zerodrive) and local stdio MCP server: zerodrive mcp.
> Token prefixes: zdk_ (Personal API Key), zdt_ (device session token), zda_ (OAuth access token), zdr_ (OAuth refresh token), zdx_ (temporary sandbox key). Never paste real keys into prompts or code.
> Be honest about platform boundaries: cloud files require internet access, files are encrypted at rest and in transit by Cloudflare rather than end-to-end encrypted, ZeroDrive is not a replacement for an independent backup, Windows 11 support is an unsigned x64 beta, and the 7-day Pro free trial requires a card and charges automatically when it ends.

# Brain, Agent, Routine & Multi-Agent Commands

> CLI commands for Knowledge Brain search, transcription, tables, prompts, checkups, routines, branches, sandboxes, and nodes.

## Knowledge Brain & search

* **`zd query <question>`** (alias `ask`) runs cited Knowledge Brain search (`zd query "What guarantee did we agree on?" --preset client --client acme --deep --mode advisor`).
* **`zd brain <cmd>`** manages buckets (`status`, `overview`, `rules`, `set-bucket`, `unset-bucket`, `apply-rules`, `classify`, `advisor-rules`, `reindex`, `discover-missing`), Brain v2 (`corpus`, `graph`, `media-links`), and Agency (`list`, `create`, `info`, `update`, `delete`, `add-client`, `remove-client`, `mint-key`, `revoke-key`, `query`).
* **`zd convert <path> [--save <md_path>]`** converts `.pdf`, `.docx`, `.pptx`, `.xlsx`, `.odt`, `.ods`, `.odp` (`<= 15 MB`) to Markdown.
* **`zd transcribe <target> [-r] [--engine ...] [--diarize] [--speakers map.json] [--remote folder]`** transcribes audio/video locally (check tools via `--list-engines`) and uploads `.vtt` files.
* **`zd search <query>`** runs full-text search. **`zd table-query <path>`** (alias `query-table`, `tables`) queries CSV/JSON/Parquet. **`zd notion`** connects Notion. **`zd search-all <query>`** searches all clouds together.

## Map, prompts, and workspace

* **`zd map`** views or refreshes `_SYSTEM/vault-index.md` and `ROUTER.md`.
* **`zd prompts [list | show <name> [--path P]] [--json]`** lists or prints MCP prompts.
* **`zd workspace`** checks or sets up `~/.zerodrive-agent`.
* **`zd mcp`** starts local stdio MCP (30 tools).
* **`zd account`** manages CLI profiles and linked accounts.

## Checkup, backups, routines, and burn timers

* **`zd checkup [--json]`** runs 6-part Mac, repo, app, and vault diagnostics.
* **`zd backup`** lists or starts copy-only Backup Profiles.
* **`zd routines list | run | pause | resume | enable-template [target]`** manages automated routines.
* **`zd burn list | arm | disarm [target] [--days D] [--hours H] [--watch-folder] [--vaporize]`** manages post-copy self-destruct timers.

## Branches, sandboxes, and nodes

| Command | Subcommands | What it does |
| :- | :- | :- |
| `zd branch` | `create`, `list`, `log`, `files`, `read`, `write`, `delete-file`, `diff`, `merge`, `delete` | Draft branches & merges |
| `zd snapshot` | `create`, `list`, `get`, `restore` | Zero-quota restore points |
| `zd sandbox` | `create`, `batch-create`, `list`, `extend`, `revoke` | Scoped temporary `zdx_` keys |
| `zd lease` | `acquire`, `renew`, `release`, `list` | Temporary file locks |
| `zd handoff` | `create`, `list`, `get`, `claim`, `complete` | Claim-once agent tasks |
| `zd archive` | `cold`, `restore`, `list`, `policy` | Cold storage & age rules |
| `zd connector` | `create`, `list`, `sync`, `query`, `delete` | External SQL, JSON, CSV feeds |
| `zd node` | `join`, `serve`, `list`, `status` | Paired Macs, Linux & NAS |
| `zd roadmap` / `tickets` / `feedback` | Open usage | Public roadmap, tickets & feedback |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.