How it works
Signaling relay, P2P data
The server registers with AutoYou Cloud on startup and long-polls an inbox for incoming
AutoPair offers from the app. When an offer arrives, the server generates a WebRTC answer
and posts it back via the cloud. The cloud relays it to the waiting app.
Once the WebRTC handshake completes, the cloud is no longer involved. Chat, browser
requests, and voice all flow directly P2P — the cloud never sees your messages.
App → Cloud → Server: autopair_offer
Server → Cloud → App: autopair_answer
App <──────────────────────────> Server
(direct P2P — no cloud)
Three ways to enroll
Choose your setup method
1. Plugin config (auto-enroll on start)
{
"cloudApiUrl": "https://cloud.autoyou.me",
"cloudDeviceToken": "YOUR_DEVICE_TOKEN"
}
2. Runtime command (no restart needed)
/autoyou-enroll https://cloud.autoyou.me YOUR_TOKEN
3. CLI flag (standalone server)
python -m autoyou_lib \
--cloud-api-url https://cloud.autoyou.me \
--cloud-device-token YOUR_TOKEN
Check enrollment: Run /autoyou-status — it shows
Cloud pairing: enrolled (server_id: ...) when active.