> ## 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.

# Connect Your AI Client

> Setup steps for Claude.ai, Claude Code, Claude Desktop, OpenAI Codex, Cursor, VS Code, ChatGPT, and Muse.

Connect any MCP app to **`https://api.zerodrive.dev/mcp`**. OAuth 2.0 handles sign-in with no keys pasted into config files. Name your server **`zerodrive`** so slash prompts match our docs.

***

## Setup by app

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http --scope user zerodrive https://api.zerodrive.dev/mcp
> claude mcp login zerodrive
> ```
>
> Sign in and click **Approve**. Run built-in prompts with `/mcp__zerodrive__` (such as `/mcp__zerodrive__check-vault`).

> [tab] Codex CLI
>
> ```bash theme={null}
> codex mcp add zerodrive --url https://api.zerodrive.dev/mcp
> codex mcp login zerodrive
> ```
>
> Ask in plain English (*"run the ZeroDrive prompt check-vault"*). Codex runs `list_prompts` and `get_prompt` automatically.

> [tab] Claude.ai (Web & Mobile)
>
> Open **Settings → Connectors → Add custom connector**, paste `https://api.zerodrive.dev/mcp`, click **Connect / Sign In**, and approve.

> [tab] Claude Desktop
>
> Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows).
>
> ```json Hosted Remote MCP (Recommended) theme={null}
> {
>   "mcpServers": {
>     "zerodrive": {
>       "url": "https://api.zerodrive.dev/mcp"
>     }
>   }
> }
> ```
>
> ```json Local Stdio MCP theme={null}
> {
>   "mcpServers": {
>     "zerodrive": {
>       "command": "zerodrive",
>       "args": ["mcp"]
>     }
>   }
> }
> ```

> [tab] Cursor & VS Code
>
> Add to `~/.cursor/mcp.json` or `.cursor/mcp.json`.
>
> ```json Hosted Remote MCP (OAuth) theme={null}
> {
>   "mcpServers": {
>     "zerodrive": {
>       "url": "https://api.zerodrive.dev/mcp"
>     }
>   }
> }
> ```
>
> ```json Hosted Remote MCP (API Key) theme={null}
> {
>   "mcpServers": {
>     "zerodrive": {
>       "url": "https://api.zerodrive.dev/mcp",
>       "headers": {
>         "Authorization": "Bearer zdk_your_api_key"
>       }
>     }
>   }
> }
> ```
>
> ```json Local Stdio MCP theme={null}
> {
>   "mcpServers": {
>     "zerodrive": {
>       "command": "zerodrive",
>       "args": ["mcp"]
>     }
>   }
> }
> ```

> [tab] Muse & Mobile
>
> Add a connector pointing to `https://api.zerodrive.dev/mcp`, tap **Sign In**, pick your account, and approve.

***

## Headless scripts (`zdk_...`)

If no browser can open, create a **Personal API Key** (`zdk_...`) at [app.zerodrive.dev/#connect](https://app.zerodrive.dev/#connect) with chosen permissions and optional `root_folder`, then send `Authorization: Bearer zdk_your_api_key` (or `?key=zdk_...` if headers are unsupported).

***

## Test it and go deeper

Ask your connected AI assistant:

> *"Run `run_vault_doctor` on ZeroDrive and show my folders with `get_vault_map`."*

> [card] [Choose AI Permissions](https://docs.zerodrive.dev/mcp/permissions.md)
>
> Pick read-only, write, full, or folder-locked access safely.

> [card] [Fix AI Connections](https://docs.zerodrive.dev/mcp/troubleshooting.md)
>
> Solve sign-in prompts, scope errors, and revoke access anytime.


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