AI‑driven automation for NetBox – sync devices, reconcile inventory, and reduce manual input in a single CLI tool.
- Instant reconciliation – The tool compares your NetBox database with live device data and auto‑applies missing objects.
- Declarative configuration – Define desired state in a simple YAML file and let the agent keep NetBox in sync.
- CLI + API – Operate from the terminal or embed the SDK in your own scripts.
# Install the package
pip install netboxautomationguardian
# Run a one‑shot sync
netboxguardian sync --config myconfig.yamlSee the Setup Guide for detailed installation and prerequisites.
- Discovery – Pulls current device inventory via NetBox REST API or SSH‑based probes.
- Diff Engine – Computes differences between the live state and the desired YAML manifest.
- Apply Phase – Creates, updates, or deletes NetBox objects through the API, respecting dependencies.
- Audit Log – Emits a concise report of actions performed, useful for compliance.
| Feature | Purpose |
|---|---|
sync |
One‑shot or scheduled reconciliation |
preview |
Show planned changes without applying |
state |
Export current NetBox inventory to YAML |
agent |
Background daemon for continuous monitoring |
report |
Generate CSV/JSON logs for external systems |
- Only supports NetBox 3.x API; older versions are not tested.
- Requires network access to both NetBox and target devices.
- Does not manage device firmware or configurations—focuses solely on inventory metadata.
The SDK exposes a NetBoxClient class; drop it into your own automation workflows:
from netboxautomationguardian import NetBoxClient
client = NetBoxClient(url="https://netbox.example.com", token="abcd1234")
devices = client.devices.list()Feel free to contribute new adapters or output formats.
- v0.3 – Scheduled sync via CRON integration.
- v0.4 – Support for NetBox 4.x API.
- v1.0 – Full Terraform provider wrapper.
- Issues – Use GitHub issues for bugs or feature requests.
- Discussions – Join the community for best‑practice sharing.
- Contributing – Pull requests are welcome; follow the coding style guidelines.
netbox-automation, ai-agent, network-inventory, developer-tools, automation, open-source, python-sdk, system-monitor, productivity, cli-tool, rest-api-client, infrastructure-as-code, netboxautomationguardian, powered, utility
NetboxAutomationGuardian – 2026