Repository navigation
install
Pre-Alpha. This page describes behavior that may change.
Build Ze from source or use a privately supplied preview bundle (how to verify and install one). Public release downloads are not available. Start with an isolated lab while Ze is pre-alpha.
| Goal | Guide | Success check |
|---|---|---|
| Exchange routes on one Linux host | Local two-peer quickstart | Both sessions establish and each received RIB contains the opposite prefix. |
| Run a Linux service | Native installation | Authenticated management works and repeat installation retains state. |
| Run a container daemon | Docker Compose | Configuration and login survive container recreation on the same volume. |
| Install a VM or dedicated router | Appliance and ISO installation | Remove the installer media, boot the written disk, and query its version through SSH. |
| Run a protocol topology | netlab | The live check passes adjacencies, kernel routes, traffic between all three nodes and teardown. It last passed on arm64 on 2026-11-14. |
The appliance ISO installation and image update checks passed on amd64 under KVM and on arm64 under HVF. They covered selected-disk ISO installation, preservation of an extra disk, installed-disk SSH access, and an update followed by previous-slot recovery with retained configuration and login. They establish no physical-hardware boot result. The completed Compose recreation check used an earlier runtime image without captured source identity; it does not validate a current-source preview image.
You need a Linux host with:
-
Go, using the release named in the checkout's
go.mod. - Git to clone the repository.
- A modern kernel. Ze programs the FIB through netlink, manages interfaces, and opens raw BGP sockets. Anything from the last few major distributions should work. If you are inside an LXC or a restrictive container, expect trouble with netlink and raw sockets.
macOS and Windows are not supported runtime targets. You can build on macOS for development, but the FIB and interface plugins only do anything useful on Linux.
Clone the repository and compile the daemon:
git clone https://github.com/ze-software/ze.git
cd ze
./ze versionThe launcher builds bin/ze with the checkout's feature gates and patched Go standard library. It is both the daemon and CLI. Building covers custom builds; the Ubuntu build and installation guide covers distribution prerequisites and a manual RBAC setup.
The development binaries are separate builds of the same ./cmd/ze tree under other tags, and you do not need them to run a peer:
-
bin/ze-test. Test helpers: a sink peer that accepts any BGP session, encoding and protocol test fixtures. Built for you by./le functional ...into the running session's own directory. -
bin/ze-chaos. The deterministic chaos orchestrator. Built for you when a chaos suite needs it. -
bin/ze-analyse. Offline analysis tools:go build -tags ze_analyze -o bin/ze-analyse ./cmd/ze.
Check the binary runs and reports a version:
bin/ze versionYou should see a version string and the build commit. If ze version prints nothing or errors out, the build is broken and you should file an issue before going any further.
Install the running binary, initialize absent state and start the systemd service:
sudo ./ze install
systemctl status ze.service --no-pagerThe default binary is /usr/local/bin/ze, with private state in /etc/ze. A fresh installation prompts for management credentials and creates loopback-only SSH access. It does not configure host interfaces. Follow the connection command the installer prints, then run ze doctor and inspect your routing state.
Repeat installation preserves configuration, credentials and compatible service customizations. Select another prefix, foreground operation, or a dry run explicitly:
sudo ./ze install --prefix /opt/ze
sudo ./ze install --no-service
sudo ./ze install --dry-run| Flag | Default | Description |
|---|---|---|
--prefix |
/usr/local |
Installation prefix (binary goes to <prefix>/bin/ze). |
--no-service |
Install for foreground operation without a service. | |
--dry-run |
Print what would be done without making changes. |
The config directory is derived from the binary path: /usr/local/bin/ze and /usr/bin/ze map to /etc/ze, while /opt/ze/bin/ze maps to /opt/ze/etc/ze. Without systemd, installation prints the foreground start command. For separate binary, initialization and service steps, use the manual workflow below; do not initialize an existing service store again.
To upgrade, run the install command of the new build over the existing installation, with the same prefix. From the new build's checkout or extracted preview:
sudo ./ze install
# For an installation under another prefix:
sudo ./ze install --prefix /opt/zeThe installer finds the existing store and keeps it. Configuration and credentials stay, and the first-time setup does not run again. A running ze.service stops. The new binary is written to a temporary file beside the old one and renamed into place while the store's maintenance lock is held, then the service starts again. An inactive service stays inactive. If a step fails, the installer puts the previous binary back and starts the service again if it was running.
The installer checks the selected paths before it changes anything, and refuses without changing anything in these cases:
| Condition | The message says |
|---|---|
| A component of the binary or configuration path is a symbolic link | selected path <path> is a symbolic link; select a real installation path |
| The binary path is not a regular file, or the configuration path is not a directory |
... is not a regular file or ... is not a directory; select a real installation path
|
A ze init --from import did not finish |
existing import artifact <path> requires recovery; complete ze init --from before installing |
| The store is not a private directory | store <path> is not private; restore its mode to 0700 before installing |
A distribution package owns the binary or /etc/ze
|
package-managed installation marker <path> exists; use its package manager to upgrade or remove Ze |
| The command runs without root while a service is in use | service installation requires root; run sudo ze install or use --no-service with a writable --prefix |
ze.service is masked, differs from the policy systemd loaded, or another service definition supplies Ze |
the problem and the systemctl cat, systemctl show or systemctl daemon-reload command to run |
Each refusal starts with Ze install did not finish and names the ze doctor command for the selected configuration directory.
After the upgrade, confirm the new release and the same login:
/usr/local/bin/ze show version
systemctl status ze.service --no-pager
ssh -p 2222 YOUR_USERNAME@127.0.0.1show version answers without the daemon and prints ze <release> (built <date>); it must name the new release. Log in with the same username and password as before. Keep the previous build: to go back, run its install command the same way. Configuration rollback is on Archive and rollback.
Ordinary removal stops and removes the service and executable while retaining configuration, credentials and the service account. A stop failure leaves the binary installed. --purge also removes the selected standalone state. Without --yes, uninstall shows what it will remove and asks for confirmation.
sudo /usr/local/bin/ze uninstall
sudo /usr/local/bin/ze uninstall --purge
sudo /usr/local/bin/ze uninstall --dry-run
sudo /opt/ze/bin/ze uninstall --prefix /opt/zeThe default /usr/local prefix shares /etc/ze with distribution packages. Standalone installation and purge refuse while a package owns that shared state, including with --no-service, and ze uninstall local --purge refuses the same way even when the standalone binary is absent. Remove a packaged installation with its package manager. A custom prefix has its own state directory and can be installed or purged independently.
You can write the systemd unit by hand, or let Ze manage it. A hand-written unit execs ze start <config-file> as a dedicated user with the capabilities it needs (CAP_NET_ADMIN for FIB programming, CAP_NET_BIND_SERVICE if you want BGP on port 179). The Starting and Stopping page has an example unit.
The default ze install already handles a fresh systemd installation. For manual bootstrap and RBAC configuration before first service start, install only the binary, initialize the absent store, then install the service:
sudo ze install local --prefix /usr/local
sudo ze init
sudo ze install systemd --startze install systemd refuses to run unless the live store <config-dir>/database/ exists, and refuses while a daemon owns it. It creates the ze user and group if missing, transfers the config directory, the store and its ownership lock to ze:ze, writes /etc/systemd/system/ze.service (with CAP_NET_ADMIN, CAP_NET_RAW, CAP_NET_BIND_SERVICE, CAP_BPF, NoNewPrivileges, and XDG_RUNTIME_DIR=/run/ze, and with SIGHUP ignored until ze installs its own handler; see Starting and stopping), runs systemctl daemon-reload, and enables the unit. ExecReload sends SIGHUP with the shell's builtin kill (/bin/sh -c 'kill -HUP $MAINPID'), so the unit needs no program beyond /bin/sh and ze. TimeoutStopSec=90 and KillMode=mixed serve the stop drain: ze drains its routing protocols for up to 60 s, then tears down for up to 30 s, and mixed sends the stop SIGTERM to ze alone so it can drain its external plugins first. ze doctor reads the values systemd actually applies, drop-ins included, and warns under doctor-service-stop when either is weaker, and under doctor-service-executable when a program ExecStart or ExecReload runs is missing. Add --start to start it. Use --dry-run to print the unit without root, --config <dir> to override the config directory, and --force to overwrite an existing unit.
Because the unit sets XDG_RUNTIME_DIR=/run/ze, the daemon socket is /run/ze/ze.socket. For local operator CLI access, configure daemon { socket "/run/ze/ze.socket"; } or export XDG_RUNTIME_DIR=/run/ze.
ze uninstall systemd stops, disables, and removes the service unit (--purge also removes the ze user and group). Check status with systemctl status ze.service.
- Quick Start. Initialize credentials, write a config, bring up a peer.
- If you are coming from ExaBGP, read ExaBGP Migration first.
- For bare-metal PXE provisioning of many machines, see Zero-Touch Provisioning.
- For a locked-down single-purpose box, see Appliance.
Adapted from main/README.md.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Install
- Docker
- netlab
- Appliance
- Quick Start
- Use Ze with an AI agent
- ExaBGP Migration
- CLI Tour
- Web UI Tour
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- Backup and Restore
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- Path MTU
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Telemetry
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Link State
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology