nodrix agent #
Compiles nodrix sketches on your machine, using your own Arduino toolchain, and uploads the binary to your instance for the browser to flash.
A browser can do almost everything else: pick a serial port, flash a board, read its console. It cannot run a C++ toolchain — the ESP32 sysroot alone is over 150 MB. That is the only job this has.
Why it dials out #
The agent opens a WebSocket to your instance rather than listening on localhost.
No port to open, no certificate to install, no permission prompt when a page
reaches 127.0.0.1, and it keeps working when you open your dashboard from a
phone on another network.
Install #
Download the binary for your machine from the latest release. It is self-contained — no Bun or Node needed.
curl -fsSL -o nodrix-agent \
https://github.com/decoded-cipher/nodrix-agent/releases/latest/download/nodrix-agent-macos-arm64
chmod +x nodrix-agent
Swap the filename for macos-x64, linux-x64, linux-arm64, or
windows-x64.exe. Every release ships a SHA256SUMS next to the binaries.
macOS will refuse an unsigned download the first time: allow it under System
Settings → Privacy & Security, or xattr -d com.apple.quarantine nodrix-agent.
You also need arduino-cli on your
PATH, with the core for your board installed:
arduino-cli core install esp32:esp32
Run #
NODRIX_INSTANCE=https://your-instance.workers.dev \
NODRIX_TOKEN=your-admin-token \
./nodrix-agent
The token comes from Account → Tokens in your instance, with admin scope.
If it is not scoped to a single project, set NODRIX_PROJECT too.
Or write ~/.nodrix/agent.json:
{
"instance": "https://your-instance.workers.dev",
"token": "your-admin-token",
"project": "prj_xxxxxxxxxxxx"
}
Environment variables win over the file. Leave project out when the token
already names one.
From source #
bun install
bun run dev
bun run build:macos-arm64 and friends produce the standalone binaries.
Status #
Early. The compile path works. Nothing here has been run against real hardware yet, and builds are not sandboxed — the agent runs your own toolchain on your own machine, so treat connecting it to an instance as trusting that instance.