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

# Self-Hosted & Connected Nodes

> Pair Macs, Linux servers, or NAS boxes with ZD-XXXX-XXXX codes, run zd node serve, or connect over Tailscale HTTPS.

Connect remote Macs, Linux servers, and NAS machines to **Devices & Clouds** in Studio with `zd node`.

## Option 1. Pair with a code (`ZD-XXXX-XXXX`)

**1. Get a 10-minute code**

In Studio, go to **Devices & Clouds → Connect machine or server** (or `POST /v1/nodes/pair`) to get a one-time `ZD-XXXX-XXXX` code.

**2. Join from the remote machine**

```bash theme={null}
zd node join ZD-XXXX-XXXX --name "render-node-01" --serve
```

**3. Check status**

```bash theme={null}
zd node list
zd node status
```

## Option 2. Connect directly over Tailscale HTTPS

```bash theme={null}
zd node serve --direct-only --bind 127.0.0.1 --port 47820 --token "<your-node-token>"
tailscale serve --bg --https=443 http://127.0.0.1:47820
```

Pick **Direct URL** in Studio, paste `https://<machine>.<tailnet>.ts.net` and your token, and Studio saves the login securely in Keychain or Credential Manager.

## Node flags

`--name NAME`, `--bind HOST`, `--port PORT`, `--direct-only`, `--direct URL`, `--tailscale`, `--state-file PATH`, `--json`.


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