There's an open-sourced clone of YNAB (standalone version) called financier (https://financier.io). There's been a few efforts to easily run it locally:
-https://gitlab.com/caleb3141/financier
-https://gitlab.com/josh-whitney/financier-backend
Biggest downside is that it doesn't have an OFX/QFX import option.