Turn your Instant Pot on Sauté and when it is hot, add the oil.
Once the oil is hot, add minced garlic and ginger and sauté for 30 seconds.
Add black bean sauce, wine, soy sauce, agave nectar or honey, and water, and mix well. Pour in the spareribs and stir to coat them with the sauce.
Close the lid and cook on high pressure for 15 minutes. Once it is finished cooking, let the pot sit undisturbed for 10 minutes and then release all remaining pressure.
Using a slotted spoon, remove the ribs and some of the intact black beans from the pot to a serving tray.
Mix in the sesame oil if using, sprinkle with green onions, and serve.