Did you try todoman (which I wrote, like a decade ago)?
It stores todos in icalendar files, so it’s easy to sync onto a CalDav server and onto your phone.
It stores todos in icalendar files, so it’s easy to sync onto a CalDav server and onto your phone.