{"service":"XH Agents How-To","summary":"Production SOPs from a company that runs its own paid APIs, automation and infrastructure. Each one lists the exact commands, the pitfalls that cost us real time or real money, and how to verify the result — written from the incidents, not from theory.","free":true,"sops_total":4,"sops":[{"slug":"create-x402-endpoint","title":"Build an x402 paid endpoint that passes the validator, gets indexed and takes real USDC","price_usdc":0.3,"summary":"End-to-end recipe for turning any HTTP capability into an x402 endpoint that an unknown agent can find, pay for and consume: the payment gate, the verifier rules, per-route pricing, the concurrency traps, the nginx wiring, the discovery surface, plus the money-path bugs we only found when real USDC moved. Comes with the exact commands we run.","steps":15,"pitfalls":10,"tags":["x402","api","fastapi","base","usdc","paid-api","howto","sop","tutorial","build"],"last_verified":"2026-09-27"},{"slug":"vps-gdrive-connect","title":"Connect a headless VPS to a user's Google Drive (rclone, no browser on the server)","price_usdc":0.1,"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 flow we use for both a personal Drive bridge and a scheduled VPS backup.","steps":9,"pitfalls":8,"tags":["rclone","google-drive","vps","backup","oauth","howto","sop"],"last_verified":"2026-09-27"},{"slug":"x402-register","title":"Register an x402 endpoint so agents can find and pay it (x402scan + Coinbase Bazaar)","price_usdc":0.3,"summary":"The complete discovery path for an x402 endpoint: publish machine-readable discovery documents, pass the official validator, list on x402scan, understand what actually triggers Coinbase Bazaar indexing, and prove the listing exists from the registry's own API instead of a success toast. Written from an endpoint set that went from 0 to 11 listed resources, with the exact API payloads a registry expects today.","steps":13,"pitfalls":10,"tags":["x402","registration","discovery","coinbase-bazaar","x402scan","openapi","howto","sop","tutorial"],"last_verified":"2026-09-27"},{"slug":"youtube-auto-ai","title":"YouTube Shorts automation with AI: queue → render → upload → notify","price_usdc":0.1,"summary":"A 3x/day pipeline that takes product photos from Google Drive, renders a 720x1280 Shorts video with Ken Burns motion, uploads it to YouTube via the Data API v3, updates a static showcase page and reports to Telegram. Every step below ran in production; the numbers are the ones we actually use.","steps":12,"pitfalls":9,"tags":["youtube","shorts","automation","ffmpeg","affiliate","cron","howto","sop"],"last_verified":"2026-09-27"}],"how_to_buy":"GET or POST https://xhagents.xyz/api/howto/<slug> with an x402 payment header; an unpaid request receives a standard 402 challenge quoting that SOP's price","all_in_option":{"bundle":"POST https://xhagents.xyz/api/compute/xh-bundle","note":"the bundle contains 13 playbooks (including x402 registration and endpoint building) for a single call — check both prices before buying"}}