Quickstart
Get OpenFinance up and running on your local machine in under 5 minutes.Prerequisites
- Node.js 20+ (download)
- Yarn 4.0.0 (included via
corepack) - OpenRouter API key for AI features (get one)
Setup
Set up environment variables
Create a Generate a secret for
.env file in the project root:.env
BETTER_AUTH_SECRET:Initialize the database
prisma/data/openfinance.db and sets up all tables.Start the dev server
First Steps
Once the app is running:- Create an account — sign up with your email and password on the login page
- Configure settings — go to Settings to set your fiscal year, timezone, and AI model
- Upload a bank statement — navigate to Statements and upload a PDF bank statement
- Wait for processing — the AI will extract transactions and verify balances automatically
- Explore your data — view transactions, check the dashboard, or chat with the AI advisor
Available Commands
| Command | Description |
|---|---|
yarn dev | Start the dev server with Turbopack |
yarn build | Create a production build |
yarn lint | Run ESLint |
yarn db:push | Push Prisma schema changes to the database |
yarn db:studio | Open Prisma Studio (database browser) |
yarn db:generate | Regenerate the Prisma client |
yarn db:migrate | Run database migrations |
yarn test | Run Playwright end-to-end tests |