If kept properly cool, ideally in the coolest place in your home, a cup of BSFL will last a couple of weeks. If kept at room temperature, they may start to pupate before then — black soldier fly larvae that are preparing to turn into flies will turn dark, so it's best to feed those ones off first. Never put your BSFL in the refrigerator!