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

# Choose AI Permissions

> Control what Claude, ChatGPT, Codex, and Cursor can read, write, or delete in ZeroDrive and revoke access anytime.

Every AI app connection gets its own scoped permission pass. You choose what it can touch when approving access in your browser.

***

## Permission levels

When you sign in via OAuth 2.0 or mint a **Personal API Key** (`zdk_...`), pick one access level.

| Level | What the AI can do | Best for |
| :- | :- | :- |
| **Read only** (`read`) | Browse folders, search filenames, read files, and ask Knowledge Brain questions | Research assistants, Q\&A bots, and read-only reviews |
| **Read and write** (`write`) | Read, create, edit, organize, and upload files | Everyday coding agents and content workflows |
| **Full access** (`full`) | Everything above plus file deletes (which still go to 30-day Trash by default) | Trusted agents helping tidy or reorganize folders |

***

## Extra safety locks

* **Lock to one folder (`root_folder`).** Keep an assistant inside a single folder (such as `Clients/Acme`) so nothing else in your drive is visible to it.
* **Lock to one drive or branch (`zdx_` Sandbox Key).** Give a temporary background agent a sandbox key (`create_sandbox_token`) restricted to one drive, optional branch, and automatic expiry time.
* **Limit Knowledge Brain buckets.** Personal notes, code, and system files stay hidden from ordinary searches unless explicitly allowed or filtered.

***

## What AI connections can never do

Even if you approve full access on an OAuth AI client:

* **Cannot delete duplicate groups.** `/v1/duplicates/remove` refuses OAuth AI tokens (`403`). Removing duplicates happens only when you confirm inside Studio, the Web App, or interactively in `zd duplicates --remove`.
* **Cannot read your S3 keys or credentials.** `/v1/me/credentials` and internal admin routes stay blocked for OAuth AI connections and API keys.
* **Trash protects deletes by default.** `delete_file` sends items to **30-day Trash** unless you explicitly flip your account setting to immediate delete in Web App settings.

***

## Review or turn off access anytime

Open [app.zerodrive.dev/#connect](https://app.zerodrive.dev/#connect) anytime to see active OAuth apps and API keys, rotate secrets, or revoke an assistant's access immediately.

***

## Next steps

> [card] [Connect Your AI Client](https://docs.zerodrive.dev/mcp/client-setup.md)
>
> Link Claude, ChatGPT, Codex, Cursor, or VS Code in two steps.

> [card] [Fix AI Connections](https://docs.zerodrive.dev/mcp/troubleshooting.md)
>
> Solve sign-in prompts, permission errors, and missing folders.


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