Check prerequisites
Sentinel requires:
- Node-RED 3.0.0 or later — Sentinel declares
"node-red": { "version": ">=3.0.0" }in its manifest and will not load in older runtimes. - Node.js — whatever version your Node-RED install already uses is fine.
Install Sentinel into your Node-RED user directory
Sentinel must be installed inside Node-RED scans
~/.node-red so that Node-RED auto-discovers it as a plugin:~/.node-red/node_modules/ for packages that declare a node-red.plugins field. Sentinel declares one (nrg-sentinel: plugin.js), so the sidebar panel and plugin features load automatically on the next restart — no extra configuration needed for those.This installs Sentinel’s plugin and preload into your user directory. The Node-RED binary itself stays wherever it was already installed (globally or via a system package).
Activate the preload guard
The plugin alone covers the Node-RED API surface. To also gate
require() calls for dangerous built-in modules (fs, child_process, vm, worker_threads, and so on), Sentinel’s preload must run before Node-RED’s first require().Start Node-RED with the preload injected:Grant your first capability
By default Sentinel blocks every privileged operation for every third-party package. The minimum grant any node package needs is
registry:register — without it, Sentinel blocks the RED.nodes.registerType() call and Node-RED logs “Waiting for missing types” indefinitely.Add the grant for your custom node in ~/.node-red/settings.js:settings.js
Node-RED’s own built-in nodes (
inject, debug, function, http request, etc.) live outside the userDir and are never gated by Sentinel. You only need grants for third-party packages installed into ~/.node-red/node_modules/.Start Node-RED and verify Sentinel is active
Start Node-RED with the Look for this line in the startup log — it confirms the preload guard is running:In the Node-RED editor, open the left-hand sidebar. You should see the Sentinel panel listed alongside the standard Info and Debug panels. The panel shows:The warning tells you exactly which capability to add — no guessing required.
NODE_OPTIONS flag set:- Active protection status
- Any blocked operations (with the full call stack and the grant needed to allow them)
- Package grant management UI
Next steps
Installation
All installation paths: local, Docker, and build from source
Capability reference
Every capability string, what it gates, and common grant patterns