№ 03 · Projects · active

Discord Stay Online

Self-hosted Discord presence service with web UI — maintain online/idle/dnd status via Gateway WebSocket.

Created
Stack
GoWebSocketPostgreSQLDocker
Source
pyyupsk/discord-stayonline

A self-hosted service that maintains your Discord presence status (online, idle, or DnD) through the Gateway WebSocket. Includes a web UI for configuration and monitoring, automatic reconnection with exponential backoff, and Docker support for single-binary deployment.

Why this exists

Discord doesn't provide a built-in way to keep your status persistent across sessions or to automatically set yourself as online when you're away from your computer. This service solves that by maintaining an active WebSocket connection to Discord's Gateway, keeping your presence status exactly where you want it.

Features

  • Web UI — configure and monitor your Discord presence from a browser
  • Auto-reconnection — exponential backoff ensures stable connection
  • Docker support — single-binary deployment with minimal configuration
  • Multiple statuses — set yourself as online, idle, or DnD

Usage

docker run -d \
  --name discord-stayonline \
  -p 8080:8080 \
  -e DISCORD_TOKEN=your_token_here \
  -e API_KEY=your_api_key \
  ghcr.io/pyyupsk/discord-stayonline:latest

After deployment, access the web UI at http://localhost:8080 to configure your Discord token and desired status.