Selling/Buying software in academia
You should let your PI know what resources you need to carry out your work, and discuss how such resources can be provided.  You should not be footing the bill in the first place, so there  should be no need to monetize to recover.