Railway

Deploy Open Splitwise

Self-hosted Splitwise companion with PostgreSQL and Cloudflare Tunnel.

Deploy Open Splitwise

Just deployed

Just deployed

/var/lib/postgresql/data

Deploy and Host Open Splitwise on Railway

Self-hosted Splitwise companion: sync expenses locally, then search, filter, and chart your data. Settling up still happens in Splitwise.

About Hosting

This template provisions PostgreSQL, the open-splitwise Next.js app, and a cloudflared sidecar in one Railway project. The app builds from the repo Dockerfile; the tunnel builds from deploy/cloudflared.

Why Deploy

  • Keep a private copy of your Splitwise expenses for search, filters, CSV export, and charts
  • Multi-tenant: several Splitwise accounts can share one deployment with isolated data
  • Expose the app via Cloudflare Tunnel (outbound-only) instead of a public Railway URL

Common Use Cases

  • Personal expense exploration and insights beyond the Splitwise mobile app
  • Self-hosted analytics for shared households or roommates
  • Production on Railway behind a custom Cloudflare hostname (full tunnel guide)

Dependencies for

Deployment Dependencies

ServiceNotes
PostgresPrivate network; DATABASE_URL wired automatically
open-splitwiseGitHub repo ankitchouhan1020/open-splitwise
cloudflaredSame repo, deploy/cloudflared — needs TUNNEL_TOKEN

You must provide:

  • TUNNEL_TOKEN — Cloudflare Zero Trust → NetworksTunnelsConfigure → Install connector
  • SPLITWISE_CLIENT_ID and SPLITWISE_CLIENT_SECRET from secure.splitwise.com/apps
  • Cloudflare tunnel public hostname → open-splitwise.railway.internal:3000 (see cloudflare-tunnel.md)
  • Set APP_URL and SPLITWISE_REDIRECT_URI to your Cloudflare hostname (not *.up.railway.app)

After deploy: remove public Railway domains from the app service if using the tunnel only → SettingsConnect SplitwiseSync.


Template Content

More templates in this category

View Template
Rocky Linux
[Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
16
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
70
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
46