selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Gotify logo

Self-host Gotify

v3.1.1

Real-time push notification server with REST API and web UI

ReleaseOpen SourceMIT
docker run -p 80:80 -v /var/gotify/data:/app/data gotify/server
Updatedlast month
LanguageGo
Setup difficultyEasy
Stars
16 207
Ports
80 (HTTP server listener), 443 (HTTPS listener when SSL is enabled)
Docker
gotify/server
Gotify web UI showing the list of received messages

What is Gotify?

Gotify is a notification server you run on your own hardware: applications push messages to it through an HTTP REST API while clients subscribe to the message stream over WebSocket, so a push shows up right away in the built-in web UI or in the companion Android app. It handles three kinds of accounts itself — users, client tokens for readers and application tokens for senders — all created and managed from the web interface, with optional public registration for new accounts. Every message carries a priority (0 to 10) that clients use to decide how intrusive the notification is, and an extras field can switch rendering to Markdown, attach a click URL or tune notification behaviour. Login can be delegated to an OpenID Connect provider (PKCE required) with local passwords switchable off, and sensitive actions such as deleting an application or changing a password need a re-authenticated session. TLS is served by the app itself, from your own certificate files or via Let's Encrypt. The Go server ships as a multi-arch container image and as binaries for Linux and Windows, uses SQLite out of the box and can talk to MySQL or PostgreSQL instead. Optional plugins (Linux and macOS only) add custom HTTP handlers, webhook receivers or polling feeds, and an optional MCP endpoint at /mcp lets AI agents push a notification to you with an application token.

Gotify alternatives

Should you self-host Gotify?

Gotify scores 73/100 on selfhost.directory (how scoring works) and ranks #3 of 20 in Notifications. It has 16 207 GitHub stars, +158 in the last 30 days.

It shipped 6 stable releases in the past year. The latest, v3.1.1, came out on 15 September 2026. New versions land roughly every 6 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is ntfy (85/100, 35 536 stars). It scores higher overall, so compare the two before you pick. See Gotify vs ntfy side by side.

Features

  • Built-in HTTPS with Let's Encrypt
  • MCP endpoint for AI agents
  • Message extras (Markdown, click URL)
  • Message priorities
  • OpenID Connect single sign-on
  • Optional public user registration
  • Plugin SystemLinux and macOS only
  • Push messages via REST API
  • Real-time delivery over WebSocket
  • Session elevation for sensitive actions
  • User, client and application management
  • Web UI

Gotify README

gotify/server

Build Status codecov Matrix Docker Pulls latest release

Intro

We wanted a simple server for sending and receiving messages (in real time per WebSocket). For this, not many open source projects existed and most of the existing ones were abandoned. Also, a requirement was that it can be self-hosted. We know there are many free and commercial push services out there.

How to install Gotify

Install Gotify with Docker

Environment variables
TZ, GOTIFY_DEFAULTUSER_PASS
$ docker run -p 80:80 -v /var/gotify/data:/app/data gotify/server
# or via GitHub registry
$ docker run -p 80:80 -v /var/gotify/data:/app/data ghcr.io/gotify/server

The image is multi-arch (amd64, i386, arm64, armv7, riscv64). /app/data holds the database file, uploaded images and certificates, so mount and back it up.

How to configure Gotify

  • GOTIFY_LOGLEVELMinimum severity of log messages to emit. Values: trace, debug, info, warn, error, fatal, panic
  • GOTIFY_SERVER_KEEPALIVEPERIODSECONDSInterval in seconds between TCP keepalive probes on accepted connections. !! Only change this if you know what you are doing. Example: 0 uses the Go default (15s) Example: -1 disables keepalives entirely. Type: number
  • GOTIFY_SERVER_LISTENADDRThe network address the HTTP server binds to. Leave empty to listen on all interfaces (both IPv4 and IPv6). Prefix with "unix:" to listen on a Unix domain socket instead of a TCP port. Type: text Example: 192.168.178.2 Example: unix:/tmp/gotify.sock
  • GOTIFY_SERVER_PORTPort the HTTP server listens on. Type: number
  • GOTIFY_SERVER_SSL_ENABLEDEnable the HTTPS listener. Requires either CERTFILE+CERTKEY or LETSENCRYPT_ENABLED=true. Type: boolean

Gotify releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Notifications

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…