Implement a device
A new device needs to implement the Gelato v1 contract; it does not need an additional standalone component. Device-side code may run on the hardware itself or in a companion authorized to access it. To make it easier for the Gelato team to include your device, provide at least one runnable MVP.
Minimum contract
- Local prerequisite checks. Present an offline-capable, device-specific checklist for
before-pairingandbefore-controlconditions, reporting evidence and state according to the prerequisite schema. If a condition cannot be reliably checked, reportunknownwithdone: falsewithout blocking progress; only a confirmed failed required condition blocks its phase. Permissions require explicit local actions; an incoming link cannot bypass them. A headless device may use a temporary, locally authenticated setup page instead of a screen. - Identity and pairing. Send
pairing.requestwith a one-use code. Persist both returned wire identifiers (agentIdanddeviceId) and the credential in appropriate protected storage. Reconnect withsession.hello; do not send the credential in a URL. - Connection and state. Initiate the outbound control WebSocket, renew the lease, and send a fresh
device.snapshotafter every accepted session. Advertisedevice.describe@1, driver readiness, hardware state, and only capabilities that actually work. - Owner control. Keep pairing, connection enablement, and remote-control consent separate. The device owner can disable the connection or pause commands without losing the pairing. Report consent as
hardware.controlAllowed. - Exchange and commands. Support
input.publishfor instructions/observations; acceptreply.deliveras content and acknowledge it. Execute only advertisedcommand.requestcapabilities and return one terminal result or error. Handle deadlines, duplicate IDs, and cancellation. - Media when supported. Use authenticated typed streams for binary payloads. Declare content type and limits, sequence frames, and verify the final byte count and SHA-256. A device with no camera or microphone does not need to invent those capabilities.
The specification is authoritative for the wire protocol; the schemas define message shapes. App-specific workflows and model policies are not part of this checklist.
Choose a starting point
| Implementation | Reuse it for | Watch for |
|---|---|---|
| Android protocol client | Another Android-hosted hardware driver | Implement DeviceAgentDriver; keep vendor permissions local |
| iOS SDK | iOS device-side app or extensions | Signing, entitlements, and iOS lifecycle |
| Rokid BOLON native | Headless AI glasses, device-local camera and audio | First USB/ADB commissioning, Wi-Fi, camera, microphone and background permission checks |
| XIAO camera firmware | Custom AI hardware | Its pinout and firmware are board-specific, not portable ESP32 defaults |
The matching runnable MVPs are listed in the documentation index. A Controller implementation can use the server core and add device-specific helpers without changing the wire protocol.
Before claiming compatibility
Check first pairing, credential reconnect, a fresh snapshot, local control pause, device.describe@1, one advertised command's terminal result, and any media stream's complete byte count and digest. Also verify that the device remains safe when permissions are denied, the server is unreachable, or a command is cancelled.
