Choose the right mug. Use a microwave-safe mug that holds at least 10–12 ounces. A wider mug helps the cake cook evenly.
Mix the dry ingredients. In the mug, whisk together almond flour, coconut flour, sweetener, cinnamon, baking powder, and salt.
Break up any lumps.
Add the wet ingredients. Add the egg, melted butter, and vanilla. Whisk with a fork until the batter is smooth and well combined. No dry streaks.
Microwave in short bursts. Cook on high for 45 seconds, then check. Continue in 10–15 second bursts until the center is just set.
Total time is usually 60–90 seconds, depending on your microwave.
Rest before eating. Let the cake sit for 1–2 minutes. It finishes cooking and becomes more tender.
Add the optional frosting. Stir cream cheese with sweetener and a pinch of cinnamon until smooth. Spread on top of the warm cake.
Serve. Eat straight from the mug or loosen the edges and invert onto a plate.