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

# S3-Compatible Storage Gateway

> Connect AWS CLI, Cyberduck, Mountain Duck, or custom S3 tools to your ZeroDrive account.

Connect any S3 Signature V4 tool to **`https://api.zerodrive.dev/s3`** with quota enforcement and full account isolation.

## Find your S3 details

Open [app.zerodrive.dev/#connect](https://app.zerodrive.dev/#connect) (active plan or trial required) and scroll to **S3 storage access** for your **Bucket**, **Folder prefix**, **Access key ID** (`zdk_...`), and **Secret key** (or call `GET /v1/me/credentials` with a device token). Set Region to `auto`.

> [!WARNING]
>
> Always stay inside `<bucket>/<prefix>/`. Requests outside your account prefix return `403 AccessDenied`.

```bash AWS CLI theme={null}
AWS_ACCESS_KEY_ID="zdk_your_s3_access_key_id" \
AWS_SECRET_ACCESS_KEY="your_s3_secret_access_key" \
aws s3 ls "s3://<your_bucket>/<your_prefix>/" \
  --endpoint-url https://api.zerodrive.dev/s3 \
  --region auto
```

```text S3 Client Settings (Cyberduck, Mountain Duck, SDKs) theme={null}
Endpoint:              https://api.zerodrive.dev/s3
Region:                auto
Path-Style Addressing: Enabled
Access & Secret Keys:  From app.zerodrive.dev/#connect
Bucket & Folder:       <your_bucket>/<your_prefix>/
```

## Rotate S3 keys

Click **Rotate keys** in `#connect` (or call `POST /v1/me/credentials/rotate`). Rotation turns off the old key right away, so update any scripts or S3 apps using it.


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