# ZeroDrive > Cloud drive for Mac and Windows 11 (beta) with a built-in Knowledge Brain, 137+ hosted MCP tools, REST API, SDKs, and zd CLI. > ## 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. - [ZeroDrive Documentation](https://zerodrive.mintlify.app/index.md): One live cloud drive for Mac and Windows 11 (beta) that works like a normal folder and connects straight to your AI tools. - [Quickstart](https://zerodrive.mintlify.app/quickstart.md): Create your ZeroDrive account, install the Mac or Windows 11 app, add files, and connect your first AI tool in under five minutes. - [What is ZeroDrive?](https://zerodrive.mintlify.app/getting-started/what-is-zerodrive.md): One live cloud drive that works like a normal folder on Mac and Windows while giving every AI app direct access. - [Common Use Cases](https://zerodrive.mintlify.app/getting-started/use-cases.md): Five practical ways founders, creators, agencies, and agent builders use ZeroDrive. - [Key Concepts](https://zerodrive.mintlify.app/getting-started/key-concepts.md): Plain-English definitions of ZeroDrive terms, OAuth valet keys, and how MCP connects your AI apps. - [Supported Files](https://zerodrive.mintlify.app/getting-started/supported-files.md): What files ZeroDrive can store, which ones AI apps can edit directly, and what Knowledge Brain indexes automatically. - [Recommended Folder Setup & Migration](https://zerodrive.mintlify.app/guides/workspace-setup.md): Set up a clean AI-ready folder structure in 5 minutes, or plan a safe top-down migration from another drive without breaking paths or losing files. - [Upload, Move & Organize Files](https://zerodrive.mintlify.app/guides/upload-and-move.md): Add files from Finder, File Explorer, Web App, or Terminal, move cold folders off your SSD safely, and understand local cache. - [Find Anything Fast](https://zerodrive.mintlify.app/guides/find-files.md): List folders, match filenames, search text, ask Knowledge Brain by meaning, and read huge files in slices across Studio, MCP, CLI, and API. - [Sharing & Move-Proof Links](https://zerodrive.mintlify.app/guides/sharing.md): Share files and folders cleanly from app.zerodrive.dev with links that keep working even when you reorganize folders. - [Drives & Extra Storage](https://zerodrive.mintlify.app/guides/drives.md): Split your storage into separate drives for projects or clients, add Extra Drives anytime, and restore deleted drives within 30 days. - [macOS App & Studio](https://zerodrive.mintlify.app/desktop/macos.md): Install ZeroDrive on Apple Silicon or Intel Macs (macOS 14+), mount in Finder, use shortcuts, and manage updates or uninstall. - [Windows 11 App (Beta)](https://zerodrive.mintlify.app/desktop/windows.md): Install ZeroDrive Studio on 64-bit Windows 11, open files in File Explorer, handle SmartScreen, and check Mac parity. - [Studio Workspace, Search & Transfers](https://zerodrive.mintlify.app/desktop/studio-workspace.md): Tour all 11 screens in ZeroDrive Studio, drag and drop files safely, resume paused transfers, and search across clouds. - [Ask ZeroDrive & Agent Workspace](https://zerodrive.mintlify.app/desktop/ask-zerodrive.md): Run your own Claude Code or OpenAI Codex inside ZeroDrive Studio with Plan mode, cleanup previews, Skills editor, and clear safety levels. - [Space Lens & Free Up Disk Space](https://zerodrive.mintlify.app/desktop/space-lens.md): See which folders eat your SSD with Bubble Space Lens, move cold folders cleanly to ZeroDrive, and manage your local cache limits. - [Smart Checkup, Routines & Backups](https://zerodrive.mintlify.app/desktop/routines-and-backups.md): Run 6-part Smart Checkup, clean open app caches with Smart Care, automate Watch-Folders and Self-Destruct timers, and run copy-only backups. - [Duplicates, Move History & Trash](https://zerodrive.mintlify.app/desktop/duplicates-and-trash.md): Find exact duplicate files safely, undo moves, spot broken path links, and restore deleted files for 30 days. - [Keyboard Shortcuts & Quick Actions](https://zerodrive.mintlify.app/desktop/keyboard-shortcuts.md): Quick keyboard shortcuts in ZeroDrive Studio, menu bar and tray drop targets, and Finder or File Explorer actions. - [Web App Guide](https://zerodrive.mintlify.app/web-app/overview.md): Browse files, share move-proof links, use Knowledge Brain, create API keys, and manage billing at app.zerodrive.dev. - [Knowledge Brain Overview](https://zerodrive.mintlify.app/knowledge-brain/overview.md): Ask questions across your documents, PDFs, Office files, call transcripts, and AI chats and get cited answers. - [Categories, Frontmatter & Advisor Rules](https://zerodrive.mintlify.app/knowledge-brain/buckets-and-rules.md): Keep strategy, swipe files, client calls, code, and private journals clearly separated across Knowledge Brain's 10 built-in categories. - [Custom Corpora, Knowledge Graph & Conversations](https://zerodrive.mintlify.app/knowledge-brain/corpora-and-graph.md): Build up to 50 focused folder collections (corpora) with unlimited paid smart search, query spreadsheets, search AI chats, and explore Knowledge Graph. - [Local OCR, Transcription & Media Pairing](https://zerodrive.mintlify.app/knowledge-brain/local-ocr-and-transcription.md): Turn scanned PDFs, screenshots, and call recordings into searchable text locally on Mac for $0, then link recordings to their transcripts. - [Agency White-Label Brains](https://zerodrive.mintlify.app/knowledge-brain/white-label-brains.md): Give every client a branded MCP Knowledge Brain under your domain with shared playbooks and private client workspaces. - [Client Quickstart (Invited Clients)](https://zerodrive.mintlify.app/knowledge-brain/client-quickstart.md): Connect your Agency White-Label Brain in Claude or Cursor in 60 seconds using the Client Setup Kit your agency sent you. - [Multi-Account Mounting & Connected Nodes](https://zerodrive.mintlify.app/desktop/multi-account-and-nodes.md): Mount multiple ZeroDrive accounts side by side, switch accounts in MCP, and pair remote Macs or Linux servers. - [Connected Clouds & Cloud Explorer](https://zerodrive.mintlify.app/integrations/connected-clouds.md): Link Google Drive, Dropbox, Notion, and OneDrive in 1 click, search across everything, and copy files in or out. - [External Data Connectors](https://zerodrive.mintlify.app/integrations/external-connectors.md): Connect read-only PostgREST, HTTP SQL, JSON, and CSV feeds directly inside ZeroDrive folders. - [Make, n8n, Zapier & Custom GPTs](https://zerodrive.mintlify.app/integrations/automation-platforms.md): Connect Make, n8n, Zapier, Custom GPT Actions, and scripts using OAuth 2.0 apps or Personal API Keys. - [S3-Compatible Storage Gateway](https://zerodrive.mintlify.app/integrations/s3-gateway.md): Connect AWS CLI, Cyberduck, Mountain Duck, or custom S3 tools to your ZeroDrive account. - [Security, Tenant Isolation & Privacy](https://zerodrive.mintlify.app/security/architecture-and-privacy.md): How ZeroDrive keeps customer accounts separate, secures tokens, protects deletes, and explains encryption honestly. - [Plans, Pricing & Billing Policy](https://zerodrive.mintlify.app/billing/plans-and-pricing.md): Pricing for Pro, Pro Max, Extra Drives, and Agency plans, plus 7-day trial, 30-day refund, and cancel rules. - [FAQ](https://zerodrive.mintlify.app/support/faq.md): Quick answers on how ZeroDrive stores files, AI safety, Mac and Windows support, and account boundaries. - [Troubleshooting](https://zerodrive.mintlify.app/support/troubleshooting.md): Fix common Mac Finder mounts, Windows beta install prompts, paused transfers, storage quota stops, and login errors. - [MCP Overview](https://zerodrive.mintlify.app/mcp/overview.md): Connect AI apps to 137+ hosted MCP tools at https://api.zerodrive.dev/mcp, 30 local CLI tools, 25 desktop tools, or White-Label Brains. - [Connect Your AI Client](https://zerodrive.mintlify.app/mcp/client-setup.md): Setup steps for Claude.ai, Claude Code, Claude Desktop, OpenAI Codex, Cursor, VS Code, ChatGPT, and Muse. - [10 First Prompts to Try](https://zerodrive.mintlify.app/mcp/first-prompts.md): Copy-paste prompts to organize your ZeroDrive folders, set up your workspace, find duplicates, query calls, and preview cleanups. - [Choose AI Permissions](https://zerodrive.mintlify.app/mcp/permissions.md): Control what Claude, ChatGPT, Codex, and Cursor can read, write, or delete in ZeroDrive and revoke access anytime. - [Ready-Made Prompts & MCP Resources](https://zerodrive.mintlify.app/mcp/prompts-and-resources.md): Built-in MCP prompts, saved _SKILLS prompts (skill-), and vault resources for Claude, Codex, and zd. - [Fix AI Connections](https://zerodrive.mintlify.app/mcp/troubleshooting.md): Fix common MCP login, permission, scope, and client setup issues across Claude, Codex, Cursor, and scripts. - [Branches, Snapshots, Versions & Primitives](https://zerodrive.mintlify.app/workflows/branches-and-snapshots.md): Test AI edits on draft branches, save zero-quota restore points, check 30 or 90 day File Version History, and edit structured data safely. - [Sandboxes, Leases, Handoffs & Cold Archive](https://zerodrive.mintlify.app/workflows/sandboxes-and-coordination.md): Mint temporary restricted zdx_ keys, lock file paths with leases, pass task handoffs, and archive older folders. - [Cloud Vault Map & Agent Skills](https://zerodrive.mintlify.app/workflows/vault-map-and-skills.md): Keep ROUTER.md and _SYSTEM/vault-index.md up to date and share AI skills from _SKILLS/. - [Files, Folders, Moves & Streaming Tools](https://zerodrive.mintlify.app/mcp/tools-files-and-moves.md): MCP tools for browsing, reading, editing, large uploads, safe moves, Trash, duplicates, and Drive Map. - [Knowledge Brain, Corpora, Graph & White-Label Tools](https://zerodrive.mintlify.app/mcp/tools-knowledge-brain.md): MCP tools for cited vault search, categories, custom collections (corpora), CSV queries, AI chat search, Knowledge Graph, media links, and White-Label Brains. - [Versions, Drives, Branches & Multi-Agent Tools](https://zerodrive.mintlify.app/mcp/tools-versions-branches-agents.md): MCP tools for File Version History, extra drives, draft branches, restore points, structured edits, sandboxes, locks, handoffs, and archive. - [Connected Clouds & Desktop Bridge Tools](https://zerodrive.mintlify.app/mcp/tools-clouds-and-desktop.md): MCP tools for Google Drive, Dropbox, Notion, and OneDrive (12 tools) plus desktop Studio tools (25 zd_* tools). - [REST API Overview](https://zerodrive.mintlify.app/api-reference/introduction.md): OpenAPI 3.1 REST API on https://api.zerodrive.dev with safe conflict checks, retry keys, live streams, and big uploads. - [Authentication & Credentials](https://zerodrive.mintlify.app/api-reference/authentication.md): Authenticate with Personal API Keys (zdk_), Device Tokens (zdt_), OAuth 2.0 (zda_/zdr_), Sandbox Keys (zdx_), or S3 keys. - [Error Codes, Refusals & Limits](https://zerodrive.mintlify.app/api-reference/errors-and-limits.md): HTTP status codes, refusal errors, quota limits, and batch size caps across the ZeroDrive API. - [App Storage & Architecture](https://zerodrive.mintlify.app/api-reference/app-storage-and-architecture.md): Using ZeroDrive as storage for apps and webapps: what works today, how it compares to Supabase and CDNs, video streaming, limits, and roadmap. - [Get Visual Folder Tree](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-visual-folder-tree.md): Returns a visual directory tree hierarchy of the vault or subfolder. - [List Files and Directories](https://zerodrive.mintlify.app/api-reference/files-&-folders/list-files-and-directories.md): List contents of any folder with file sizes, modified timestamps, MIME types, and optional cursor-based pagination. - [Delete File](https://zerodrive.mintlify.app/api-reference/files-&-folders/delete-file.md): Delete a file from the vault. - [Get Item Metadata (Stat)](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-item-metadata-stat.md): Retrieve metadata (size, modification date, MIME type, ETag, and directory status) for a single item in sub-15ms. - [Read File with Slicing](https://zerodrive.mintlify.app/api-reference/files-&-folders/read-file-with-slicing.md): Read text contents with optional line range slicing (head/tail/lines) or retrieve binary metadata and download URL. - [Write or Append File](https://zerodrive.mintlify.app/api-reference/files-&-folders/write-or-append-file.md): Create, overwrite, or append to any file in the vault via text, base64 binary, or remote source_url. - [Surgical Text Replacement](https://zerodrive.mintlify.app/api-reference/files-&-folders/surgical-text-replacement.md): Replace exact target string with replacement text in a file without re-uploading the entire document. - [Copy File](https://zerodrive.mintlify.app/api-reference/files-&-folders/copy-file.md): Duplicate a file to a new destination in the vault. - [Delete File via POST](https://zerodrive.mintlify.app/api-reference/files-&-folders/delete-file-via-post.md): Delete a file from the vault. - [Batch File Operations](https://zerodrive.mintlify.app/api-reference/files-&-folders/batch-file-operations.md): Execute up to 50 move, copy, and delete operations in one request. The operations run one after the other (not atomically) and the answer has one result per operation, in order. A move row carries shares_followed (and replaced true when a file was replaced); a folder of more than 200 files is an err… - [Create Pre-Signed Upload URLs](https://zerodrive.mintlify.app/api-reference/files-&-folders/create-pre-signed-upload-urls.md): Generate 1-hour pre-signed direct HTTP PUT upload URLs for streaming large local files (screenshots, PDFs, MP4/MOV videos, ZIPs up to 5GB) with zero LLM token overhead. - [Get Pre-Signed Download URL](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-pre-signed-download-url.md): Get a 24-hour HTTPS download URL with HTTP Range (206) support for fast streaming of videos, PDFs, and archives. - [Get Folder Size & Item Count](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-folder-size-&-item-count.md): Calculate exact byte size, GB formatted total, and file count for any folder. - [Read Byte Range](https://zerodrive.mintlify.app/api-reference/files-&-folders/read-byte-range.md): Read up to 64 KiB of binary bytes at an offset as base64 along with file revision and ETag. - [Write Byte Range](https://zerodrive.mintlify.app/api-reference/files-&-folders/write-byte-range.md): Patch up to 64 KiB of base64 bytes at an offset with optional optimistic concurrency check (`expected_revision`). - [Create Byte-Range Patch URL](https://zerodrive.mintlify.app/api-reference/files-&-folders/create-byte-range-patch-url.md): Generate a signed headerless HTTP PATCH URL supporting offset, append, and truncate up to 64 MiB. - [Convert Document to Markdown](https://zerodrive.mintlify.app/api-reference/files-&-folders/convert-document-to-markdown.md): Extract clean Markdown from `.pdf`, `.docx`, `.pptx`, `.xlsx`, `.odt`, `.ods`, or `.odp` files up to 15 MB. - [Prepare Verified Upload](https://zerodrive.mintlify.app/api-reference/files-&-folders/prepare-verified-upload.md): Prepare a staged upload session returning `upload_id`, signed `upload_url`, and expiration. - [Complete Verified Upload](https://zerodrive.mintlify.app/api-reference/files-&-folders/complete-verified-upload.md): Finalize and verify a prepared upload session with size, optional SHA-256 checksum, and revision checks. - [Get Upload Session](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-upload-session.md): Inspect a prepared or completed staged upload session. - [List Immediate Subfolders](https://zerodrive.mintlify.app/api-reference/files-&-folders/list-immediate-subfolders.md): List immediate subfolders under a prefix in a drive (paginated). - [Create Folder](https://zerodrive.mintlify.app/api-reference/files-&-folders/create-folder.md): Create a folder at the given vault path. - [Ensure Folder Paths](https://zerodrive.mintlify.app/api-reference/files-&-folders/ensure-folder-paths.md): Create up to 500 folders cleanly, skipping any that already exist. - [Rename Folder](https://zerodrive.mintlify.app/api-reference/files-&-folders/rename-folder.md): Rename a folder from `from_path` to `to_path`. - [Move Folder](https://zerodrive.mintlify.app/api-reference/files-&-folders/move-folder.md): Move a folder to a new destination path. - [Delete Folder (Move to Trash)](https://zerodrive.mintlify.app/api-reference/files-&-folders/delete-folder-move-to-trash.md): Move a folder to 30-day Trash asynchronously and return an operation ID. - [Continue Folder Deletion](https://zerodrive.mintlify.app/api-reference/files-&-folders/continue-folder-deletion.md): Continue a multi-step folder deletion operation by `operation_id`. - [Get Cloud Vault Map](https://zerodrive.mintlify.app/api-reference/files-&-folders/get-cloud-vault-map.md): Return a compact structural map of folders, file counts, byte totals, and timestamps. - [Refresh Cloud Vault Map](https://zerodrive.mintlify.app/api-reference/files-&-folders/refresh-cloud-vault-map.md): Rebuild `_SYSTEM/vault-index.md` and `_SYSTEM/vault-index.json` and sync the fenced section in `ROUTER.md`. - [Move or Rename File or Folder](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/move-or-rename-file-or-folder.md): Move or rename a file or a folder within the vault. A shared item keeps its share link, its setting and its people at the new path. A file moved onto an existing file replaces it and the answer says replaced. A folder is never moved onto something that exists (409). A folder moves in steps of up to… - [What Moved](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/what-moved.md): Read the move history. Without path: the account's most recent moves, newest first. With path: the chain of the item that is at that path now, oldest first, so a caller can see where an item has been; a path the item has moved away from, and the path of an item that was deleted, answer an empty chai… - [Undo the Last Move of an Item](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/undo-the-last-move-of-an-item.md): Move an item back to where its last move took it from. Name the move with move_id (from the move answer or from the history) or name the item by the path it is at now. The item's share link follows it back. It never overwrites or merges into what stands at the old path: when the old path is taken th… - [Find Text Files That Still Name an Old Path](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/find-text-files-that-still-name-an-old-path.md): On request only: list the lines of the vault's own small text files that still name an old path, for example after a move, starting with ROUTER.md at the vault root. A move never runs this. It only reads and never changes a file; changing a file that names the old path is an ordinary write the perso… - [Scan for Duplicate Files (one step)](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/scan-for-duplicate-files-one-step.md): Takes one step of a scan for files with exactly the same content, in the whole vault or in one folder. It only reads: it never changes, moves or deletes a file. Repeat the call with the scan_id of the answer until it says done is true, then read the groups with GET /v1/duplicates. To remove duplicat… - [Remove the Extra Copies of Duplicate Files](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/remove-the-extra-copies-of-duplicate-files.md): Keeps one file of each group and removes the others, following the account's web delete setting: Trash by default (the space comes back when Trash is emptied), or a real delete. The request must carry the person's confirm: true when the setting is Trash, the word DELETE when it is Delete right away;… - [List Duplicate Files](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/list-duplicate-files.md): Groups of files with exactly the same content from a finished scan, the most wasted space first, with the counts, one plain message that says which files were not compared, delete_mode (trash or delete_now: what a delete does for this account), and for every file shared and suggested_keep (exactly o… - [List Trash & Deleted Files](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/list-trash-&-deleted-files.md): List items recoverable from 30-day Trash and deleted file snapshots. - [Restore Deleted File](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/restore-deleted-file.md): Restore a deleted item from 30-day Trash (`trs_...`) or deleted snapshot (`ver_...`). - [List Recovery Copies](https://zerodrive.mintlify.app/api-reference/moves-trash-&-duplicates/list-recovery-copies.md): List conflict copies, orphaned copies, and pre-delete recovery snapshots. - [Search Filenames & Extensions](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/search-filenames-&-extensions.md): Fast server-side wildcard search across all files in vault. - [Grep Inside Text Files](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/grep-inside-text-files.md): Search text contents across markdown, code, and text files, returning line numbers and snippets. - [Glob Match Files](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/glob-match-files.md): Match file paths using glob patterns (`**`, `*`, `?`, `{a,b}`). - [Cited Knowledge Brain Query](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/cited-knowledge-brain-query.md): Run cited full-text/bucket search across indexed PDFs, docs, transcripts, and notes with optional question presets and Advisor mode. - [Ranked Full-Text Search](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/ranked-full-text-search.md): Search indexed text across main or a drive branch with phrase, heading, and extension filters. - [Query Drive CSV/JSONL/JSON Tables](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/query-drive-csvjsonljson-tables.md): Run structured `where`, `group_by`, aggregation, and sort queries over CSV, JSONL, or JSON files. - [Get Search & Embedding Status](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-search-&-embedding-status.md): Return Knowledge Brain indexing progress, embedded passage counts, queue state, and any background indexing errors. - [Advance or Reset Search Index](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/advance-or-reset-search-index.md): Run up to 12 indexing steps or reset the per-account search index cursor. - [Get Knowledge Brain Overview](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-knowledge-brain-overview.md): Check your 10 built-in categories, client IDs, top folders, and plan features. - [Get Bucket Rules](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-bucket-rules.md): Read `_SYSTEM/brain-buckets.json` folder-to-bucket and `client_id` override rules. - [Save Bucket Rules](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/save-bucket-rules.md): Save folder-to-bucket and `client_id` override rules and apply them immediately in the live index. - [AI Folder Classification](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/ai-folder-classification.md): Suggest categories and `client_id` rules using ZeroDrive AI; pass `apply: true` to save. - [Get Advisor Rules](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-advisor-rules.md): Read standing house rules stored in `_SYSTEM/advisor-rules.md`. - [Save Advisor Rules](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/save-advisor-rules.md): Write standing house rules to `_SYSTEM/advisor-rules.md` (automatically loaded in Advisor mode). - [List Knowledge Brain Corpora](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/list-knowledge-brain-corpora.md): List custom Knowledge Brain corpora, per-corpus file/passage/embedding counts, and unlimited/free embedding cap state. - [Create Knowledge Brain Corpus](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/create-knowledge-brain-corpus.md): Create a custom scoped Knowledge Brain corpus (max 50 per account) or instantiate one from a starter template. - [Get Corpus Details](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-corpus-details.md): Fetch a single Knowledge Brain corpus configuration and live stats. - [Update Corpus](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/update-corpus.md): Update a custom corpus definition and sync changes live. - [Delete Corpus](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/delete-corpus.md): Delete a custom Knowledge Brain corpus and its corpus-scoped embeddings. - [Query Corpus (Hybrid Keyword + Semantic)](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/query-corpus-hybrid-keyword-+-semantic.md): Run cited hybrid keyword and semantic search with relevance ranking strictly scoped to a single corpus. - [Embed Corpus Passages](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/embed-corpus-passages.md): Advance or reset semantic embeddings for a corpus. - [Get Corpus Knowledge Graph](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-corpus-knowledge-graph.md): Retrieve knowledge graph nodes, edges, and topic clusters scoped to a corpus. - [Query Corpus CSV/TSV Tables](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/query-corpus-csvtsv-tables.md): Filter, sort, and aggregate indexed CSV/TSV files inside a corpus. - [Scan AI Conversations in Corpus](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/scan-ai-conversations-in-corpus.md): Search and summarize AI conversation logs (`.jsonl`, `.md`, `.json`) inside a corpus. - [Get Vault Knowledge Graph](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-vault-knowledge-graph.md): Retrieve knowledge graph nodes, edges, and clusters across the vault. - [List Media–Transcript Pairs](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/list-media–transcript-pairs.md): List paired audio/video files and transcripts plus unlinked media count. - [Link Media & Transcript](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/link-media-&-transcript.md): Pair a vault audio/video file with its transcript file (`.vtt`, `.srt`, `.md`). - [Unlink Media & Transcript](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/unlink-media-&-transcript.md): Remove a media–transcript pairing. - [Suggest Media–Transcript Links](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/suggest-media–transcript-links.md): Suggest probable pairings between media files and existing transcripts. - [List Agency White-Label Brains](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/list-agency-white-label-brains.md): List all white-label Knowledge Brains owned by your Agency account. - [Create Agency White-Label Brain](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/create-agency-white-label-brain.md): Create a branded MCP Knowledge Brain with shared Master Library folders and isolated client workspaces (Agency plan). - [Get White-Label Brain](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/get-white-label-brain.md): Inspect a single white-label brain and its client list. - [Delete White-Label Brain](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/delete-white-label-brain.md): Delete a white-label brain configuration. - [Update White-Label Brain](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/update-white-label-brain.md): Update shared folders, advisor rules, mode, or custom domains on a white-label brain. - [Add Client to White-Label Brain](https://zerodrive.mintlify.app/api-reference/search-&-knowledge-brain/add-client-to-white-label-brain.md): Provision an isolated client workspace and mint a one-time access key + setup kit. - [Vault Doctor Health Check](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/vault-doctor-health-check.md): Inspect root folders, installed skills, connected devices, and service capabilities. - [Health Check](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/health-check.md): Public health check for `api.zerodrive.dev`. - [Start PKCE Sign-In Handoff](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/start-pkce-sign-in-handoff.md): Begin a PKCE browser sign-in flow for desktop apps or `zd login`. - [Exchange Sign-In Handoff Code](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/exchange-sign-in-handoff-code.md): Exchange a single-use handoff code and PKCE verifier for a `zdt_` device token. - [Get Account Usage & Plan State](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-account-usage-&-plan-state.md): Return entitlement state (`active`, `trialing`, `past_due`, `read_only`, `none`), plan name, used bytes, and quota bytes (device token required). - [Get S3 Storage Credentials](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-s3-storage-credentials.md): Return the caller's own S3 gateway endpoint, bucket, tenant prefix, and S3 credentials (device token + active plan required). - [Rotate S3 Storage Credentials](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/rotate-s3-storage-credentials.md): Revoke the active S3 key pair and issue a new active pair (device token required). - [Revoke Current Device Token](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/revoke-current-device-token.md): Revoke the caller's own device token (used on sign-out). - [List Accessible Linked Accounts](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/list-accessible-linked-accounts.md): List the primary account and any linked secondary ZeroDrive accounts accessible to this session. - [Get Plan Capabilities](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-plan-capabilities.md): Return normalized plan tier, quotas, retention window, and enabled feature flags. - [Get Public Pricing Tiers](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-public-pricing-tiers.md): Public catalog of currently offered plans and extra drives with prices in cents. - [Check Latest Release](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/check-latest-release.md): Return the latest ZeroDrive release metadata, platform artifacts, and public signing key. - [Get Release Changelog](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-release-changelog.md): Return structured release history and markdown release notes. - [Get Public Download Checksums](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-public-download-checksums.md): Return live public installer filenames, byte sizes, and verification checksums. - [Get Public Product Roadmap](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/get-public-product-roadmap.md): List public roadmap items and shipped milestones with aggregate vote counts. - [List Support & Feedback Tickets](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/list-support-&-feedback-tickets.md): List feedback and support tickets submitted by the authenticated account. - [Submit Feedback or Bug Report](https://zerodrive.mintlify.app/api-reference/auth-account-billing-&-releases/submit-feedback-or-bug-report.md): Submit structured feedback or a bug report (secrets are auto-redacted). - [List or Read Ready-Made Prompts](https://zerodrive.mintlify.app/api-reference/skills-prompts-&-mcp/list-or-read-ready-made-prompts.md): Without a name, lists the ready-made prompts (the same list the MCP prompts/list method answers, saved skills included). With a name, returns that prompt's text, the same text prompts/get answers. Needs a token and a plan; a read-only account can read it. - [List or Inspect Skills](https://zerodrive.mintlify.app/api-reference/skills-prompts-&-mcp/list-or-inspect-skills.md): List all agent skills in _SKILLS/ or inspect a specific skill's SKILL.md. - [Package and Save Skill](https://zerodrive.mintlify.app/api-reference/skills-prompts-&-mcp/package-and-save-skill.md): Package a reusable Agent Skill into _SKILLS//SKILL.md enforcing naming rules and buzzword filters. - [ZeroDrive MCP JSON-RPC 2.0 Endpoint](https://zerodrive.mintlify.app/api-reference/skills-prompts-&-mcp/zerodrive-mcp-json-rpc-20-endpoint.md) - [List Connected Devices](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/list-connected-devices.md): List all registered Mac computers, servers, and VMs connected to the vault. - [Record Device Heartbeat](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/record-device-heartbeat.md): Record disk space, mount state, and heartbeat from a connected device. - [List Active Symlinks](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/list-active-symlinks.md): List folder shortcuts created across user devices. - [Register Local Symlink](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/register-local-symlink.md): Register a local symlink on a device mapping to a vault folder. - [Server-Sent Events (SSE) Push Notifications](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/server-sent-events-sse-push-notifications.md): Streams live vault file mutations (write, edit, move, copy, delete) in real-time over a persistent HTTP SSE connection. Supports ping heartbeats and automatic reconnection. - [Real-Time Activity SSE Stream (Alias)](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/real-time-activity-sse-stream-alias.md): Streams real-time activity and file change events over SSE. - [Get Activity Ledger](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/get-activity-ledger.md): Recent file migrations, sync events, and agent operations across devices. - [Log Custom Activity](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/log-custom-activity.md): Record a custom activity entry in the vault ledger. - [List Connected Nodes](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/list-connected-nodes.md): List paired remote Macs, Linux servers, and NAS nodes for the account. - [Create Node Pairing Code](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/create-node-pairing-code.md): Generate a one-time 10-minute `ZD-XXXX-XXXX` pairing code for a remote machine. - [Redeem Node Pairing Code](https://zerodrive.mintlify.app/api-reference/devices-nodes-&-events/redeem-node-pairing-code.md): Exchange a one-time `ZD-XXXX-XXXX` pairing code on a remote machine for `node_id` and `node_token`. - [List File Versions](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/list-file-versions.md): List historical snapshots and head revision number for a file. - [Read File Version](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/read-file-version.md): Read content and metadata for a specific `ver_...` version ID or revision number. - [Diff File Versions](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/diff-file-versions.md): Compute a unified line diff between two revisions (or revision vs `current`). - [Restore File Version](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/restore-file-version.md): Restore a file to a previous revision while auto-snapshotting the live file first. - [List Workspaces](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/list-workspaces.md): List workspaces available to the authenticated account. - [List Drives](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/list-drives.md): List all storage drives visible to the authenticated account. - [Create Partitioned Drive](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/create-partitioned-drive.md): Create an isolated secondary drive inside your plan's quota. - [Get Drive](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/get-drive.md): Fetch metadata for a specific drive ID. - [Get Drive Usage](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/get-drive-usage.md): Get live, trash, version snapshot, and quota byte usage for a drive. - [List Deleted Drives](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/list-deleted-drives.md): List soft-deleted drives still inside the 30-day recovery window. - [Restore Deleted Drive](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/restore-deleted-drive.md): Restore a soft-deleted drive within its 30-day recovery window. - [Get Async Operation](https://zerodrive.mintlify.app/api-reference/versions-drives-&-workspaces/get-async-operation.md): Poll status and progress of an asynchronous operation such as multi-step folder deletion. - [List Drive Branches](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/list-drive-branches.md): List copy-on-write drive branches for the account. - [Create Drive Branch](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/create-drive-branch.md): Create an isolated copy-on-write drive branch from `main` or another branch. - [List Files in Branch](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/list-files-in-branch.md): List live files inside a drive branch overlaid on top of `main`. - [Diff Branch vs Main](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/diff-branch-vs-main.md): Compare branch modifications against live `main` and report auto-mergeability. - [Merge Drive Branch](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/merge-drive-branch.md): Merge an open drive branch into `main` with 3-way semantic/line auto-merging and automatic File Version History snapshots. - [Delete Branch](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/delete-branch.md): Delete a drive branch and purge its overlay blobs. - [List Drive Snapshots](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/list-drive-snapshots.md): List immutable, content-addressed point-in-time snapshots. - [Create Drive Snapshot](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/create-drive-snapshot.md): Capture an immutable point-in-time snapshot without consuming storage quota. - [Restore Drive Snapshot](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/restore-drive-snapshot.md): Restore all files or selected paths from a snapshot (captures a safety snapshot first by default). - [Atomic Structured File Patch](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/atomic-structured-file-patch.md): Patch JSON, JSONL, CSV, Markdown, or YAML files atomically with optional optimistic concurrency. - [Append JSONL Records](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/append-jsonl-records.md): Atomically validate and append JSON records to a `.jsonl` file with optional unique-key deduplication. - [Query Structured File](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/query-structured-file.md): Query rows, JSON pointers, Markdown sections, or YAML keys inside a structured file. - [3-Way Semantic File Merge](https://zerodrive.mintlify.app/api-reference/branches-snapshots-&-primitives/3-way-semantic-file-merge.md): Merge structured object data or perform 3-way semantic merge (CSV/JSON/JSONL/Markdown/YAML). - [List Sandbox Tokens](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/list-sandbox-tokens.md): List active or expired sandbox keys (`zdx_...`) without showing secret strings. - [Create Sandbox Token](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/create-sandbox-token.md): Mint a short-lived bearer token (`zdx_...`) locked to one drive and optional root folder. - [Batch Create Sandbox Tokens](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/batch-create-sandbox-tokens.md): Mint up to 100 short-lived scoped sandbox tokens (`zdx_...`) in one call for worker swarms. - [Extend Sandbox TTL](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/extend-sandbox-ttl.md): Extend the expiration TTL of an active sandbox token. - [Revoke Sandbox Token](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/revoke-sandbox-token.md): Immediately revoke a sandbox token so it can no longer be used. - [List Active Path Leases](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/list-active-path-leases.md): List active advisory TTL coordination leases for the account. - [Acquire Path Lease](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/acquire-path-lease.md): Acquire (or re-enter as same holder) an advisory TTL-expiring coordination lease on a file path. - [Renew Path Lease](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/renew-path-lease.md): Extend the TTL of an active advisory lease held by the caller. - [Release Path Lease](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/release-path-lease.md): Release an active advisory path lease. - [List Agent Handoffs](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/list-agent-handoffs.md): List agent task handoff packets filtered by status, target agent, drive, or branch. - [Create Agent Handoff](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/create-agent-handoff.md): Create a structured, claim-once task handoff packet for another agent. - [Claim Agent Handoff](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/claim-agent-handoff.md): Atomically claim an open handoff so concurrent workers cannot double-claim. - [Complete Agent Handoff](https://zerodrive.mintlify.app/api-reference/sandboxes-&-coordination/complete-agent-handoff.md): Mark an open or claimed handoff completed with an optional result summary. - [List Supported Cloud Providers](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/list-supported-cloud-providers.md): List supported 1-click OAuth cloud providers (Google Drive, Dropbox, Notion, OneDrive) and their configuration readiness. - [List Connected Cloud Accounts](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/list-connected-cloud-accounts.md): List connected external cloud accounts for the signed-in ZeroDrive account. - [Start Cloud Provider OAuth](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/start-cloud-provider-oauth.md): Start a 1-click OAuth connection flow for `google_drive`, `dropbox`, `notion`, or `onedrive`. - [Disconnect Cloud Account](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/disconnect-cloud-account.md): Remove a connected external cloud account. - [List External Data Connectors](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/list-external-data-connectors.md): List registered read-only PostgREST, HTTP SQL, JSON, or CSV data connectors with secrets redacted. - [Create Data Connector](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/create-data-connector.md): Register a read-only external data connector mounted inside a drive folder. - [Sync Data Connector](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/sync-data-connector.md): Sync an external data connector into CSV, JSON schema, and README files under its mount folder. - [Query Data Connector](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/query-data-connector.md): Run a bounded read-only live query against a registered data connector. - [Move to Cold Archive](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/move-to-cold-archive.md): Transition a file or folder prefix to InfrequentAccess cold archive storage. - [Restore from Cold Archive](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/restore-from-cold-archive.md): Restore cold-archived files back to Standard storage. - [List Archive Policies](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/list-archive-policies.md): List automatic age-based cold-archive lifecycle policies. - [Set Archive Policy](https://zerodrive.mintlify.app/api-reference/connected-clouds-connectors-&-archive/set-archive-policy.md): Create or update an automatic age-based cold-archive policy for a prefix. - [Get Started with the zd CLI](https://zerodrive.mintlify.app/sdks-and-cli/cli-overview.md): Install the zd command-line tool, sign in from Terminal, and upload, find, and read files fast. - [File, Transfer & Drive Commands](https://zerodrive.mintlify.app/sdks-and-cli/cli-files-and-transfers.md): CLI commands for ls, tree, size, cat, find, grep, cp, mv --symlink, share, duplicates, versions, drives, refresh, status, and doctor. - [Brain, Agent, Routine & Multi-Agent Commands](https://zerodrive.mintlify.app/sdks-and-cli/cli-brain-and-agents.md): CLI commands for Knowledge Brain search, transcription, tables, prompts, checkups, routines, branches, sandboxes, and nodes. - [Headless Linux & Docker Mount](https://zerodrive.mintlify.app/sdks-and-cli/headless-linux.md): Mount ZeroDrive at /zerodrive on Ubuntu, Debian, Fedora, Arch, Alpine, Docker, or Codespaces with one command. - [Self-Hosted & Connected Nodes](https://zerodrive.mintlify.app/sdks-and-cli/connected-nodes.md): Pair Macs, Linux servers, or NAS boxes with ZD-XXXX-XXXX codes, run zd node serve, or connect over Tailscale HTTPS. - [TypeScript / ESM SDK](https://zerodrive.mintlify.app/sdks-and-cli/typescript-sdk.md): Zero-dependency TypeScript client (@7xsystems/zerodrive-sdk) for Node.js 18+, serverless workers, and browsers using fetch. - [Python SDK](https://zerodrive.mintlify.app/sdks-and-cli/python-sdk.md): Zero-dependency Python 3.9+ client (zerodrive) built on the Python standard library. - [Release Notes](https://zerodrive.mintlify.app/changelog/releases.md): ZeroDrive changelog across macOS, Windows 11 (beta), Knowledge Brain, API, and Hosted MCP. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.