Prep the pan and oven: Preheat to 350°F (175°C). Line an 8- or 9-inch round cake pan with parchment and lightly grease the sides.
Mix dry ingredients: In a large bowl, whisk 2 cups almond flour, 2 tablespoons coconut flour, 1/2 cup cocoa powder, 3/4 cup granulated keto sweetener, 2 teaspoons baking powder, and 1/2 teaspoon salt until no lumps remain.
Combine wet ingredients: In another bowl, whisk 4 large eggs, 1/3 cup melted butter (or avocado oil), 1/2 cup almond milk, 1/3 cup sour cream, 2 teaspoons vanilla, and 1/4 cup cooled brewed coffee.
Bring it together: Pour the wet mixture into the dry ingredients.
Stir gently until just combined. The batter will be thicker than traditional cake batter—smooth but not runny.
Adjust if needed: If the batter looks too stiff, add 1–2 tablespoons more almond milk until it falls off a spatula slowly.
Bake: Transfer to the prepared pan and smooth the top. Bake 22–30 minutes, depending on pan size, until a toothpick comes out with a few moist crumbs.
Cool completely: Let the cake cool in the pan 10 minutes, then turn out onto a rack.
Cool fully before frosting.
Make the frosting: Beat 8 ounces softened cream cheese with 1/2 cup softened butter until creamy. Add 1/3 cup cocoa powder, 3/4 to 1 cup powdered keto sweetener, 1 teaspoon vanilla, a pinch of salt, and 1–3 tablespoons heavy cream as needed for spreadable texture. For extra richness, melt 2 ounces sugar-free dark chocolate and beat it in once cooled.
Frost and serve: Spread frosting over the cooled cake.
Slice and enjoy. For cleaner cuts, chill 20 minutes before slicing.