← All templates · Personal finance
Deploy Sure in one click
A personal finance app, a fork of Maybe Finance
A self-hosted alternative to YNAB and Mint.
What is Sure?
Sure is an open-source personal finance app that people run instead of YNAB, and the community fork of Maybe Finance. It keeps every account in one place, from checking and credit cards to stocks, crypto, loans and property, in any currency. A dashboard charts your net worth and cash flow. Rules sort transactions into categories, and each category gets a budget. An optional AI assistant answers questions about your money, through an OpenAI-compatible API or a local model such as Ollama.
People self-host Sure to keep a full record of their finances on a server they control, with no subscription. A household can share one instance, with personal budgets beside a shared household budget. The catch is bank sync: it goes through an outside provider you sign up with yourself. Without one, you import transactions from files or enter them by hand.
Hosting Sure on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Sure, and you click Create project.
- In a minute or two Sure is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Sure
Is Sure free and open source?
Yes. Sure is open source under the AGPLv3 licence, and self-hosting it is free. Its makers also run a hosted version at sure.am.
Is Sure the same as Maybe Finance?
No, but it grew out of it. Sure is the community fork of Maybe Finance, started after the Maybe team stopped work on the app and archived its repository, and it is developed under its own name.
Can I import my YNAB or Mint data into Sure?
Yes. Sure has ready-made imports for YNAB, Mint and Actual Budget exports, besides CSV and QIF files. A Sure data export can be imported into another Sure server, to move everything at once.
Can Sure sync with my bank automatically?
Yes, through a provider you connect with your own account or key: Plaid, SimpleFIN, Enable Banking, Lunch Flow and others, plus some brokers and crypto exchanges. Sure's docs note that Plaid does not serve European users.
Does Sure have a mobile app?
Yes, a companion app for iOS and Android, which for now covers signing in and account balances. Everything else is in the web app, which also comes as a macOS desktop app.
How much memory and disk does Sure need?
Sure is moderate: about 1 GB across web, worker, Postgres and Redis, and years of transactions take little disk. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Sure Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: web (ghcr.io/we-promise/sure:0.7.5-hotfix.2), worker (ghcr.io/we-promise/sure:0.7.5-hotfix.2), db (postgres:16), redis (redis:8-alpine).
Volumes, in the nightly backup: app-storage, postgres-data, redis-data.
# The web server and the worker are one image with one environment.
x-app: &app
image: ghcr.io/we-promise/sure:0.7.5-hotfix.2
restart: unless-stopped
environment:
SELF_HOSTED: "true"
# TLS ends at the machine's proxy: the app takes every request as HTTPS and redirects none.
RAILS_FORCE_SSL: "false"
RAILS_ASSUME_SSL: "true"
APP_DOMAIN: ${APP_DOMAIN}
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
DB_HOST: db
DB_PORT: "5432"
POSTGRES_USER: sure_user
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: sure_production
REDIS_URL: redis://redis:6379/1
volumes:
- app-storage:/rails/storage
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
services:
web:
<<: *app
worker:
<<: *app
command: bundle exec sidekiq
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: sure_user
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: sure_production
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
redis:
image: redis:8-alpine
restart: unless-stopped
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
app-storage:
postgres-data:
redis-data: