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.

openGym logo

Self-host openGym

v1.4.4

Gym & body-weight tracker with passkey sign-in

ReleaseOpen SourceAGPL-3.0
Docker ComposeCompose file & guide
docker compose up -d
Updatedlast week
LanguageJavaScript
Setup difficultyEasy
MobileNative app
ThemeDark mode
Stars
21 268
Ports
80 (Web UI inside the web container (nginx); published as WEB_PORT 8080 on the host), 3000 (Node API, reached through the web container's /api proxy)
Docker
ghcr.io/duartesantos8/opengym-web
Home screen: the week at a glance, today's session and body-weight chartGuided workout screen with sets, rest timer and pre-filled weightsStats screen with the activity heatmap and chartsWeekly plan screen with a routine per weekdayExercise library with search and filters

What is openGym?

openGym alternatives

Should you self-host openGym?

openGym scores 80/100 on selfhost.directory (how scoring works) and ranks #1 of 11 in Fitness Tracker. It has 21 268 GitHub stars, +7 099 in the last 30 days.

It shipped 13 stable releases in the past year. The latest, v1.4.4, came out on 3 November 2026. New versions land roughly every 3 days.

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

Its closest alternative on selfhost.directory is SparkyFitness (66/100, 6 784 stars). openGym scores higher overall. See openGym vs SparkyFitness side by side.

Features

  • AI coachOff by default; needs an admin toggle and, for in-container runtimes, the coach image target.
  • Body-weight tracking
  • Estimated 1RM and strength ratios
  • Exercise library with animated demosMedia ships inside the web image; its licence covers use in openGym only.
  • Guided workout logging
  • Internationalization
  • JSON export of all data
  • MCP ServerOptional and not part of the Docker build.
  • Multi-device Sync
  • Multi-user instance with admin dashboard
  • Muscle volume and fatigue map
  • Offline Support
  • Progression rules
  • Push Notifications
  • Weekly routine planning

openGym README

Why openGym

Most workout apps keep your data on their servers, push you towards a subscription, or vanish when the company does. openGym runs on your own box, keeps your data in a folder you control, and is yours to fork. It still behaves like a modern app: installable on the home screen, passkey sign-in, works offline, syncs between your phone and your laptop.

No account on someone else's server, no subscription, no ads, no telemetry. One docker compose up and it's running.

How to install openGym

Install openGym with Docker Compose

Docker with the Compose plugin
Environment variables
RP_ID, ORIGIN, WEB_PORT, NGINX_PORT, PORT, BACKEND
git clone https://github.com/DuarteSantos8/openGym
cd openGym
cp .env.example .env
docker compose pull      # prebuilt images, amd64 + arm64 (skip this to build from source)
docker compose up -d

Open http://localhost:8080 and create a profile; HTTPS on a real hostname is needed to use passkeys from a phone. The same images are also on GitLab's registry, or build locally with docker compose up -d --build.

How to configure openGym

  • RP_IDlocalhostHostname passkeys are bound to
  • ORIGINhttp://localhost:8080Full URL the app is served from
  • WEB_PORT8080Host port for the web UI
  • NGINX_PORT80Port the web container listens on inside the container
  • BACKENDapiName of the API service that `/api` is proxied to

openGym releases & version history

@ Every self-hosted release, weekly

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

FAQ

Can I reuse the exercise images in my own project?

No. The stills and animations are © Aliaksandr Makatserchyk / Gym visual, licensed for openGym only; the exercise text in catalogue/ is the project's own and open to fixes.

I'm moving from another app. Can I bring my history?

Yes, FitNotes, Strong and Hevy import out of the box, Apple Health covers body weight, and any CSV with a date, an exercise and a measurement works.

My passkey sign-in doesn't work.

Usually it is opened over plain http:// on a LAN address, where passkeys are not allowed, or RP_ID and ORIGIN in .env do not exactly match the browser address.

Does the app itself use AI?

Only if you turn it on: a default install calls no AI service. The coach needs an admin toggle plus your own key, and the MCP server is a separate local, read-only piece.

Was openGym written with AI?

It is developed with Claude Code, and a large share of the code, tests and docs is drafted that way, but the maintainer reviews everything and tests releases on a staging instance and real phones.

Does the app send anything anywhere?

No telemetry and no phoning home, and the exercise media ships inside the web image. Only the opt-in coach sends data to the provider you configure; web push uses your browser's push service.

Where is my data?

On a self-hosted instance in the ./data folder beside docker-compose.yml: one JSON file per profile plus the account list. The phone app keeps data in its private storage, guest mode in the browser.

Why isn't it on the Play Store?

Deliberately so: the signed APK is published with a .sha256 next to every GitHub release, and the app checks for updates itself.

Is there an iPhone app?

Not in the App Store, since Apple blocks outside installs. On an iPhone you self-host and add the PWA to the home screen from Safari, or build the native app onto your own device with Xcode.

Do I need my own server?

No. You can try the browser demo, run the Android app with no server at all, or start your own instance with docker compose up for cross-device sync and shared profiles.

What does it cost?

Nothing: it is AGPL open source with no subscription, no paid tier and no ads; optional donations go through Buy Me a Coffee.

More in Fitness Tracker

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…