First, dice the onions. There's no need to cook them in advance.
Rinse the pinto beans and pick through for any old ones. Add the beans plus all other ingredients to the instant pot.
Stir everything together and set the instant pot on high for 45 minutes.
After the 45 minutes are up, the pressure cooker will need time to vent and release the air.
Once done, remove the bay leaves. You can drain the beans or keep them in the cooking liquid. Add salt to taste. These are great on top of rice, baked potatoes, or even with chips. You can also make refried beans with them by mashing with a little of the cooking liquid.
Once cooled, store leftover beans in an airtight container in the fridge for up to 5 days.
Equipment
Instant Pot
Notes
Make sure you rinse and pick through the dried beans to get rid of any old beans.
These beans are not spicy. If you want some spice, increase the amount of chili powder.