Self-hosted app·Tasks, kanban and projects
Habitica hosting run your own instance on a Swiss VPS.
Habitica hosting on a Swiss VPS in ALP1: Docker Compose with a MongoDB replica set, sizing, HTTPS, backups and real costs from $12.99/month.
- MongoDB
- Node.js
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/05
What Habitica is and who maintains it.
Habitica is a habit tracker and to-do list with a role-playing game on top. Habits, dailies and to-dos earn experience and gold, missed dailies cost health, and a party fights quest bosses by its members doing their real tasks. It started as HabitRPG in 2013 and is developed by HabitRPG, Inc., a US company that also runs habitica.com and the official mobile apps. The code is public on GitHub under GPL-3.0, while the art designed for Habitica is licensed CC BY-NC-SA 3.0. The non-commercial clause on the art comes back below if you are thinking of charging anyone.
Upstream does not publish a production image. Its repository carries development Docker files and points contributors to a local development setup, and since 4 August 2026 it no longer accepts public pull requests, although the code stays open and releases continue. What self-hosters actually run is the awinterstein/habitica fork, which rebases a small set of changes onto each upstream release and pushes server and client images to Docker Hub. Those changes are what make a private instance usable: every user gets a subscription that never expires, gem purchases are replaced by gold, mail goes out through your own SMTP server instead of Mandrill, analytics and payment scripts are not loaded, registration can be limited to invited users, and the first registered user is made admin. The fork's README admits some third-party scripts may still load, so look at your browser's network tab before you describe the instance as free of trackers.
One expectation to correct early: Habitica removed the Tavern and all guilds on 8 August 2023. The fork follows upstream, so self-hosting does not bring them back. You get tasks, parties, challenges and group plans.
02/05
Requirements and sizing.
Habitica needs a Node.js server, a MongoDB database and something to terminate TLS. MongoDB carries the two requirements that break most first attempts. It must run as a replica set, even a single-member one, because Habitica uses multi-document transactions; release 5.48.8 extended them to joining challenges and to adding or removing members of parties and group plans, so a standalone mongod fails on precisely the shared features people self-host for. And on x86-64, MongoDB 5.0 and later require the AVX instruction set, which a virtual CPU only has if the hypervisor passes it through.
Memory goes mostly to MongoDB. Its WiredTiger cache defaults to the larger of 256 MB or half of (RAM − 1 GB), which is 1.5 GB on a 4 GB machine; the compose file below caps it at 1 GB to leave room for Node, Caddy and the page cache. Disk is dominated by the image: the 5.51.0 server image is about 758 MB compressed for amd64, and a small group's database stays small next to it. Traffic barely registers. A theoretical upper bound: 50 people each loading the web client fresh every day, assuming 5 MB per load, comes to about 7.5 GB a month, or 0.05 % of Cloud VPS Standard's 15 TB.
Only ports 22, 80 and 443 need to be reachable from outside. Habitica's port 3000 stays on the loopback interface and MongoDB's 27017 never leaves the Docker network. Outbound, you need 587 (or whatever your mail relay uses) for password resets and invitations.
| Plan | vCPU / RAM / NVMe / transfer | Price per month | Fit for Habitica |
|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB / 10 TB | $6.99 | One person, nothing else on the box. |
| Standard (recommended) | 4 / 4 GB / 160 GB / 15 TB | $12.99 | A household or a few friends' parties, with room for Caddy and backup jobs |
| Pro | 6 / 8 GB / 320 GB / 20 TB | $22.99 | Larger groups, or Habitica sharing the VPS with other apps |
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/05
How to deploy it with us.
- 01
1. Order and check the CPU
Order Cloud VPS Standard with Debian 13 from this deploy link. We run no-KYC hosting: an email address is enough to open the account. Once you can SSH in, check for AVX before installing anything:
grep -o -m1 avx /proc/cpuinfoIt should print
avx. If it prints nothing, MongoDB will stop with an illegal-instruction error on start, and the right move is a support ticket, not an afternoon spent on the compose file. - 02
2. Install Docker and write the compose file
Install Docker Engine and the Compose plugin from Docker's own Debian repository, then create
/opt/habitica/compose.yaml. It follows the fork's reference file with three changes: a pinned image tag, a cache cap on MongoDB, and port 3000 bound to 127.0.0.1. That last one is the real protection. A port Docker publishes on all interfaces is forwarded before ufw's input rules ever see the packet, so a firewall rule will not save you from"3000:3000".services: server: image: docker.io/awinterstein/habitica-server:5.51.0 restart: unless-stopped depends_on: mongo: condition: service_healthy environment: - NODE_DB_URI=mongodb://mongo/habitica - BASE_URL=https://habits.example.com # the public URL; mail links are built from it - INVITE_ONLY=false # set to true once your own account exists - EMAIL_SERVER_URL=smtp.example.com - EMAIL_SERVER_PORT=587 - EMAIL_SERVER_AUTH_USER=habitica@example.com - EMAIL_SERVER_AUTH_PASSWORD=change-me - ADMIN_EMAIL=habitica@example.com # sender address ports: - "127.0.0.1:3000:3000" mongo: image: docker.io/mongo:<major-version> # the fork's file uses mongo:latest; pin the major version you run restart: unless-stopped hostname: mongo command: ["--replSet", "rs", "--bind_ip_all", "--port", "27017", "--wiredTigerCacheSizeGB", "1"] healthcheck: test: echo "try { rs.status() } catch (err) { rs.initiate() }" | mongosh --port 27017 --quiet interval: 10s timeout: 30s start_period: 0s start_interval: 1s retries: 30 volumes: - ./db:/data/db - ./dbconf:/data/configdbThe healthcheck doubles as the replica-set initialiser: on first start
rs.status()throws,rs.initiate()runs, and the server waits until the database reports healthy. Start it withdocker compose up -dand followdocker compose logs -f serveruntil it settles. - 03
3. HTTPS, then the first account
Point an A record at the VPS, install Caddy from Debian's repositories, and give it a Caddyfile that refuses everyone except your current IP address. This is not paranoia: the moment Let's Encrypt issues the certificate, your hostname appears in public Certificate Transparency logs, and scanners read those logs within minutes.
habits.example.com { @outsiders not remote_ip 203.0.113.7 respond @outsiders 403 reverse_proxy 127.0.0.1:3000 }Register your account, which becomes the admin. Then set
INVITE_ONLY=true, rundocker compose up -dagain, delete the two@outsiderslines andsystemctl reload caddy. From here, new users join only through invitations. - 04
4. Back up the database, not the folder
Copying
./dbwhile MongoDB runs gives you a file set you may not be able to open. Dump instead, and ship the dumps off the machine, for example with restic to an S3-compatible object storage bucket (restic reads the access keys fromAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY):docker compose exec -T mongo mongodump --db habitica --archive --gzip \ > /var/backups/habitica-$(date +%F).archive.gz restic -r s3:https://<endpoint>/<bucket> backup /var/backupsRun it from a systemd timer and restore one dump into a scratch container before you trust it. The daily VPS backup option is a reasonable second layer for the whole system, but the dump is what you restore Habitica from. For upgrades, the fork publishes an image for each upstream release: change the tag, take a dump, then
docker compose pull && docker compose up -d.
04/05
What it costs.
| Item | Per month |
|---|---|
| Cloud VPS Standard (4 vCPU, 4 GB, 160 GB NVMe, 15 TB transfer, 1 Gbps) | $12.99 |
| Daily VPS backups (+20 %) | $2.60 |
| 250 GB bucket for off-site dumps (250 GB, no request fees) | $1.99 |
| Total with both options | $17.58 |
Yearly billing takes roughly 25 % off the VPS, which puts Cloud VPS Standard alone at $116.99 a year. The plan includes the 15 TB transfer allowance and open outbound port 25; VPS traffic is metered against that allowance, not unmetered. Payment is in crypto only (Monero, Bitcoin, Tether, Ethereum, Litecoin and others), with prices and balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus from $50 upwards: a $100 top-up becomes $110 of credit, or about eight and a half months of Cloud VPS Standard. The unused paid part of a top-up is refundable within 14 days. Full figures are on the pricing page.
An honest comparison: habitica.com lists its yearly subscription at $47.99 in Apple's store, and prices vary by country. For one person who wants the perks, subscribing is cheaper and pays the people who build the thing. Self-hosting starts to make sense for a household or a group, where every member gets subscriber features, or when the reason is where the data lives rather than the price.
05/05
Limits and your obligations as operator.
Once you invite other people, you are running a service and hold their personal data. Habit lists are more revealing than they look: medication dailies, therapy homework and sobriety streaks are health data, which the revised Swiss Federal Act on Data Protection, in force since 1 September 2023, treats as sensitive personal data. Tell your users what you store, keep the instance patched, and delete accounts when asked. Friends in the EU are covered by the European Commission's finding, confirmed on 15 January 2024, that Switzerland ensures an adequate level of protection, so their data can flow to your server without additional safeguards.
Moving off habitica.com also moves your data from a US company to a Swiss one, Hosta AG. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That describes one legal route, not a guarantee that no foreign authority can ever reach the data; our offshore hosting page sets out what Swiss jurisdiction covers and what it does not.
Do not sell access to your instance. The code's GPL-3.0 would allow it, but the Habitica art is non-commercial, and a paid instance without that art is no longer much of a Habitica. If you modify the code, GPL-3.0 has no network clause, so running a modified server does not oblige you to publish it; distributing it does.
Party chat and challenge descriptions are user content, and complaints about it reach us like any other. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to you, as the customer, and you either remove the content or justify it; we act on a decision of a competent Swiss authority, or where content is manifestly unlawful (Swico Code of Conduct Hosting 2025). Outbound port 25 is open, but send Habitica's mail through a proper relay on 587: mail straight from a fresh VPS address tends to land in spam folders, and bulk mail from it gets the address blocklisted. Our acceptable use policy applies to the whole VPS, and the operating system, Docker and the images are yours to keep updated.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can I keep using the official Habitica mobile apps?
On iOS, yes. Apple's release notes describe a hidden server selector: log out, tap the gryphon logo eight times, switch from Production to Custom and type your instance's address on the login screen. For Android, the app's repository documents building it against your own server by editing its properties file; we have not found an equivalent switch in the store build.
Can I bring my habitica.com account across?
Not as such. Apple's release note says custom servers do not share Habitica's database, so characters and logins do not carry over. You can export your data from habitica.com, but we know of no supported import into a self-hosted instance, so plan on new characters and recreating tasks by hand or through the API.
Do my users get subscriber features?
Yes. The fork gives every account a subscription on registration that never needs renewing, and the places that sold gems for money sell them for gold instead. Group plans can be created without payment.
Is the $6.99 Starter plan enough?
For one person probably, though 2 GB leaves little margin once Docker, MongoDB's cache and Node are running.
Do I need my own domain?
For anything beyond a test, yes. BASE_URL must match the public address because password-reset and invitation links are built from it, and you want TLS in front of a login form. A subdomain of a domain you already own is enough.
What do you need from me to order, and how do I reach you?
No-KYC: an email address is enough, and you pay in crypto. For questions before or after ordering, open a support ticket from the client panel; the FAQ covers billing and account basics. Switzerland Hosting is operated by Hosta AG, société anonyme suisse, IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen, Switzerland.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023fedlex RS 235.1
EU and other countries
- EU adequacy for Switzerland confirmed on 15 January 2024European Commission, adequacy decisions
- CLOUD Act executive agreements limited to the UK and AustraliaUS DOJ, CLOUD Act resources · verified 31 Oct 2026
Industry, providers and software
- HabitRPG/habitica repository and README (development setup; public pull requests paused since 4 August 2026)github.com/HabitRPG/habitica
- Habitica licence (code GPL-3.0; Habitica assets CC BY-NC-SA 3.0; BrowserQuest assets CC BY-SA 3.0)LICENSE
- Self-hosting fork, its changes, limitations and reference compose filegithub.com/awinterstein/habitica
- Habitica v5.48.8 release notes (MongoDB transactions for challenges, parties and group plans)newreleases.io
- Android build against a custom serverHabitRPG/habitica-android README
Other references
- Server image tags, 5.51.0 as latest, 757.65 MB compressed for linux/amd64hub.docker.com
- Tavern and guilds discontinued on 8 August 2023habitica.fandom.com
- Habitica's history and owner, HabitRPG, IncWikipedia, Habitica
- iOS custom-server selector, no shared database with habitica.com, subscription pricesApp Store, Habitica
- MongoDB 5.0+ requires AVX on x86-64MongoDB production notes
- WiredTiger default cache size and the 4 GB exampleMongoDB manual, WiredTiger
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
