These air fryer coconut alfajores are everything a keto dessert should be: crumbly, buttery shortbread that shatters between your teeth, a warm cinnamon-spiked cajeta filling that tastes like dulce de leche's more sophisticated cousin, and a generous roll through toasted coconut that sticks to the cream and crunches with every bite. The lime zest woven into the dough lifts the whole thing out of ordinary cookie territory into something that genuinely tastes like a pastry shop in Mexico City. If you have never had an alfajor, you are about to understand why they are one of Latin America's most beloved sweets.

The macro profile here is built for keto without compromise. Each serving of two sandwich cookies delivers 26 grams of fat from butter, coconut oil, cream cheese, and almond flour, while net carbs sit at just 4 grams thanks to the fiber-rich combination of coconut flour and shredded coconut. There is no maltodextrin hiding in the sweetener, no sneaky flour padding the dough. This is a dessert you can eat after dinner and stay comfortably in ketosis.

The air fryer makes these remarkably foolproof. Traditional alfajores baked in a full-size oven can spread too thin or brown unevenly, but the compact, circulating heat of an air fryer keeps the cookies perfectly round and evenly golden in about eight minutes. You can mix the cajeta cream while they cook, assemble everything once they cool for ten minutes, and have a plate of finished alfajores on the table in half an hour.

Ingredients (serves 4)

For the coconut shortbread cookies:

  • 1/2 cup (56g) almond flour
  • 1/4 cup (28g) coconut flour
  • 2 tbsp (28g) unsalted butter, softened
  • 1 tbsp (14g) coconut oil, softened but not melted
  • 3 tbsp granulated erythritol or monk fruit blend
  • 1 large egg yolk
  • 1/2 tsp pure vanilla extract
  • 1/2 tsp ground cinnamon
  • Zest of 1 lime
  • Pinch of fine sea salt

For the cinnamon cajeta cream:

  • 2 oz (56g) cream cheese, softened
  • 1 tbsp (14g) unsalted butter
  • 2 tbsp golden or brown erythritol (such as Swerve Brown or Sukrin Gold)
  • 1/2 tsp ground cinnamon
  • 1/2 tsp pure vanilla extract
  • Pinch of cayenne pepper
  • Pinch of flaky sea salt

For the coating:

  • 1/4 cup (20g) unsweetened shredded coconut

Instructions

  1. Toast the coconut coating. Spread the shredded coconut in an even layer in your air fryer basket. Air fry at 300 degrees F (150 degrees C) for 2 to 3 minutes, shaking the basket once halfway through. Watch it carefully because coconut goes from golden to burnt fast. The shreds should be light amber and fragrant. Transfer to a shallow bowl and set aside. Wipe out the basket.

  2. Make the cookie dough. In a medium bowl, whisk together the almond flour, coconut flour, cinnamon, and salt. In a separate bowl, beat the softened butter, coconut oil, and granulated erythritol with a fork or hand mixer until creamy and well combined, about 1 minute. Beat in the egg yolk, vanilla, and lime zest until smooth. Add the dry ingredients to the wet ingredients and stir until a soft, slightly crumbly dough forms. If it feels too dry, press it together with your hands. It will hold once compressed.

  3. Shape the cookies. Divide the dough into 16 equal portions, roughly 1 teaspoon each. Roll each portion into a ball between your palms, then flatten gently into a disc about 1.5 inches (4cm) wide and 1/4 inch (6mm) thick. The edges may crack slightly, which is fine. Press any cracks back together with your fingertips.

  4. Air fry the cookies. Cut a piece of parchment paper to fit your air fryer basket. Working in two batches if needed, arrange the discs on the parchment with about half an inch of space between them. Air fry at 310 degrees F (155 degrees C) for 8 to 9 minutes, until the edges are golden and the tops look dry and set. Do not expect deep browning across the whole surface. The cookies will firm up significantly as they cool. Let them rest in the basket for 2 minutes, then transfer to a wire rack. Cool completely, at least 10 minutes. They are fragile when warm.

  5. Make the cajeta cream while the cookies cool. In a small saucepan over low heat, melt the butter. Add the brown erythritol and stir constantly for 1 to 2 minutes until it dissolves into the butter and starts to smell warm and caramel-like. Remove from the heat. In a bowl, beat the softened cream cheese until smooth. Pour in the warm butter-sweetener mixture and beat until completely combined. Stir in the cinnamon, vanilla, cayenne, and flaky salt. The filling should be thick, creamy, and spreadable. If it feels too loose, refrigerate it for 5 minutes.

  6. Assemble the alfajores. Flip half of the cooled cookies flat-side up. Spread about 1 teaspoon of cajeta cream onto each one, then press a second cookie on top, flat-side down, to form a sandwich. Gently squeeze until the cream just barely reaches the edges. Roll the exposed cream edge through the toasted coconut in the shallow bowl, pressing lightly so the shreds adhere. Repeat with all remaining cookies.

  7. Serve or chill. The alfajores are ready to eat immediately, but they taste even better after 15 to 20 minutes in the refrigerator, which lets the cream set and the flavors meld. Arrange on a plate and finish with an extra pinch of flaky salt on top if desired.

