Installation
One-command install
Open the public installation command. Everyone uses the same command to install AiHummer with the free Community license. Copy the complete command and run it on your server. The installer verifies the release signature. You can link the instance to your account after installation.
[!NOTE] The installation command appears on the download page when the verified signed release is available.
Linux (x86_64 / arm64) · systemd · PostgreSQL (pgcrypto) · System Requirements
Find the instance UUID in Core Web UI → General settings → License. Connect this installation: sign in, enter that UUID, and approve the request in Core Web UI as the local owner.
AIHUMMER_PUBLIC_TLS_CERT_FILE + AIHUMMER_PUBLIC_TLS_KEY_FILE: HTTPS can be served by the gateway with a certificate/private-key pair or by your reverse proxy. An invalid configured pair never falls back to plain HTTP. Before approving a private certificate in the app, compare its SHA-256 fingerprint with the trusted installation terminal.
Web UI, apps and channels share one public server address. Open the public address printed by the installer; the local default is http://localhost:8780/. The port selected during installation may differ.
Sign in with the administrator login and password chosen in the installation wizard. If installation generated initial credentials instead, use its final summary; the private etc/initial-admin-password.txt file belongs only to that bootstrap path. Do not share credentials.
Install root layout
Everything lives under one directory. Which one depends on how you ran the installer:
| How you installed | Install root | Configuration | Service runs as |
|---|---|---|---|
Normal install (with sudo) |
/home/.aihummer |
/etc/aihummer/gateway.env |
A dedicated aihummer service account |
| Without root (rootless) | ~/.aihummer |
~/.aihummer/etc/gateway.env |
Your own user |
A normal install does not put files in your home directory and does not
run the service as you: it creates a dedicated unprivileged aihummer user.
That is deliberate — compromising the service does not hand an attacker your
personal files.
The layout inside the root is the same in both modes (a normal install shown):
/home/.aihummer/
├── bin/ gateway binary and the aihummer CLI
├── etc/ configuration (gateway.env)
├── share/ static assets for the administration interface
├── sidecars/ optional STT/TTS/etc services
├── plugins/ installed marketplace plugins
├── systemd/ unit files (symlinked into /etc/systemd/system)
├── state/ runtime state
├── data/ blob/media storage
└── logs/ service logs
The systemd unit files generated into systemd/ are symlinked into
/etc/systemd/system/, so they are managed with regular systemctl commands.
Rootless install
sudo/root privileges are not required. If you run the install command
without sudo, the installer switches to rootless mode: units are registered
in the systemd --user scope (files in ~/.config/systemd/user), the
aihummer CLI and cosign land in ~/.aihummer/bin, and if
AIHUMMER_DATABASE_URL is not set the installer provisions a user-mode
PostgreSQL cluster inside the install root. Services are managed with
systemctl --user .... To have the services start at host boot (not only at
user login), enable lingering:
loginctl enable-linger $USER
Sidecar selection
The lightweight media sidecars — STT (faster-whisper), TTS (edge-tts) and
video — install out of the box, with no questions or flags: round-trip voice
works immediately. Any of them can be disabled with the environment variables
AIHUMMER_SKIP_STT=1, AIHUMMER_SKIP_TTS=1, AIHUMMER_SKIP_VIDEO=1.
Web search (SearXNG) and the browser (CloakBrowser) are baked into the signed bundle and install offline by default — the installer no longer asks about them. Flags override that — this is the full list:
| Flag | Effect |
|---|---|
--no-search / --no-browser |
Skip this sidecar |
--external-search=URL / --external-browser=URL |
Use an existing service at this URL instead of installing |
--browser-engine=cloak|chrome |
Browser engine (default cloak) |
--with-search / --with-browser |
Redundant since v1.0.14 — this is already the default |
--with-embedder |
Install the semantic embedder (opt-in: pulls PyTorch — hundreds of MB) |
Search and browser install without a tty too: their payloads come from the
bundle, so no internet access is needed for them. Both installs fail open —
a missing payload or an unsupported Python version leaves the service
unconfigured and never aborts the install. The embedder can
also be enabled with AIHUMMER_WITH_EMBEDDER=1; without it memory runs on
lexical fallback search. The UI language is set by AIHUMMER_LANG=ru|en
(otherwise the installer asks on a tty). The PostgreSQL connection is prompted
on a tty; for non-interactive installs set AIHUMMER_DATABASE_URL in advance.
On a tty the installer also offers restore from a backup.
Because sidecars are addressed by URL, you can freely mix native and external ones and point several gateways at one shared sidecar.
How the build’s authenticity is checked
Every artifact — for the first install and for every update alike — arrives as a
tarball for your architecture, accompanied by a .sha256 checksum and a .sig
(cosign) signature. The installer verifies both before it unpacks anything.
You never have to verify them by hand.
Expected result: the checks pass silently and the install continues. If either one fails, the installer stops with an error and leaves the running version untouched — a corrupted or substituted file never reaches your server.
Verify the installation
After the installer finishes, check the service and the readiness endpoint:
systemctl status aihummer-gateway
curl -fsS http://localhost:8780/healthz
curl -fsS http://localhost:8780/readyz
/healthz reports liveness and version; /readyz checks PostgreSQL and returns
503 while the database is unreachable. The bundled aihummer CLI also
provides aihummer status and aihummer doctor for a quick health overview.
What you’ll see after a successful install: the aihummer-gateway service in
active (running), a 200 from /healthz and /readyz, and the initial admin
password in /home/.aihummer/etc/initial-admin-password.txt (only if initial credentials were generated automatically) (on a rootless install, ~/.aihummer/etc/initial-admin-password.txt (only if initial credentials were generated automatically)) for
first login.
Production checklist
A single install command gets the gateway running, but it is not yet production-ready. Before exposing it, complete:
-
HTTPS can be served by the gateway with a certificate/private-key pair or by your reverse proxy. An invalid configured pair never falls back to plain HTTP. Before approving a private certificate in the app, compare its SHA-256 fingerprint with the trusted installation terminal.
-
🔴 Enable WebSocket support on the reverse proxy. The mobile and desktop app connects to the gateway over
wss://, so the proxy must pass theUpgradeandConnectionheaders through. A proxy without it answers with an ordinary page and status 200 instead of101 Switching Protocols— the app reads that as “the service is not responding”, while the gateway is healthy and its log shows no error at all. In Nginx Proxy Manager this is the Websockets Support toggle on the Proxy Host; in plain nginx it isproxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";plusproxy_http_version 1.1in thelocationblock.One command to check it (expect
101, not200):curl -s -o /dev/null -w '%{http_code}\n' \ -H 'Connection: Upgrade' -H 'Upgrade: websocket' \ -H 'Sec-WebSocket-Version: 13' -H 'Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==' \ https://your-domain/ -
Change the admin password and delete
initial-admin-password.txt(only if initial credentials were generated automatically); set an auth issuer (AIHUMMER_OIDC_ISSUER/ LDAP / SAML) before exposing/v1/admin/*. -
Back up the master key and database — record
AIHUMMER_MASTER_KEY(secrets are unrecoverable without it) and set up regular PostgreSQL backups. -
Connect a real model provider to receive working answers. A paid API key is not required: use a local OpenAI-compatible model, a supported subscription, or your own API key. If no provider is configured, the error is:
No AI model provider is configured yet — add one in the Models section -
Connect at least one channel (Telegram to start) and bind an agent to it.
See First login, Configuration and Backups & DR for the details.
If it didn’t work
- “unsupported architecture” — the install supports Linux x86_64 and arm64; there is no bundle for other platforms.
/readyzreturns503— the gateway can’t see PostgreSQL. CheckAIHUMMER_DATABASE_URL, database reachability, and that thepgcryptoextension is created (CREATE EXTENSION IF NOT EXISTS pgcrypto;).- The service didn’t start — inspect
systemctl status aihummer-gatewayandjournalctl -u aihummer-gateway; for a quick diagnosis runaihummer doctor. - Installed without sudo, services stop after logout — enable lingering:
loginctl enable-linger $USER(see rootless). - Signature verification failed — do not proceed with the install; retry later
or get a fresh link. The artifact is always verified against its
.sha256and cosign.sig.
Where to next
- First run: see First login to retrieve
the initial admin password from
/home/.aihummer/etc/initial-admin-password.txt(only if initial credentials were generated automatically) (on a rootless install,~/.aihummer/etc/initial-admin-password.txt(only if initial credentials were generated automatically)). - Tune the deployment: read Configuration.
- Want a guided first run? Use the Quickstart.