Preheat the oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a medium bowl, whisk together the flour, baking soda, baking powder, and salt. Set aside.
In a large mixing bowl, beat the coconut oil (or vegan butter), granulated sugar, and brown sugar until light and creamy.
Add the egg and vanilla extract, then mix until fully combined.
Gradually add the dry ingredients to the wet ingredients and mix until just combined.
Fold in the dairy-free chocolate chips and chopped nuts, if using.
Scoop the dough into 2-tablespoon portions and place them on the prepared baking sheet, leaving space between each cookie.
Bake for 11–13 minutes, or until the edges are lightly golden and the centers appear slightly soft.
Let the cookies cool on the baking sheet for 5 minutes before transferring them to a wire rack to cool completely.