Docs / Getting started

Install central

Central is one Go binary and a PostgreSQL 16+ database. The web UI is a small Node app next to it. Pick Docker to try it, the apt packages or the NixOS modules for production. Every download is signed: see downloads and verification.

Try it with Docker

Docker with the compose plugin, on Linux or macOS, amd64 or arm64:

mkdir uptight && cd uptight && curl -fsSLO https://uptight.io/compose.yaml
docker compose up -d
docker compose logs uptight | grep setup_url

This starts PostgreSQL, central and the web UI on http://localhost:8091, with built-in sign-in. The first start writes server.yaml, the web UI's settings, the database password and every token and secret key into the etc volume; later starts never change them. Open the setup_url within the hour to make the first admin, admin: choose a password and set up two-factor. For another name, or once the hour is over: docker compose exec uptight uptight users setup-link --admin <your-name>. From another machine: ssh -L 8091:localhost:8091 <this host>.

From a checkout of the repository, make up starts a development stack instead, with fixed, public dev secrets: for hacking on Uptight only.

Ubuntu and Debian packages

The apt repository

apt.uptight.io serves one package per architecture for every Ubuntu (18.04 and later) and Debian (12 and later) release: uptight and uptight-agent for amd64 and arm64 (the agent also for armhf), uptight-web for all. apt checks every package against the repository's signed index.

sudo install -d -m 0755 /usr/share/keyrings
curl -fsSL https://uptight.io/uptight-archive-keyring.gpg | sudo tee /usr/share/keyrings/uptight-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/uptight-archive-keyring.gpg] https://apt.uptight.io stable main" | sudo tee /etc/apt/sources.list.d/uptight.list
sudo apt update

The packages depend on uptight-archive-keyring, which then owns that key file and keeps it current. Agents installed from the package upgrade through apt, from this source.

To build the packages yourself instead (for your own apt repository): make ubuntu SIGN=no and make ubuntu-web SIGN=no; see the README.

Install

As root:

apt install postgresql
sudo -u postgres createuser -P uptight && sudo -u postgres createdb -O uptight uptight
apt install uptight uptight-web

Set database_url in /etc/uptight/server.yaml, then check the config and start:

uptight validate --secrets-file /etc/uptight/secrets.yaml /etc/uptight/config
systemctl restart uptight
timeout 60 sh -c 'until curl -sf localhost:8090/healthz; do sleep 1; done'   # ok (migrations run before it listens)

The package writes a generated api_token, one agent enrollment token named default, one MCP token named default, and an auth: block that turns on built-in sign-in: mode: native, a generated secret_key and a relay token for the web UI named web (auth.web_tokens). Keep them secret, and back up the secret key: it seals the two-factor secrets. Until server.yaml is valid, the service exits with status 78 and stays stopped; journalctl -u uptight names the key.

public_url in server.yaml is uptight-web's address as the browser shows it; uptight-web reads it, and how people sign in, from central. A new install has http://localhost:8091, which works on that host and through an SSH tunnel. Alert and sign-in links point at it.

The web UI

