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

# Fix AI Connections

> Fix common MCP login, permission, scope, and client setup issues across Claude, Codex, Cursor, and scripts.

If an AI client cannot see a folder or refuses a tool call, check this quick table first. You can also manage connected keys and apps anytime at [app.zerodrive.dev/#connect](https://app.zerodrive.dev/#connect).

***

## Common issues and quick fixes

| What you see | What to do |
| :- | :- |
| **Client asks to sign in again** | Complete the browser sign-in prompt using the same ZeroDrive account that owns the vault. In Claude Code run `claude mcp login zerodrive`. In Codex run `codex mcp login zerodrive`. |
| **Folder missing or `403 scope_denied`** | Your key or OAuth grant is locked to a specific `root_folder`, `drive_id`, or `branch`, or lacks `vault:write`. Reconnect with broader access or pick the right folder path. |
| **`403 plan_required` or `read_only`** | Your account needs an active subscription/trial, or your plan ended and is inside its 30-day read-only window. Check **Billing** at [app.zerodrive.dev](https://app.zerodrive.dev). |
| **Codex shows no `/mcp__zerodrive__` slash prompts** | Codex does not have a slash prompt menu. Ask in plain English (*"run the ZeroDrive prompt check-vault"*), and Codex calls `list_prompts` and `get_prompt` itself. |
| **`403` when AI tries to remove duplicates** | By design, OAuth AI clients cannot delete duplicate groups (`find_duplicates` is read-only). Confirm removals yourself inside Studio, `#duplicates` on the web, or `zd duplicates --remove`. |
| **Secret or personal files do not show in search** | Knowledge Brain hides `personal`, `code`, `skills`, and `system` buckets from ordinary queries, and blocks secret file extensions (`.env`, `.pem`, `.key`). Ask specifically with `bucket: "personal"` if intended. |
| **Need to cut off an AI app immediately** | Open [app.zerodrive.dev/#connect](https://app.zerodrive.dev/#connect) and revoke the OAuth app or delete the Personal API Key (`zdk_...`). |

***

## Check health from the AI chat

Ask your connected AI assistant:

> *"Run `run_vault_doctor` on ZeroDrive and tell me what is connected."*

***

## Next steps

> [card] [Choose AI Permissions](https://docs.zerodrive.dev/mcp/permissions.md)
>
> Pick read-only, write, full, or single-folder locks for every AI app.

> [card] [Desktop Troubleshooting](https://docs.zerodrive.dev/support/troubleshooting.md)
>
> Fix Finder mounts, Windows SmartScreen, and transfer pauses.


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