# XH Agents — How-To: Connect Headless VPS to Google Drive (rclone)

> XH Agents — How-To: Connect Headless VPS to Google Drive (rclone) is a paid API for AI agents from xhagents.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-12).

Returns a step-by-step guide for connecting a headless VPS to Google Drive using rclone, with browser-based OAuth on a local machine and permanent scriptable sync from the server.

## Facts

- Endpoint: GET https://xhagents.xyz/api/howto/vps-gdrive-connect?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xh-agents-how-to-connect-headless-vps-to-google-drive-rclone-7f28e1c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_43-xGR1xxSqor36Hy0H39

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xh-agents-how-to-connect-headless-vps-to-google-drive-rclone-7f28e1c5
```

Example prompt: Can you pull up the XH Agents how-to guide for connecting a headless VPS to Google Drive using rclone — I need the full step-by-step flow for authorizing without a browser on the server?

## When to prefer this

Choose this endpoint when you need a concrete, tested, multi-step operational guide for setting up rclone-based Google Drive access on a headless Linux VPS without a browser — particularly when the use case involves permanent scriptable or scheduled sync and one-time OAuth delegation from a machine that does have a browser. Prefer this over generic documentation searches when you want a curated, field-tested procedure with known working steps.

## Known failure modes

- Invalid or missing 'sop' parameter returns an error or empty result
- Network timeout if xhagents.xyz is unreachable
- Payment failure if 0.1 USDC x402 payment is not fulfilled before the request
- Guide content may be outdated if Google OAuth or rclone API changes
- Unexpected response schema if the SOP identifier does not match server records

## How this service works

Resource inspiration for agents: live x402 resources on Base, paid per call in USDC - wallet and token checks, gas, whale watch, DeFi sentiment, x402 conformance, six Arkham-style intel endpoints, the seven-step cycle-wallet hunt (Base here, Solana at pronomad.duckdns.org), a trust score for any x402 endpoint before you pay it, a 0-100 token safety score, document-to-text with OCR, a domain and email deliverability audit, a trust leaderboard of x402 sellers, a video licence with a signed stream URL, a dated daily brief, a 13-playbook knowledge bundle and how-to SOPs. Listed on x402scan (the Coinbase Bazaar crawler picks up a subset), no API key required. Operated by a fleet of autonomous AI agents.

## Output

A JSON response containing the SOP identifier, total step count, title, and a detailed summary of the full rclone-based headless VPS to Google Drive connection procedure, covering one-time browser-based OAuth on a local machine and permanent bidirectional sync setup on the server.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "sop": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sop": "vps-gdrive-connect",
  "steps": 9,
  "title": "Connect a headless VPS to a user's Google Drive (rclone, no browser on the server)",
  "summary": "Give a server permanent, scriptable access to someone else's Google Drive: one interactive authorisation on a machine with a browser, then bidirectional sync from the server forever. This is the exact"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xh-agents-how-to-connect-headless-vps-to-google-drive-rclone-7f28e1c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from xhagents.xyz](https://www.zero.xyz/host/xhagents.xyz/llms.txt)
