Install the bridge on a Raspberry Pi beside the laser, or on a PC that's already there. Plug the laser in by USB, check the bridge's web page, then connect whatever you design with.
Pick one computer to run it: the laser plugs into that computer by USB, and everything else reaches the laser over the network.
Any Raspberry Pi 3, 4, 5 or Zero 2 W with Raspberry Pi OS. Choose the 64-bit version if you can: the camera needs it.
curl -fsSL https://trykerf.com/install.sh | shRather read it before it runs? You should be wary of piping any script from the internet into a shell, ours included. This downloads the installer, shows it to you, and runs it only when you choose to:
curl -fsSLo install.sh https://trykerf.com/install.sh
less install.sh
sh install.shWhat it does, and nothing else: downloads the bridge for your Pi from trykerf.com and checks it against its published SHA-256 checksum (it stops if they don't match); copies it to /usr/local/bin/kerf-bridge; adds a kerf system user that can't log in, in the dialout and video groups so it can reach the laser and the camera; writes /etc/kerf-bridge/config.json if it isn't there; and adds a kerf-bridge systemd service. It uses sudo for those steps. To remove it: sudo systemctl disable --now kerf-bridge.
The installer and the bridge's source code are on GitHub: github.com/itconor/kerf-bridge. You can build the bridge from it yourself and check it matches our download.
That installs the bridge as a service that starts whenever the Pi does. Run the same line again to update; your settings are kept in /etc/kerf-bridge/config.json.
If port 23 is already in use (by ser2net, say), the installer leaves it alone and puts LightBurn pass-through on port 2323 instead.
Windows 10 or 11, 64-bit. Plug the laser into this PC by USB.
http://localhost:8023 in a browser on that PC.macOS 13 or later, Apple silicon or Intel. Plug the laser into this Mac by USB.
The menu bar icon has Open Kerf Bridge…, Start at Login and Quit. Its log is in ~/Library/Logs/Kerf Bridge.log.
Open http://<bridge address>:8023 in any browser on the network, using the Pi's or the PC's address.
The first time, a set-up wizard opens. It walks you through four steps: choose the laser (Test checks a laser answers on that port), choose the camera with its live picture, give the bridge a name, then how to connect Kerf and LightBurn. You can run it again any time from Settings → Set-up wizard.
$$ settings.The iPad needs to be on the same Wi-Fi as the bridge.
In job mode the bridge runs the whole job itself, so the iPad can go to sleep without stopping the burn.
LightBurn talks to the bridge as a network laser.
Almost any USB webcam works: the bridge needs one that sends MJPEG, which nearly all do.
You need Home Assistant's MQTT broker (the Mosquitto broker add-on) and a Home Assistant user for the bridge to log in as. Nothing to install in Home Assistant itself.
192.168.1.10). The port is 1883 unless you've been given another.A Kerf Bridge device, with:
Stop always works, whoever is running the job. So an automation can stop the laser for you: when a smoke alarm goes off, for example.
Check the USB cable: some are for charging only and carry no data, so try another. Then pick the laser's serial port in Settings on the bridge's web page.
A lid or safety switch is open, or the laser is paused. Close the lid or reset the switch, or press Resume.
Only one program controls the laser at a time: if a job is running from Kerf or the web page, wait for it to finish. Check the port: 23, or 2323 if the installer moved it. If ser2net is still running on the Pi, stop it and run the installer again:
sudo systemctl disable --now ser2netThe camera needs a Pi with the 64-bit OS (or a Linux PC) and a USB webcam. To check the camera on its own, this takes one picture without touching the laser. Close the camera view in Kerf and on the bridge page first: a camera can only be read by one program at a time.
kerf-bridge -config /etc/kerf-bridge/config.json -snapshot test.jpgIf it says the camera is busy or not found, unplug it and plug it in again, then try once more.
Restarting the bridge resets the laser's controller, so home the laser again before the next job.
Never leave a laser unattended. The bridge makes jobs reliable, not safe: stay with the laser, keep a fire extinguisher nearby, and use the STOP button or the laser's own emergency stop if anything looks wrong.