openGym on Railway
Self-hosted workout and body-weight tracker with invite-only sign-up, openGym 1.4.3 on Railway.
openGym is an open-source workout and body-weight tracker you host yourself. It is an installable web app with a Node API, sign-in with passwords or passkeys, per-person data export and an optional AI Coach. Phone apps pair with your server using a one-time code.
People use it as a private training log shared with a partner, family, club or small gym, or to move history out of apps such as Strong, Hevy or FitNotes to a server they control.
openGym is licensed under AGPL-3.0 or later. The exercise images and animations in the web image are licensed separately and are not covered by the AGPL.
What openGym can do
- Workout and body-weight logging
- Password and passkey sign-in
- Invite-only sign-up with invite codes
- Admin dashboard for owner and members
- CSV and JSON export
- Optional AI Coach, off until enabled
What people use it for
- A private workout log synced across phone, tablet and laptop
- An invite-only instance for a training partner, family, club or small gym
- Moving history out of Strong, Hevy or FitNotes to your own server
- A self-hosted backend for the openGym phone apps
Videos
Running openGym on Railway
The Railway template runs two services: the openGym web service (nginx serving the app and proxying /api) on a public HTTPS domain, and the openGym API on the private network. The API stores accounts, passkeys and workouts as JSON files on a /data volume, so no database is needed. An owner profile is created on first boot with a generated password. Because data are files on one volume, the API runs as a single instance.
openGym templates on Railway
Tracklayer templates are listed first. Other openGym templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about openGym
How do I log in?
Optionally set OPENGYM_OWNER_NAME on the API service before deploying; a profile cannot be renamed later and the default is Owner. Open your domain, choose Sign in with password and enter the owner name and the OPENGYM_OWNER_PASSWORD from the API service's Variables. Then add a passkey under Settings, Account.
How do I back it up?
Everything is on the /data volume of the API service. Turn on volume backups in the service's Backups tab. Each person can also export their data as JSON or CSV in Settings.
How do I upgrade or change domain?
Set OPENGYM_VERSION on the web service, read the release notes, back up the volume and redeploy both. For a custom domain, set RP_ID and ORIGIN on the API service before inviting people, because passkeys are bound to the host name.
What are the licence notes?
The code is AGPL-3.0 or later. The exercise stills and animations in the web image are licensed to openGym by a third party and may not be extracted, hotlinked, reused outside openGym or used to train or feed AI systems. The template is community-made and not affiliated with the openGym project.
Are there upload limits?
Photos and videos go to the volume, 200 MB per profile by default (MEDIA_QUOTA_MB), with a 40 MB video limit. Uploads stop when less than 200 MB is free.
Similar apps
Tracklayer maintains the templates marked as such; openGym is a trademark of its owners and this site is not affiliated with them.