Turn on Instant Pot on Saute mode (more). Add butter, butter will start to melt. This will take around 8-10 minutes.
Once when the butter is completely melted and it starts to boil vigorously. Switch to Saute mode (normal). Continue to cook the butter.
After 5-7 minutes, you will notice some foam/froth developing. Continue cooking.
After 5-6 minutes of cooking, the foam/froth will dissipate and you will see more clear butter. Continue cooking.
After few more minutes of cooking, the milk solids (whitish granule) will start to build up. You will start to notice whitish granules or milk solids floating in the liquid. Slowly once the ghee is cooked, these milk solids will start to settle at the bottom of the inner pot. Gently stir between the process.
Once the milk solids have settled at the bottom of the inner pot and you notice a change in color (both the liquid and milk solids start to turn light brown). It's time to switch of saute mode. Ghee is ready.
After 5-10 minutes, strain the ghee using a fine strainer or cheesecloth to a clean, dry, airtight container.
Enjoy homemade ghee!!