SafeAI Edge reads the configuration of your network devices, servers and PCs, VMware, cloud accounts and the AI tools on your computers; explains what every line means; finds problems; and tells you about every change: who made it, what each changed line does, what problems it introduced, and whether it was planned. It is read-only unless you turn on approved fixes (section 10): then a built-in fix runs only after an administrator approves its exact plan, and SafeAI checks the result by reading again.
It reaches things in two ways, and you can use both at once:
- Without installing anything on the target: SSH (network devices, Linux), WinRM (Windows), the vSphere API (vCenter/ESXi), the AWS, Azure and Google Cloud APIs, the PAN-OS XML API.
- With the SafeAI Agent (Windows, Linux, macOS), which connects out to SafeAI and also reports the AI tools on the computer, its Wi-Fi link and tests to your services (section 8). With the agent and without it compares the two ways.
Before a deployment of more than one site, read Design guide (SRND): reference designs, the firewall rules to request, and a worksheet of everything this guide will ask you for.
Installing takes about 30 minutes, most of it creating read-only accounts.
Zero-touch (recommended): fill in one setup file and SafeAI sets itself up: administrator, device account, discovery of your management ranges and the first read of every device it finds, with no wizard and no device list. Every format is covered (VMware OVA, Hyper-V, Proxmox, KVM, a Linux server, Ansible, Terraform for AWS / Azure / Google Cloud, containers): see Zero-touch deployment in the bundle. Copy-paste read-only account configurations for each vendor are in Device setup guides by vendor. The rest of this guide is the step-by-step way, and the reference for everything the setup file does.
1. Before you start: checklist
| You need | Details |
|---|---|
| A server | A virtual machine (or the SafeAI appliance, see section 7): 64-bit x86, 2 CPUs, 4 GB memory, 20 GB free disk at minimum (for up to about 1,000 devices without log storage; 4 CPUs and 8 GB for up to 2,000; see the architecture guide, Sizing). Linux with systemd (tested: Ubuntu 24.04 LTS). Docker Engine is installed by the bundle if missing; no internet access is needed. |
| Network position | On a management network that can reach your devices over SSH (TCP 22). |
| Firewall openings | To SafeAI: TCP 443 from administrators' browsers; UDP and TCP 514 (syslog) from devices or from your log server; TCP 8444 from computers with the SafeAI Agent. From SafeAI: TCP 22 to network devices and Linux servers; TCP 5986 to Windows (WinRM over HTTPS); TCP 443 to vCenter/ESXi, PAN-OS, and the cloud APIs you use (AWS, login.microsoftonline.com + management.azure.com, *.googleapis.com) and identity providers (graph.microsoft.com, <org>.okta.com). Optional: TCP 443 to your identity provider (single sign-on), ServiceNow, Teams/Slack webhooks; TCP 587 to your mail server. Put these rules on your network firewall: a firewall on the SafeAI server itself doesn't filter them (see "Network access" below). |
| The release-key fingerprint | SafeCadence gives it to you separately from the bundle (for example by phone or in your contract portal); the installer asks you to confirm it. |
| A read-only device account | One account SafeAI uses to log in; see section 3. |
| A device list | A CSV file: name,address,vendor,site,credential,port,options. |
| Optional | Your HTTPS certificate for SafeAI's name; an OpenID Connect application in Entra ID / Okta / Keycloak; a ServiceNow account that can read change requests; where alerts should go. |
What SafeAI reads in this release:
| Kind | Platforms | How |
|---|---|---|
| Network | Cisco IOS / IOS-XE; FortiOS; FRRouting; Nokia SR Linux. Preview: Cisco ASA, Firepower (FTD), NX-OS and IOS XR; Arista EOS; Juniper Junos; Palo Alto PAN-OS; pfSense, OPNsense; SonicWall; Sophos Firewall; WatchGuard; Check Point; HPE Aruba CX, Dell OS10 and Ruckus ICX switches | SSH (PAN-OS, SonicWall, Sophos: their APIs over HTTPS; Check Point: the Management API) |
| Network APIs (preview) | Cisco Meraki (Wi-Fi and MX security appliances), Ubiquiti UniFi, Catalyst 9800, Aruba Central, eero | their APIs, read-only |
| Servers and PCs | Linux (Debian/Ubuntu, RHEL family, Alpine); Windows Server and Windows 10/11; macOS (agent only) | SSH, WinRM, or the SafeAI Agent |
| Virtualization (preview) | VMware vCenter Server and ESXi | vSphere API, Read-only role |
| Cloud (preview) | AWS, Microsoft Azure, Google Cloud | their APIs, read-only roles |
| Identity (preview) | Microsoft Entra ID, Okta, Google Workspace | Microsoft Graph, Okta and Admin SDK APIs, read-only |
| AI tools | Claude Code / Desktop, OpenAI Codex CLI, Cursor, Windsurf, Gemini CLI, VS Code MCP settings, Ollama, LM Studio | the SafeAI Agent |
The NX-OS, IOS XR, ASA, EOS, Junos and PAN-OS catalogs come from the vendors' documentation and were tested on sample configurations. Preview platforms: ASA, FTD, NX-OS, IOS XR, EOS, Junos, PAN-OS, SonicWall, Sophos, WatchGuard, Check Point, Aruba CX, Dell OS10, Ruckus ICX and Meraki haven't been checked on a real device yet; pfSense, OPNsense and UniFi (a UniFi Network server) have been read on the lab, not yet at a customer. Device setup guides by vendor has a read-only account recipe for each. The console says "preview" on each such device. Compatibility matrix lists what each platform supports and where it was tested. Lines SafeAI doesn't know are shown as "not in the catalog", never guessed.
2. Install
Copy the bundle to the server, check it, unpack it and run the installer as root:
First check the bundle with your own tools, before running anything from it. Either compare its SHA-256 with the value SafeCadence sent you separately:
sha256sum safeai-observe-X.Y.Z.tar # must equal the value SafeCadence sent you
or check its signature against the release-key fingerprint SafeCadence gave you:
tar -xf safeai-observe-X.Y.Z.tar && cd safeai-observe-X.Y.Z
openssl pkey -pubin -in release-key.pem -outform DER | sha256sum | cut -c1-32 # must equal the fingerprint
openssl pkeyutl -verify -pubin -inkey release-key.pem -rawin -in SHA256SUMS -sigfile SHA256SUMS.sig # "Signature Verified Successfully"
sha256sum -c --quiet SHA256SUMS # no output = every file matches
Then install:
sudo ./install.sh --expect-fingerprint <fingerprint from SafeCadence>
# other options: --https-port 8443 --agent-port 9444 --syslog-port 1514 --data /srv/safeai --bind 10.20.0.15
The installer checks the server, repeats the bundle checks (without --expect-fingerprint it shows the fingerprint and asks you to
confirm it), installs Docker Engine from the bundle if needed, creates a system account safeai-svc for the service (an existing
installation keeps its account), starts SafeAI, and prints:
- the console address, for example
https://10.20.0.15/ - a one-time setup code, needed to create the first administrator (show it again with
sudo safeaictl setup-code)
3. Create a read-only account on your devices
SafeAI only needs to display the configuration.
Cisco IOS / IOS-XE, local account. Privilege level 7 can read the full configuration but can't enter configuration mode:
username safeai-observe privilege 7 secret <password>
file privilege 7
privilege exec level 7 more
SafeAI tries show running-config first and, when that comes back empty (as it does below privilege 15), reads
more system:running-config. With TACACS+ or RADIUS, give the account privilege 15 and authorize only show ...,
more system:running-config and terminal length 0. If the vty lines have an access-class, allow SafeAI's address.
FortiOS: a read-only profile, logins only from SafeAI's address:
config system accprofile
edit "safeai-observe"
set secfabgrp read
set ftviewgrp read
set authgrp read
set sysgrp read
set netgrp read
set loggrp read
set fwgrp read
set vpngrp read
set utmgrp read
set wanoptgrp read
set wifi read
next
end
config system admin
edit "safeai-observe"
set accprofile "safeai-observe"
set trusthost1 <SafeAI address> 255.255.255.255
set password <password>
next
end
The interface SafeAI connects to must allow SSH (set allowaccess ... ssh).
FRRouting: a Linux account on the FRR host that may run vtysh -c 'show running-config'. On many FRR routers part of the
setup lives in Linux rather than FRR: VPN or SD-WAN tunnels (WireGuard), addresses kept out of routing, policy routing. To have
SafeAI read, explain and watch that too, set the device option host_network=on and let the account run these display commands:
ip -o -d link show, ip -o -4 addr show, ip rule show, ip -4 route show table all, and, for WireGuard, sudo -n wg show all
(sudoers: safeai-observe ALL=(root) NOPASSWD: /usr/bin/wg show all; wg show never displays private or preshared keys).
These Linux settings write nothing to the device log when they change, so SafeAI checks them every minute (Settings,
collect.host_check_s) and reads the router in full when they differ. SafeAI explains and watches these lines but never
changes them: an undo of a Linux-side change is done on the router.
Nokia SR Linux: a user with a read-only role.
Cisco NX-OS: username safeai-observe password <password> role network-operator (built-in read-only role).
Cisco IOS XR: a user in the built-in read-only-tg group.
Arista EOS: username safeai-observe role network-operator secret <password>. If it logs in at the > prompt, save its enable password with the account.
Juniper Junos: a class that may view the configuration: set system login class safeai-ro permissions [ view view-configuration ], then set system login user safeai-observe class safeai-ro authentication plain-text-password (the built-in read-only class lacks view-configuration).
Cisco ASA: show running-config needs privileged mode: an account whose commands your TACACS+ server limits to show, enable
and terminal pager (or a local privilege level that only allows them); save its enable password with the account.
Palo Alto PAN-OS: an administrator with the built-in Superuser (read-only) role and XML API access. SafeAI asks for an API key
(the password travels only in the request body) and reads the running configuration. For a self-signed management certificate, set the
device option tls_sha256=<fingerprint>; SafeAI shows the fingerprint when the first read fails.
Servers, VMware and clouds (no agent)
| Platform | Address | Account | Options (key=value;key=value) |
|---|---|---|---|
Linux (linux) |
IP or host name, SSH | an ordinary account; no sudo needed | |
Windows (windows) |
host name, WinRM over HTTPS (5986) | DOMAIN\user in Remote Management Users (BitLocker needs local administrator; without it that item is just missing) |
transport=ntlm (default), kerberos or credssp; tls_sha256= for a self-signed WinRM certificate |
VMware (vmware) |
vCenter or ESXi host name | a user with the built-in Read-only role on the root object | tls_sha256= for a self-signed certificate |
AWS (aws) |
a label, e.g. aws-prod |
user name = access key ID, password = secret key, of an IAM user with the AWS-managed SecurityAudit policy | regions=eu-west-1,us-east-1; role_arn= and external_id= to assume a role |
Azure (azure) |
a label | user name = application (client) ID, password = a client secret, of an app with the Reader role | tenant=<directory id> (required); subscriptions=<id>,<id> |
Google Cloud (gcp) |
a label | user name = service account e-mail, password = its whole JSON key; roles Viewer and Security Reviewer | projects=<id>,<id> |
Entra ID (entra, preview) |
a label | user name = application (client) ID, password = a client secret; application permissions User.Read.All, Directory.Read.All, AuditLog.Read.All, Policy.Read.All, RoleManagement.Read.Directory (admin consent). MFA registration and last sign-in need Entra ID P1/P2 | tenant=<directory id> (required) |
Okta (okta, preview) |
the org's Okta domain, e.g. acme.okta.com |
user name = a label, password = an API token created by a Read-Only Administrator | |
Google Workspace (gws, preview) |
a label or your domain | user name = service account e-mail, password = its JSON key; domain-wide delegation of only https://www.googleapis.com/auth/admin.directory.user.readonly |
admin=<an administrator's e-mail> (required) |
SafeAI checks every certificate (your organization's CAs, or the one pinned with tls_sha256) before it sends an account's password,
and sends cloud credentials only to the providers' own API addresses.
4. First sign-in and the setup wizard
Open the console address in a browser. The certificate is self-signed until you install yours (section 6), so the browser warns once. Enter the setup code and create the first administrator. The wizard then asks for:
- Organization: your name, and the address people will use for the console (used in alert links).
- Device accounts: save the read-only account as
default; add others if some devices use a different one. Passwords are encrypted on the server and never shown again. - Devices: import your CSV or add devices one by one.
- Test: SafeAI logs in to each device and reads its configuration once. Fix any device that fails (the message says why: wrong password, no SSH answer, not enough privilege).
- Device logs: shown below.
- Alerts: email, Microsoft Teams, Slack, a webhook, or syslog to your SIEM. Use Send a test.
- Finish: SafeAI reads every device. The first copy of each configuration becomes its starting known-good copy; review each device and accept it when it's right.
5. Send device logs to SafeAI
When a device logs a configuration change, SafeAI reads it within seconds (once the device has stopped logging for 5 seconds, and at most 2 minutes after its first message) and explains the change. Logs are matched to devices by address: a device added by host name is matched by the addresses its name resolves to, and devices that share one address (for example behind NAT) can't be told apart, so for those the scheduled read finds the change. A log that arrives while SafeAI is already reading that device is attached to that read when it was sent before the read started; otherwise the device is read again right after. Without logs, changes are still found by the scheduled read (every 15 minutes by default), just later and without the user name or commands.
Either point devices at SafeAI directly:
! Cisco IOS / IOS-XE
logging host <SafeAI address>
archive
log config
logging enable
notify syslog contenttype plaintext
hidekeys
# FortiOS (a second syslog destination)
config log syslogd2 setting
set status enable
set server "<SafeAI address>"
end
On pfSense, turn on remote logging (Status > System Logs > Settings) with SafeAI as a remote log server and "Everything" as the contents; on OPNsense, add a remote logging destination (System > Settings > Logging) with SafeAI's address. Both log each saved configuration change with the user who saved it, so SafeAI reads the firewall right away instead of at the next scheduled read.
or have your existing log server forward to SafeAI (rsyslog: *.* @<SafeAI address>:514) and add that server's address
under Settings, Device logs, Trusted relays, so SafeAI takes the original device from each message. If you installed with
--syslog-port, use that port; the console's Device logs page shows the right lines for your installation.
Network access
SafeAI's ports are published by Docker, which adds its own packet-filter rules ahead of the server's firewall. ufw or firewalld on the SafeAI server do not restrict them. Restrict access in one of these ways:
- on your network firewall (recommended): allow TCP 443 only from administrators, syslog only from devices and your log server, TCP 8444 only from the networks of computers with the SafeAI Agent;
- bind SafeAI to one address of the server:
BIND=<address>(console) and optionallySYSLOG_BIND=<address>(syslog) andAGENT_BIND=<address>(agent port; both default toBIND) in/etc/safeai/safeai.env, thensudo safeaictl restart; - or add rules to Docker's
DOCKER-USERiptables chain (see Docker's documentation on packet filtering).
6. Recommended next steps
- Your certificate:
sudo safeaictl tls-install fullchain.pem key.pem. If your identity provider, ServiceNow or webhooks use certificates from an internal CA:sudo safeaictl ca-install ca-bundle.pem. - Single sign-on: Settings, Single sign-on. Register SafeAI as a web application with redirect URI
https://<console address>/auth/sso/callbackand a groups claim; people insafeai-adminsbecome administrators and people insafeai-viewersviewers. Keep one local administrator as a fallback. - Planned changes: so planned work doesn't raise alarms, add maintenance windows in the console, let your change system post them
(
POST /api/v1/planned-changeswith an API token), or let SafeAI read approved ServiceNow change requests. - Keep the keys:
sudo safeaictl key-export /secure/place/safeai-keys.json. Backups don't include the keys that decrypt saved device passwords and make the secret fingerprints; without this file, a restore on a new server needs the passwords entered again and shows every stored secret as changed once. - Monitoring: point your monitoring at
https://<console address>/healthz(HTTP 503 when SafeAI has stopped working; add?strict=1to also get 503 when a check fails), or set a heartbeat URL under Settings, System.
7. The SafeAI appliance (OVA)
The appliance is the same software preinstalled on Ubuntu 24.04 LTS. Import safeai-observe-X.Y.Z.ova into VMware
(vSphere 7 or later) or another hypervisor that imports OVF. Give it 2 CPUs, 4 GB memory and a network adapter on your management
network. It uses DHCP; to set a static address, sign in on the VM console as safeai (the console shows the first-boot
password and the setup code) and run sudo safeai-network. Then continue with section 4.
8. The SafeAI Agent (Windows, Linux, macOS)
Use the agent where SafeAI can't or shouldn't log in (laptops, computers outside the management network), wherever you want the computer's Wi-Fi link and user experience (Network, Wi-Fi and User experience; With the agent and without it lists everything only the agent reads), and wherever you want to see the AI tools: which AI assistants and agent tools are installed or running, which MCP tool servers they can use, whether those configurations hold keys in plain text, settings that let an AI act without asking, and local model servers reachable from the network. The agent collects names and settings only, never prompts, conversations, file contents or the values of keys.
- In the console, Agents, Add computers: choose how long the enrollment code is valid and for how many computers. SafeAI shows one command per operating system and the code (once).
- Run the command as administrator/root on each computer (or put it in your software-distribution tool). It downloads the agent from
SafeAI, checks its SHA-256, enrolls (the agent checks SafeAI's certificate against the CA fingerprint in the command, so a fake
server gets nothing), and starts the service (systemd or OpenRC on Linux, launchd on macOS, a Windows service). On a Linux without either,
installsays so; start/usr/local/bin/safeai-agent runas root from that system's init instead. - The computer appears under Agents and Devices and reports every 15 minutes (change it under Agents, Agent settings).
The agent connects out to SafeAI on TCP 8444 with mutual TLS; it never listens on the network. Its certificate is renewed
automatically 30 days before it ends. Revoke a computer on the Agents page; uninstall with safeai-agent uninstall. If SafeAI's
agent port is reached under another name or address than the one shown, set it under Agents, Agent settings.
Many computers. Make one code for the group (how many computers, how many days, which site) and push the command with your software-distribution tool; try it by hand on one computer of each operating system first. The agent programs are not yet signed by SafeCadence, so Windows SmartScreen and macOS Gatekeeper warn on a manual install and your endpoint protection may need to allow the program. Revoke the code when the rollout is done (How-to guides, Roll the agent out to many computers).
Wi-Fi readings. Windows and macOS need nothing extra. On Linux the agent reads /proc/net/wireless and, where they are
installed, iw and wpa_cli for the fuller reading (frames sent again, missed beacons, channel width, power, how the network is
secured); without them it reports signal only. How the network is secured needs agent 2.4.0 or later.
Approved fixes run on a computer only if its own administrator allowed them there: sudo safeai-agent fixes on (Windows, in an
administrator PowerShell: & "C:\Program Files\SafeAI\safeai-agent.exe" fixes on), or --allow-fixes when enrolling;
fixes off stops them. SafeAI can't change this setting.
9. Network devices: a write account for approved fixes (optional)
SafeAI never writes with the read-only account. For a network device on which you want approved fixes, save a second account that may
configure it and name it on the device: option write_credential=<saved account>.
10. Approved fixes (optional)
Off until an administrator turns it on under Settings, Fixes. Then problems that have a built-in fix show Propose the built-in fix. The fix page shows exactly what will be sent (commands, or the agent action and its parameters), what is done if it doesn't work, and what it can affect. An administrator approves that exact plan and a change window (with two-person approval, the default, someone other than the proposer). In the window SafeAI applies it, reads the device again on its own, and rolls it back if the problem is still there. The window is recorded as a planned change, so the change it makes is "planned". See Administrator guide for the list of built-in fixes.
These pages are the documentation that ships inside SafeAI 2.9.85.1, the version you download. Something unclear or wrong? Tell us.