Deploy OpenProfit

See what each app earns after its OpenAI, Vercel and Railway bills.

Deploy OpenProfit

Just deployed

/app/data

Deploy and Host OpenProfit on Railway

OpenProfit shows what each of your apps earns after costs. It pulls revenue from Stripe, Polar, Paddle, Lemon Squeezy and RevenueCat, and costs from OpenAI, Anthropic, Vercel, Cloudflare, Railway and more. You assign each OpenAI project, Vercel project or Railway project to a product and see profit per product. From the same data, you download a monthly journal for QuickBooks or Xero and the lines for your tax return.

About Hosting OpenProfit

The template deploys one service from the ghcr.io/morencyr/openprofit image, on a public domain. OpenProfit keeps its data in an embedded Postgres database on a volume at /app/data, so you have no database service to run. Railway generates SECRET_KEY, which OpenProfit uses to encrypt the provider keys you paste in, and sets APP_URL to the domain.

When the deploy finishes, open /login on your domain and enter your email. Without an email provider, OpenProfit writes the sign-in link to the service's deploy logs. Add RESEND_API_KEY and EMAIL_FROM to send it by mail.

Common Use Cases

  • Track profit per app when you run several products on the same providers
  • Get an alert when an AI or hosting bill jumps, before the invoice arrives
  • Export each month's revenue and costs to QuickBooks or Xero, and get the lines for T2125 or Schedule C

Dependencies for OpenProfit Hosting

  • API keys for the revenue and cost providers you connect
  • A Resend API key, if you want sign-in links and the weekly email sent by mail

Deployment Dependencies

Implementation Details

Keep SECRET_KEY as Railway generated it. If you change it, OpenProfit can't read the stored provider keys and you have to reconnect every provider. To use your own Postgres server instead of the volume, set DATABASE_URL to a postgres:// connection string.

Why Deploy OpenProfit on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying OpenProfit on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
NEW
Typesense Multilingual
Locale-aware multilingual search with Typesense

onepush
0
View Template
Formbricks | Open-Source Typeform & Qualtrics Alternative
Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Two Workspaces
2
View Template
Typesense PHP
official PHP client against Railway

onepush
0