Connect a server, VM or cloud machine

One terminal command puts any machine on your network.

Get an invite

In the web interface open the connection map, choose Add device, pick what the machine is, give it a name and press Create invite. You get an invite key (bhi_…) and ready-made commands. An invite admits one machine without approval or password, even while you are offline, and works until you remove that device or destroy the session. The key is shown once; if it leaks, remove the device from the map to revoke it.

Linux, macOS and FreeBSD

Run this on the machine (over SSH, in a cloud serial console or a web terminal). It needs only curl or wget:

curl -fsSL 'https://api.zero-portal.com/install.sh' | sh -s -- --invite 'bhi_…' --name 'web-1' --kind server
OptionMeaning
--inviteThe invite key from the map (required to join).
--nameThe name shown on the map.
--kindserver, vm, cloud, database, container, terminal, desktop or laptop.
--dirInstall directory. Default /usr/local/bin as root, otherwise ~/.local/bin.
--no-runOnly install the agent; do not join.

The script detects the operating system and CPU, downloads the matching binary from this server, checks its SHA-256 checksum (this catches a corrupted download; it does not prove the server itself is trustworthy, so only install from a server you trust, over HTTPS), installs it and starts zero-agent join. Press Ctrl+C to leave. To keep it running, use the service below.

Windows

In PowerShell (no administrator rights needed):

irm 'https://api.zero-portal.com/install.ps1' | iex
& "$env:LOCALAPPDATA\Zero Portal\zero-agent.exe" join --server 'https://api.zero-portal.com' --invite 'bhi_…' --name 'build-pc' --kind server

Keep it running (systemd)

Put the invite in an environment file and let systemd restart the agent. The agent already reconnects by itself after network drops and server restarts; the service covers reboots and crashes.

ZERO_SERVER=https://api.zero-portal.com
ZERO_INVITE=bhi_…
ZERO_NAME=web-1
ZERO_KIND=server
[Unit]
Description=Zero Portal agent
After=network-online.target
Wants=network-online.target

[Service]
EnvironmentFile=/etc/zero-agent.env
ExecStart=/usr/local/bin/zero-agent join --dir /var/zero/inbox --outbox /var/zero/outbox
Restart=always
RestartSec=5
User=zero
StateDirectory=zero-agent
Environment=ZERO_STATE_DIR=/var/lib/zero-agent

[Install]
WantedBy=multi-user.target
sudo useradd --system --create-home --home-dir /var/zero zero
sudo systemctl daemon-reload
sudo systemctl enable --now zero-agent
journalctl -u zero-agent -f

Docker

The same agent as a container. Received files land in the zero-inbox volume.

docker run -d --name zero-agent --restart unless-stopped \
  -e ZERO_SERVER='https://api.zero-portal.com' \
  -e ZERO_INVITE='bhi_…' \
  -e ZERO_NAME='api-container' \
  -e ZERO_KIND=container \
  -v zero-inbox:/inbox \
  zero-agent

Build the image from zero-server/Dockerfile.agent in the project, or use the Docker tab in Add device.

AWS, Google Cloud, Azure and other providers

Zero Portal does not care where a machine lives. If you can open a terminal on it, you can join it: the provider’s browser SSH or serial console, ssh, Session Manager, gcloud compute ssh, az ssh vm, a Kubernetes exec shell. Run the install command and the machine appears on your map.

The only network requirement is an outbound HTTPS/WebSocket connection to this server’s address.

One invite, one machine

Do not run two agents with the same invite at once: the second replaces the first. Create another invite for each machine, and one more if you want to run a one-off send while a daemon is up.