Place the shrimp in a large bowl and add the olive oil, salt, garlic powder, onion powder, and black pepper. Toss to coat.
While the shrimp are cooking in the air fryer, melt the butter in a small skillet or sauce pan over medium-low heat. Add the garlic and cook until fragrant, about 30 seconds.