Line a baking sheet with parchment paper and spread out peanuts in an even layer. Toast in oven until golden, about 8 minutes.
Meanwhile, in a large bowl, combine melted butter, rosemary, garlic powder, salt, and cayenne pepper. Add hot peanuts to bowl and toss with butter herb mixture until coated. Let cool.