Place beans in a colander and rinse under cold water. Pick out any rocks or beans that are broken or shriveled.
If adding onion, bell pepper, carrot, celery, and/or garlic, set Instant Pot to sauté setting. Add oil. Once oil is simmering, add aromatic vegetables and sauté until translucent, ~5 minutes. Add the optional garlic and/or spices and sauté for 30 seconds, stirring frequently.
Add the beans, water, bay leaf, salt, and optional tomatoes, chilis, chipotle peppers, and/or hearty herbs. Set Instant Pot to Bean/Chili setting and turn valve to seal. Pressure cook for 45 minutes.
Once cooked, allow pressure to naturally release for 10 minutes, then turn to release pressure valve. Add vinegar, lemon, or lime juice, and any additional salt to taste. Sprinkle with optional fresh herbs. Enjoy!