Preheat the oven to 350°F (175°C) and line a baking sheet with parchment paper.
Mash the bananas in a large bowl until mostly smooth.
Crack in the egg and stir until combined.
If using peanut butter, mix it in now.
Grind the oats to a rough flour in a blender or food processor (skip this if you're using store-bought oat flour).
Add the oat flour and cinnamon to the wet mixture. Stir until it forms a thick, sticky dough.
Drop spoonfuls onto the baking sheet, or roll the dough to ¼-inch thick and cut shapes with a cookie cutter.
Bake for 18-20 minutes, until firm and lightly golden at the edges.
Let the treats cool completely on a wire rack, at least 30 minutes, before serving or storing.