Choose a cool, dry place away from the oven, sunlight, and strongly scented foods. Keep beans in a suitable airtight, opaque container or a well-closed coffee bag. A decorative clear jar beside a sunny window makes the beans visible but gives light and warmth an unnecessary role in your routine.
Buy an amount that matches how often you brew. Mark the opening date, then compare aroma and taste over time using your normal recipe. A roast date is useful context, but it is not a universal countdown: packaging, roast, handling, and personal taste all affect the useful drinking window.
Grind near brewing when practical. If you buy ground coffee, choose smaller packs and close them promptly after each use. Avoid making a container colder and warmer repeatedly, which can introduce condensation. Clean and dry a storage container before refilling it; topping up old beans makes it harder to track what you are drinking.

The conversation
A good question can make a better brew.