uptight-web needs Node 18.19 or later. Ubuntu 24.04 and later and Debian 12 and later ship a new enough Node; on Ubuntu 22.04, install Node 18.19 or later from NodeSource first (22.04's own nodejs is 12).

systemctl restart uptight-web
timeout 30 sh -c 'until curl -sf localhost:8091/healthz; do sleep 1; done'    # ok once central has answered
curl -s -o /dev/null -w '%{http_code}\n' localhost:8091/   # 303 to the sign-in page

/etc/uptight/web.env has two keys: UPTIGHT_API_URL (central's API) and UPTIGHT_WEB_TOKEN, uptight-web's relay token. On the same host as central the package fills the token in for you. On another host, set both. The relay token reads only the sign-in endpoints and the public status pages on its own, so the web host holds no admin credential. Everything about sign-in (auth.mode, public_url, the proxy's settings) is in central's server.yaml: uptight-web reads it from central and follows a change within a minute. Until central answers, uptight-web shows a "starting" page and its log says why.

The first admin

With no admin yet, central logs a one-time setup link for the user admin, valid 1 hour:

sudo journalctl -u uptight -o cat | grep setup_url    # or /var/log/uptight/uptight.log
sudo uptight users setup-link --admin <your-name>   # or make one: prints http://localhost:8091/auth/setup#…

Open the link within the hour, on that host or from your computer through ssh -L 8091:localhost:8091 <central-host>, choose a password and set up two-factor. The logged link is a credential: anyone who can read central's log can use it until then (auth.local.bootstrap.enabled: false turns it off). Details are in Built-in sign-in.

Other machines on your network

Set public_url: https://<this host's address>:8091 in server.yaml and UPTIGHT_WEB_LISTEN=0.0.0.0:8091 in web.env, then systemctl restart uptight uptight-web. uptight-web serves https itself on that port, with a self-signed certificate it keeps in /var/lib/uptight-web; it logs the certificate's fingerprint (journalctl -u uptight-web -o cat | grep sha256) to compare with the browser's warning. Plain http on the port redirects to https. Your own certificate: UPTIGHT_WEB_TLS_CERT and UPTIGHT_WEB_TLS_KEY. Behind your own TLS reverse proxy, set public_url to its address instead; a proxy that speaks plain http to a uptight-web on a network address must send X-Forwarded-Proto: https, or set UPTIGHT_WEB_TLS=off. Plain http on a LAN is a last resort: auth.allow_http: true in server.yaml; admins then see a banner that passwords cross the network unencrypted.

Or your single sign-on proxy

To have your SSO proxy sign people in instead (header mode), set auth.mode: header in the auth: block of server.yaml and restart uptight; uptight-web follows. uptight-web then has no login of its own and trusts the identity header (auth.header.identity_header, X-Forwarded-User by default) for who is acting. It still needs its relay token. Central records each person the proxy names as a user with a role; see Users and roles. Keep uptight-web on 127.0.0.1:8091 (UPTIGHT_WEB_LISTEN), set auth.header.proxy_addrs in server.yaml to the proxy's address so nothing bypasses it, and set public_url to its browser-facing URL: that turns on the Origin check for forms behind the proxy.

In header mode without a proxy, everyone who reaches uptight-web is the admin user web. See Without a sign-in proxy, everyone is admin, or stay with built-in sign-in.

Public status pages are off until you set UPTIGHT_WEB_STATUS_LISTEN in web.env, for example 127.0.0.1:8092. It must differ from UPTIGHT_WEB_LISTEN. It is the only listener meant for the internet: put a TLS reverse proxy on its own hostname in front of it.

Your first config

Checks, channels and alert rules are YAML in /etc/uptight/config (or a git repository set as config.git in server.yaml). The package installs a starter file with one check. A minimal setup:

checks:
  - name: www
    type: http
    env: prod
    severity: critical
    url: https://www.example.com/

channels:
  - name: slack-ops
    type: slack
    webhook_url: ${secret:slack_alerts_url}

alert_rules:
  - name: everything
    channels: [slack-ops]

For phone pushes without Slack, add an ntfy channel: type: ntfy and topic: ${secret:ntfy_topic} (an unguessable topic on ntfy.sh), or server: for your own ntfy server with token: ${secret:ntfy_token}. Install the ntfy app, subscribe to the topic, and set public_url in server.yaml so a tap opens the incident.

Secrets go in /etc/uptight/secrets.yaml as name: value lines and are referenced as ${secret:name}. After an edit, run uptight validate; central picks the change up on its next config poll, or at once with Settings → Config → Reload now. A check you add or change holds its alerts for 5 minutes (config_quiet) so a mistake doesn't page anyone.

Ready for agents

NixOS

The flake has NixOS modules that run central and uptight-web the way the debs do: the same ports, config keys and state directories, and built-in sign-in by default. Add the flake as an input (inputs.uptight.url = "github:uptight-io/uptight/<rev>", pinned to a release commit), then:

{
  imports = [ inputs.uptight.nixosModules.default ];
  services.uptight = {
    enable = true;
    database.createLocally = true;       # PostgreSQL 16+
    enrollmentTokenFile = config.sops.secrets.uptight-enrollment-token.path;
    configDir = ./uptight-config;        # or settings.config.git = { url = ...; }
    settings.public_url = "https://uptight.lan:8091";   # default http://localhost:8091 with uptight-web on loopback
  };
  services.uptight-web = {
    enable = true;
    listen = "0.0.0.0:8091";             # serves https itself (a self-signed certificate)
    openFirewall = true;
  };
}

Then open the first admin's setup link from the journal, or make one:

journalctl -u uptight -o cat | grep setup_url
sudo uptight-hub users setup-link --admin <your-name>

For the agent module, see the agent on NixOS.

Upgrading to a paid plan

Team, Business and Enterprise run the Pro build of central and the web UI: a separate, public build that replaces uptight and uptight-web in place, with the same server.yaml, database and agents. It is published under the Uptight commercial license and unlocked by your license key (the Pro channel).

apt: add the pro component, install, and put the key in place:

sudo sed -i 's/ stable main$/ stable main pro/' /etc/apt/sources.list.d/uptight.list
sudo apt update && sudo apt install uptight uptight-web
sudo install -m 0640 -o root -g uptight license.key /etc/uptight/license.key
sudo systemctl restart uptight uptight-web

The Pro packages (<version>-0uptight1+pro1) win over Community's of the same version, and upgrade with apt upgrade as before. To go back, take pro out of the source first (otherwise the next apt upgrade installs Pro again), then downgrade:

sudo sed -i 's/ stable main pro$/ stable main/' /etc/apt/sources.list.d/uptight.list
sudo apt update && sudo apt install --allow-downgrades uptight=<version>-0uptight1 uptight-web=<version>-0uptight1

Docker: set UPTIGHT_EDITION=-pro in .env (compose.yaml then runs the Pro images of the same release, also pinned to their signed digests), store the key, and restart:

docker compose run --rm -T init set-license < license.key
docker compose up -d

Elsewhere: the Pro tarballs are at https://downloads.uptight.io/pro/<version>/. Put the license key in UPTIGHT_LICENSE, a file named by UPTIGHT_LICENSE_FILE, or /etc/uptight/license.key (looked up in that order), then restart.

A missing, invalid or expired license never stops the server: it runs as the Community edition and says why in central's log (journalctl -u uptight) and in GET /api/v1/edition, and the web UI shows a notice. An expired license keeps working for 14 days. The license is checked again every day, so a renewed key takes effect without a restart (high availability and vulnerability scanning change at the next restart).