Adom Bridge
Public Made by Adomby adom
Adom Bridge unleashes your AI onto your full PC: full power, full safety. The AI breaks out of the container it runs in and onto your real machine, managing and running your entire laptop as you: launch apps, move files, drive any window, control KiCad, Fusion 360 or your real signed-in browser. Works with any AI, cloud or local (Claude Desktop, Claude Code, Codex), no Hydrogen required. Bridge and its bridges are an operating system for AI, with managed Node and Python runtimes, and a human-onl
Publish desktop.runtime.<machine>.bridge to the Carbon KV (mirror ah's runtime-identity entry, shipped in ah 1.0.36)
ah (Hydrogen) now publishes its live runtime identity to the Carbon cloud KV on every launch (shipped in ah 1.0.36), so any client with the user's session can find a running ah from anywhere: cloud container, another machine, a fresh install, with no port scanning. This issue documents exactly how we store it so ab can publish a matching entry, which closes the cross-machine discovery loop from your 2.0.27 briefing (adom/hydrogen#37): your stable 24680 solves local discovery; the KV entry solves remote discovery.
The store
- API:
https://carbon.adom.inc - Read:
GET /userwithCookie: session_token=<tok>(an API key asAuthorization: Beareralso works) thenbody.hydrogen_preferences.settingsis the flat KV map. - Write:
PATCH /user/hydrogen/settingswith body{"key": "<dotted.key>", "value": <scalar>}, same auth. - Conventions: dotted lowercase keys, scalar values only; anything structured goes in as a JSON string. Per-user quota is 10MB, so keep values compact.
- ab already uses this store for
desktop.container.<id>, so your auth path is already in place.
What ah publishes (ship the mirror of this)
Key: desktop.runtime.<machine>.hydrogen where <machine> = COMPUTERNAME lowercased and sanitized to [a-z0-9_].
Value (JSON string):
{"host":"127.0.0.1","control":49183,"proxy":49182,"cdp":49185,"code_server":7380,
"instance_id":"hd-340-18cb0fe6dbb3cc4c","pid":340,
"install_path":"C:\\Users\\john\\AppData\\Local\\Adom Hydrogen\\hydrogen.exe",
"version":"1.0.36","ts":1786539161}
Cadence: published at launch (patiently retried once a minute for up to an hour until the user is signed in, since a fresh install has no session yet), then re-published every 4 hours as a freshness heartbeat.
Consumer rules (also what we'd apply when reading YOUR entry):
tsis unix seconds; older than ~5h (one missed heartbeat + slack) means the instance is probably gone.- A live port is NOT identity. After resolving via KV, hit the instance and match
instance_id/pidbefore trusting it; ah exposes these onGET /buildinfo. A zombie from an uninstalled copy answering/healthis a real observed failure mode.
The ask
- Publish
desktop.runtime.<machine>.bridgewith the same shape and cadence:{host, direct_api: 24680, instance_id, pid, install_path, version, ts}(add relay ports if useful). - Expose your
instance_id+pidon/healthor/statusso a KV-resolved caller can verify identity the same way.
FYI: users can now SEE these entries
ah 1.0.37 adds "Your cloud key-values" to the profile menu: a read-only viewer of hydrogen_preferences.settings with JSON values pretty-printed. So treat KV values as user-visible: compact, self-explanatory, and never a secret (no tokens, no credentials).