Upgrade Notes
- Exit codes now tell you why a command failed. Before, most failures exited 1. Now a missing box or net exits 3, an unreachable box 4, a timeout 5, and a box locked by someone else 6. A usage error or no selected box exits 2. A script that tests for exit code 1 must accept the new codes. The full table is in Exit Codes.
-
A declined confirmation now exits 7, not 0. This applies to
lager supply,lager battery,lager arm, andlager debug eraseandmemrd. A script that answers “no” and expects success must accept exit code 7. A confirmation that gets no answer because stdin closed now exits 8, not 1. -
lagerwith no command and no terminal shows help. Before, it started the interactive terminal and waited for input that a script never sends. -
Viewer links for access-gated boxes carry the sign-in token only on a
terminal. This applies to
lager webcam start,urlandstart-all, andlager scope NET stream startandstream web. Piped output, JSON output andLAGER_NONINTERACTIVE=1get the link without the token. A script that opened a piped link must now use--open, whichwebcam urlandwebcam start-allnow also take.
Features
-
JSON output for scripts and AI agents.
lager --output jsonandLAGER_OUTPUT=jsonprint each result as one JSON object on stdout. A failure prints one error envelope on stderr, withcode,exit_code,problem,causeandfixes. Warnings print as one JSON line each. A net command that fails on the Lager Box also prints the envelope. Text output is unchanged. See Scripts and AI Agents. -
More commands take
--json. These arelager hello,lager boxes,lager instruments,lager netsandlager defaults. Thestatecommands oflager supplyandlager batterytake it, and so doeslager debug <net> status.lager nets --jsonincludes each net’s metadata, such aspurposeandtest_hints. The global JSON mode never approveslager debug erase. -
LAGER_NONINTERACTIVE=1stops every confirmation prompt. A command that needs a confirmation exits 8 and tells you to run it again with--yes. A command that asks for a value exits 2 and tells you to give the value as an option. -
LAGER_READ_ONLY=1runs only the commands that read. Any other command, includinglager python, exits 10 before it does anything. A set-or-read command with no value counts as a read, for examplelager supply <net> voltageorlager dac <net>.lager uartis refused only with--send,--interactiveor--force. -
lager agentgives an AI coding agent a guide to the CLI.lager agent installwrites a skill and short rules for Claude Code.--target codexwrites a block inAGENTS.md, and--target cursorwrites a Cursor rule. The guide gives the safety class of each command and tells the agent to ask a human before it changes the bench.--helpnow shows the same safety class. Seelager agent. -
lager uartcan stop on its own.--duration,--until REGEXand--max-bytesend a read.--send TEXTwrites one line before the read. When--untilfinds no match in the--durationtime, the command exits 5.lager debug <net> gdbserver --rtt --duration Sstops the RTT stream after S seconds. -
lager ble-sniffer <net> scanandrssi.scanlists each advertising device with its address, name, mean RSSI and decoded advertising data.rssiprints packets and mean, minimum and maximum RSSI for each device, plus the mean on each advertising channel.--addressand--channelnarrow both. A script uses.scan()and.rssi(). Contributed by @eindiran. -
FTDI gpio nets can declare the level they power up at.
lager nets set-power-upandnets add --power-upnow accept FT232H, FT2232H and FT4232H nets on pins AD0-AD7. The part stores nothing, so the Lager Box keeps the levels and drives them as soon as the part is back on USB. Until then the pins read HIGH, so fit a pull-down to any line that switches a load. - A Mac Lager Box drives Rigol oscilloscopes and logic analyzers on USB. Captures, measurements, triggers and logic channels run through the scope daemon that the installer builds.
-
A Mac Lager Box streams webcams.
lager webcamstart, stop, url and snapshot work, and so do the web UI and a script’s webcam net. A net saved on a Linux Lager Box finds its camera on the Mac. The Mac’s built-in camera isavfoundation:<ID>. -
A Mac Lager Box runs
lager bleandlager blufion the Mac’s Bluetooth. macOS shows no Bluetooth addresses, so address a device by the UUID thatlager ble scanlists on that Mac.
Bug Fixes
-
lager dacaccepts a value it cannot use. A value out of range or not a number now exits 2 before the Lager Box is contacted. A negative value, such aslager dac dac1 -0.5, is read as the voltage, not as an unknown option. -
A net command waits a long time on a Lager Box that refuses connections.
It now exits 4 at the lock request and names
lager helloas the next step. - FTDI gpio pins float HIGH after a power cycle. When another process held the channel, Lager marked the channel as set up without restoring its outputs. Every later command then skipped the restore. The open now fails, so the next one restores the outputs.
Known Limitations
- Rigol oscilloscopes on a Mac Lager Box are not yet tested on hardware. An MSO5000’s HDMI live view is not available on a Mac.
- Webcam controls, such as focus and exposure, are not available on a Mac Lager Box.
- A Mac Lager Box cannot pair a BLE device on request: macOS pairs a device
itself. A
XX:XX:XX:XX:XX:XXaddress is refused on a Mac. - The BLE sniffer
scanandrssicommands need this version on the Lager Box too.

