01 - Preheat the oven to 350°F. Line a baking sheet with parchment paper and set aside.
02 - In a medium bowl, whisk together the almond flour, shredded coconut, coconut flour, erythritol, baking powder, and sea salt until evenly distributed.
03 - In a separate large bowl, whisk the melted butter, eggs, and vanilla extract together until smooth and well combined.
04 - Pour the dry mixture into the wet ingredients and stir until a thick dough forms. If using, gently fold in the chopped pecans or walnuts.
05 - Scoop tablespoon-sized portions of dough onto the prepared baking sheet, spacing them about 2 inches apart. Gently flatten each cookie with your fingers or the back of a spoon.
06 - Bake for 13 to 15 minutes, or until the edges are golden brown and the centers are just set.
07 - Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely before storing.
08 - Store cooled cookies in an airtight container at room temperature for up to 5 days.