For homemade ghee that's been opened, it can be stored for up to a year and possibly longer if there are no noticeable changes in smell or appearance. However, it's recommended to aim for consuming it within a year for optimal freshness. If you intend to store it for more than three months, it's best to keep the ghee in the refrigerator.