Nutrition per Serving

Nutrient Amount
Calories ~280 kcal
Fat ~26g
Protein ~6g
Total Carbs ~9g
Fiber ~5g
Net Carbs ~4g

Nutrition is approximate and calculated based on the stated ingredients using erythritol, which contributes zero net carbs.

Tips & Variations

Chill the dough if it sticks. If your kitchen runs warm and the dough feels greasy or soft when shaping, pop it into the refrigerator for 10 minutes. The coconut oil and butter firm up quickly, making the dough much easier to roll and flatten without sticking to your hands.

Choose your sweetener carefully. Granulated erythritol works well in the cookies because it dissolves during baking and does not recrystallize as much in a thin shortbread. For the cajeta cream, a brown-style keto sweetener like Swerve Brown or Lakanto Golden adds the molasses-adjacent depth that makes the filling actually taste like cajeta rather than plain sweetened cream cheese. Avoid liquid stevia here because it will make the dough too wet.

Turn them into Mexican hot chocolate alfajores. Replace 1 tablespoon of the almond flour with unsweetened cocoa powder and increase the cayenne in the filling to a generous pinch. The result is a chocolate-spiced version that tastes like a Mexican hot chocolate in cookie form, and it adds zero net carbs.

Make them ahead for parties. Assembled alfajores keep beautifully in an airtight container in the refrigerator for up to 4 days. The cookies actually improve over time as they absorb a bit of moisture from the filling and become tender rather than crumbly. Let them sit at room temperature for 5 minutes before serving for the best texture.

Watch the coconut flour ratio. Coconut flour absorbs far more liquid than almond flour, roughly three to four times as much. Do not substitute equal amounts if you adjust the recipe. If you want a more coconut-forward flavor, add an extra tablespoon of shredded coconut to the dough itself rather than increasing the coconut flour, which would make the cookies dry and dense.

Frequently Asked Questions

Can I use a different keto sweetener if I do not have erythritol?
Yes. Allulose is an excellent alternative for both the cookies and the filling because it does not crystallize and has a clean, rounded sweetness that is close to real sugar. Use the same amount by volume. Monk fruit granulated blends also work well. Avoid xylitol if you have pets in the house, as it is toxic to dogs. Pure stevia powder is too concentrated for this recipe and difficult to measure accurately at small quantities, so stick with a granulated blend designed for baking.
Can I make these nut-free by replacing the almond flour?
You can substitute sunflower seed flour at a one-to-one ratio for the almond flour. The cookies will have a slightly earthier flavor and may turn a faint green from the chlorogenic acid in sunflower seeds reacting with baking, but the taste is unaffected. Adding half a teaspoon of lemon juice to the dough helps prevent the green tint. The macros will shift slightly since sunflower seed flour has marginally more carbs than almond flour, but net carbs per serving should still stay under 6 grams.
How should I store these, and can I freeze them?
Store assembled alfajores in a single layer in an airtight container in the refrigerator for up to 4 days. They can also be frozen for up to 6 weeks. Freeze them in a single layer on a parchment-lined tray until solid, then transfer to a freezer bag with parchment between layers. Thaw in the refrigerator for 2 hours before serving. The cookies alone, without filling, can be stored in an airtight container at room temperature for up to 5 days or frozen for up to 2 months.
How do I adapt this recipe for dairy-free or vegan keto?
For a dairy-free version, replace the butter in the cookies with additional coconut oil and use coconut cream concentrate or a vegan cream cheese for the filling. The cajeta cream works surprisingly well with a thick cashew-based or coconut-based cream cheese alternative. Skip the egg yolk and use 1 tablespoon of ground flaxseed mixed with 2 tablespoons of water as a binder. Let the flax mixture gel for 5 minutes before adding it to the dough. The texture will be slightly denser but still very good, and the cookies will hold together well in the air fryer.
My cookies spread too much in the air fryer. What went wrong?
The most common cause is that the coconut oil or butter was too warm when you mixed the dough, or the air fryer temperature was set too high. Make sure both fats are softened but not melted. Melted fat creates a looser dough that spreads before the structure sets. Also verify your air fryer temperature with an oven thermometer, as many models run 10 to 25 degrees hotter than the display reads. If the problem persists, chill the shaped discs on a plate in the freezer for 5 minutes before air frying. This firms up the fat and gives the flour time to absorb moisture, resulting in cookies that hold their shape perfectly.