Skip to content
zefıly

Getting started

Connect a server

Install the agent with one command, over SSH, or by creating a server at a cloud provider.

Every server you manage runs the Zefily agent. There are three ways to install it.

1. One command on the server

  1. In the panel, open Servers → Add server and give the server a name.
  2. Choose the web stack after setup — nginx or OpenLiteSpeed with PHP, a starter stack, or None (install later).
  3. Copy the install command and run it on the server as root (or with sudo).

The command downloads the installer, checks its SHA-256 fingerprint before running it, verifies the signed agent release and enrolls the server with a one-time token:

curl -fsSL https://dl.zefily.com/install/<fingerprint>.sh -o zefily-install.sh \
  && echo "<fingerprint>  zefily-install.sh" | sha256sum -c - \
  && sudo sh zefily-install.sh --token <one-time-token>

The enrollment token is shown once and expires after a short time. If you need it again or it expired, click New enrollment token on the server page.

For a new cloud server you can paste the Cloud-init user data shown under the command into your provider's "user data" field instead: the agent installs itself on first boot.

2. Install over SSH

If you prefer not to open a terminal, use Install over SSH instead on the same page:

  1. Enter the server address and SSH port, then Read host key.
  2. Compare the fingerprint with the output of the command shown (run it on the server, or in your provider's console) and confirm it matches.
  3. Enter the SSH user and a private key or password, then Install the agent.

Zefily connects once from its gateway and runs the same installer. Your password or key is used for this install only: never stored, logged or shown again. Users other than root need sudo.

3. Create the server at a cloud provider

Connect your provider account under Settings → Cloud providers (Hetzner, DigitalOcean, Vultr, Akamai Linode, AWS EC2 — see Integrations). Then choose Servers → Add server, pick the account, region, size and system, and Create server. Each region lists only the sizes the provider can deliver there right now (its stock information, refreshed every ten minutes); a size sold out everywhere is not shown. The provider bills the server as usual; the agent installs itself on first boot and the server appears online in about two minutes.

Choose the SSH keys first. The create form lists the keys in your SSH key vault (Settings → SSH keys). Tick the key you will sign in with, or open Add a key to your vault, paste the public key, and it is saved and selected. The chosen keys are sent to the provider with the create and installed for root on the new server, so you can sign in with your own key at once. Creating a server needs at least one key, unless you take the no-key option below.

Connecting your own server. When you add a server yourself, the form asks how Zefily signs in: Add the keys I choose to root (pick them from your vault or add one there; the keys are added by a job you approve with your passkey, before the baseline setup hardens SSH, and password login is turned off once a key works) or Leave SSH as it is (Zefily changes no SSH login setting on that server). Keys are only ever appended: existing lines in authorized_keys stay as they are. A newer agent release is needed for the key step; until it is out the form says so.

No key, on purpose. Hetzner, Vultr and Linode can create a server without a key and return an initial root password. For those, tick I do not want an SSH key; keep password login on. The password is shown once, in a dialog right after the create, and Zefily does not keep it anywhere (not in the session, the logs or the database), so copy it at once. Vultr keeps it available for ten minutes after deployment. Password login then stays on, and the server page warns you until you add a key. DigitalOcean and AWS offer no such option: their APIs give no initial password, so a key is required there.

Servers created this way also get Take a snapshot, Power-cycle at the provider and, when you delete them, the option to destroy the virtual machine too.

Import a server that already runs at your provider

Under Servers → Add server → Import an existing one, pick the account: its servers are listed with their name, address, region, size and system. Import adds one to the panel, linked to the provider (snapshots, power-cycling, reinstalling and floating IPs then work through it). A running server cannot take new first-boot settings, so its page shows how to install the agent: run the one-line command on it, or let Zefily install it over SSH. A server already in the panel shows Open instead.

After enrollment

Within a minute the server shows Online. Zefily then runs automatically:

  • Pre-flight checks: systemd, architecture, free disk, memory, virtualization, other control panels and ports already in use. Blockers and warnings appear on the server's overview.
  • Baseline setup: time sync, journald limits, kernel hardening, swap, automatic security updates (reboot window 04:30), SSH hardening and the default firewall.
  • Web stack, if you chose one. A starter stack also installs its database, object cache and Node.js (see below).
  • A daily backup plan for all sites and databases on the server — see Backups.

Starter stacks

Starter stack Installs Then
High-traffic WooCommerce nginx with page cache, PHP 8.5, MariaDB, Valkey object cache (512 MB) Add a WordPress site and turn on its page cache: carts, checkout and logged-in visitors are skipped automatically
Laravel + Horizon + Redis + MySQL nginx, PHP 8.5, MariaDB (MySQL compatible), Valkey (Redis compatible, 256 MB), Node.js 24 for Vite builds Add a Laravel site from Git; run Horizon as a site worker
Next.js + PostgreSQL nginx as the front proxy, Node.js 24, PostgreSQL Deploy a Next.js app from Git; other Node apps (Nuxt, SvelteKit, Astro, Express…) run on it too

Each part is installed with the same jobs as on the server page, so you can change or remove any of them later.

See The server page for what you can do next.

Resources from an earlier install

A server that was used with another Zefily account can still hold sites, databases, cron jobs and daemons from that earlier install. Zefily does not take them over by itself. Once the agent is up to date, the server page shows Found on this server from an earlier install, with each user, site folder, database, cron job, daemon and firewall port it found and does not own.

  • Leave as it is: nothing changes. Zefily will not create, reset or reuse an item with the same name.
  • Adopt: the item is taken over. The job needs your passkey approval. For a database you type the owner's new password, which resets the owner's password on that database. Once the job succeeds the database appears under Databases with that owner, as a database created in Zefily does. Nothing is sent to the old account.
  • Users, site folders, cron jobs and daemons are read from the server's own configuration and, once adopted, appear in the server's lists as records of their own: a Linux user under Users (with sudo access when Zefily granted it), a PHP or static site under Sites (its domain, aliases, web root, TLS and PHP version as the server has them), a cron job and a daemon with their schedule or processes and command. Adopting does not rewrite their configuration on the server, so the sites keep serving as they do. Zefily does not show an item it cannot read safely. It stays in the list with the reason: an app or proxy site, a site served by OpenLiteSpeed, a login shell other than bash, sh or nologin, or a cron or daemon command that may hold a password, token or key. Recreate such an item in Zefily instead, where the secret is typed in. A cron job whose schedule cannot be shown in Zefily's form stays as it is too. A name that Zefily already has in the panel is not recorded twice.
  • Firewall ports from the earlier install stay open, because the server keeps the rules until you decide. Open the port under Firewall to keep it in the panel's rules, or choose Remove to close it. The SSH port of the earlier install is never kept open this way: SSH follows the sources set in Zefily.

If a Zefily action stops with "already exists on this server", the name is taken by something Zefily did not create. Adopt it, or choose another name.

Organizing many servers

On the Servers page you can add tags, move servers into groups (Manage groups) and select several servers to run bulk actions: ping, refresh status, check updates or install security updates on all of them at once.

Removing a server

  • Remove the agent (on the server's overview, needs your passkey) uninstalls only the agent; everything it set up keeps running. See Leaving Zefily.
  • Delete this server removes it, its settings and job history from Zefily. If the machine keeps running, the agent stays on it until you run sudo zefily-agent uninstall there (the panel shows the command). See Leaving Zefily.
  • Moving a server to another account: uninstall the agent on the server first (sudo zefily-agent uninstall), then run the new account's install command. The installer refuses a server that is still enrolled.

Reconnect a server after removing its agent

If you removed the agent, or the server was reinstalled, the server page shows Reconnect the agent while the server is offline. Run the command it shows on the server, as root: the agent enrolls again and the server keeps its sites, settings and job history. The command works the same as the first install, and the token expires after a short time; click New enrollment token there if it has expired. Only people who can operate the server see this.

Updated November 28, 2026 View as Markdown llms.txt

Still stuck?

Open a ticket from your panel or write to us; we answer within a day.

Contact →

Runs the stacks you already use

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →