Prerequisites
Before you begin, make sure you have:- A NullBridge account (created by your admin in the dashboard)
- A valid license key (
NB-XXXX-XXXX-XXXX-XXXX) - Node.js 18 or higher
Step 1 — Install the SDK
Step 2 — Initialize NullBridge
Create a file (e.g.nullbridge.js) in your project:
Replace
NB-XXXX-XXXX-XXXX-XXXX with your actual license key. Contact brian@nullbridge.ai if you don’t have one.Step 3 — Register an Agent
Step 4 — Shut down gracefully
shutdown() when your application exits to flush any pending logs and stop heartbeat timers.
Full example
What happens next
After registration:
Your admin can now monitor, kill, restore, or rotate credentials for this agent from the dashboard.
Environment variable (recommended)
Store your license key as an environment variable instead of hardcoding it:Next steps
SDK Reference
Full API reference for all SDK methods
Dashboard
View your agents, SIEM events, and policies