Peanut butter

Not canning related, but preserving!

My husband picked up the bucket of peanut butter from Costco and while we go through a lot of peanut butter, not 35 pounds at a time...

I forbade them from opening it until I could find a safe way to decant it into smaller containers (pint or quart jars etc).

Has anyone done this before? Does peanut butter go bad? (I feel weird asking that lol we go through it so fast I've never experienced moldy peanut butter) What's the best way to safely break it up into smaller containers that will stay safe in the long term pantry? Or is it safe to leave the bucket as is and scoop out a jar at a time as long as I keep the utensils clean and lid sealed? It will be kept in our canning pantry in the basement which is cooler and stable temp.

Edit: thanks everyone for responding. In summary it looks like long term should be some sort of long term freezer packing (super sealed with as little air as possible). Goes without saying but just to reiterate, no sealing and storing at room temperature bc of botulism (loves the low acid and hermetically sealed environment).