Preheat oven to 400°F (200°C). Line a rimmed baking sheet with parchment paper.
Drain and rinse beans under cold water for 30 seconds. Spread on a clean kitchen towel, cover with a second towel, and gently roll to dry thoroughly. (Dry beans = crispy beans — see post for details.)
Transfer dried beans to a bowl and toss with olive oil until evenly coated.
In a small bowl, stir together garlic powder, onion powder, cumin, smoked paprika, salt, pepper, cayenne (if using), and cornstarch.
Sprinkle seasoning over the oiled beans and toss to coat evenly.
Spread beans in a single layer on the prepared baking sheet, leaving space between each bean.
Bake 15 minutes. Stir or shake the pan, then bake another 15 minutes until deep golden brown and crackly. Many beans will split open and puff — this is what you want.
Test one bean: it should crunch cleanly with no chew in the center. If needed, bake 5 more minutes and recheck. Total bake time: 30–40 minutes.
Cool on the pan for 5 minutes before serving. Store loosely covered (not airtight) for best crunch.