Reference
Desktop gateway
The desktop gateway is a localhost HTTP server. It runs inside the Desktop app and binds to 127.0.0.1:19432 by default.
Bind and discovery
- Preferred port:
19432 - Fallback probe order:
19432 → 19433 → 19434 → 19435 - Bind host:
127.0.0.1(loopback only) - Discovery file:
~/.closedloop-ai/electron-port(plaintext active port)
Unauthenticated endpoint
GET /health is the only route and is used for liveness.
{
"status": "ok",
"machineName": "string",
"capabilities": { "versions": { "...": "..." }, "commandSigning": false },
"gatewayId": "string",
"onboardingCompleted": false,
"version": "string",
"port": 19432
}capabilities advertises protocol support, not which CLI tools the machine has.
Fail-closed behavior
- On port conflicts: auto-falls back within the configured range. Full failure moves the tray to
error.