To preserve your beans’ fresh roasted flavor it is necessary to store them in an opaque, air-tight container at room temperature.
The main thing to understand is that you want to keep air, moisture, heat, and light away from them.
Leaving them in the bag once it is open is not the best option.
You may ask, what about the freezer or refrigerator?
This is a popular method of storing beans, but rarely is the container truly airtight which results in moisture, and very possibly the absorption of odors from other things in your fridge or freezer.