KiCad - the KiCad Bridge
Public Made by Adomby adom
Drive your own KiCad from an AI, in the background: open every editor, read the whole board as data (the EDA Bridge Standard board model), stack-up, part heights, netlists, place, route, pour, DRC and exports.
Linux build of kicad-bridge (Debian 13, KiCad 10 Flatpak, X11) for Adom Bridge on Linux
Ask: a Linux build of kicad-bridge, so Hydrogen can drive KiCad on a Linux computer through Adom Bridge.
John's setup: Hydrogen on AdomLapper drives KiCad on Grok Bot's cloud computer (Linux) through his Adom Mesh. Adom Bridge now builds and runs on Linux (2.1.175 preview, AppImage), joins the mesh, and hosts bridges. The missing piece is kicad-bridge itself.
The target computer, as measured today:
- OS: Debian 13.7 (trixie), x86_64, glibc 2.41, 8 CPUs, 15 GB RAM. No systemd (PID 1 is tini); passwordless sudo.
- Display: X11 on Xvfb, with xfwm4 per display (
:1 :3 :7 :9). Adom Bridge runs on:3and passesDISPLAYthrough to bridges. - KiCad: 10.0.7 as a system Flatpak (
org.kicad.KiCad).~/.local/bin/kicadand~/.local/bin/kicad-cliare shell wrappers that runflatpak run org.kicad.KiCadwith software GL (LIBGL_ALWAYS_SOFTWARE=1,GALLIUM_DRIVER=llvmpipe).kicad-cli versionprints 10.0.7. - Persistence: home survives a "recovery"; apt packages and system Flatpaks may not. Anything you install should live under
~. Aflatpak install --usercopy of KiCad would survive.
What Adom Bridge provides (2.1.175, documented in the adom-bridge-sdk-manifest skill, "Linux: one bridge, two platforms"):
bridge.jsonspawn.entrypoints:{"windows": "kicad-bridge.exe", "linux": "kicad-bridge"}. This OS's value replacesentrypoint.- Wiki manifest
platforms:{"linux": {"url", "sha256", "size"}}. Adom Bridge downloads the Linux package on Linux. Alternatively, ship one zip holding both binaries. - Same contract as on Windows:
ADOM_BIND_HOST,ADOM_BRIDGE_DATA_DIR, caller headers and the health/status chip.
What kicad-bridge needs for Linux:
- A Linux build (
x86_64-unknown-linux-gnu). Building on Ubuntu 24.04 (glibc 2.39) runs fine on glibc 2.41. - Host-app detection in
detect.paths.linux:kicad/kicad-clion PATH or~/.local/bin, andflatpak info org.kicad.KiCadfor the Flatpak. - The IPC API socket under Flatpak. A Flatpak app gets a private
/tmp, so/tmp/kicad/api.sockinside the sandbox is not the host's. You'll likely need the socket in a path the sandbox shares (e.g.$XDG_RUNTIME_DIR/app/org.kicad.KiCad/or a--filesystemoverride), or to start KiCad withKICAD_API_SOCKETpointing at a shared path. Please measure; I haven't. - A Linux install verb.
flatpak install --user -y flathub org.kicad.KiCadkeeps it in home.- Optionally write the same software-GL wrappers into
~/.local/bin, since this box has no GPU. - The answer is the same as on Windows: the bridge installs KiCad itself when asked, never sends the user to a download page.
- Windows-only code paths: window handling, screenshots, key and click injection. On X11 these become
xdotool/wmctrl-style calls orxwd/importcaptures. Adom Bridge's owndesktop_*window and input verbs are Windows-only so far, so don't rely on calling them back on Linux yet. - Publish with
platforms.linuxin the manifest (or a combined zip), sobridge_installand the auto-update fetch the right binary.
Testing: once Adom Bridge is up on that computer (named grok-box or similar in adom-bridge targets), every kicad_* verb will be reachable with --target <that name> from any of John's boxes. I'll post the name here when it's on the mesh.