How should I store roasted coffee beans?

Room temperature in a sealable glass jar like a mason jar works very well. Don't store coffee beans in the freezer. Roasted coffee beans give off CO2 up to 24 hours after roasting. This can be allowed to vent off by leaving the lid loose for the first 4-24 hours. After this period, the container should be sealed so as to prevent exposure to oxygen. The vented CO2 help create a barrier against oxygen which causes beans to go stale. Bags with one way vents are another good way to store coffee beans. They let CO2 escape without allowing exposure to oxygen.