In a medium saucepan, heat the sugar over medium-low heat, swirling the pan occasionally until the sugar dissolves and turns a deep amber color, about 8 to 9 minutes.
Immediately pour the caramel into a six-hole muffin tin (or use six ramekins), tilting the pan or ramekins to coat the bottoms evenly. Set aside to cool.
To Make The Flan:
In a blender, combine almond milk, sugar, cornstarch, and vanilla extract. Blend until smooth.
Pour the blended mixture into a saucepan and add the coconut milk. Stir in the agar-agar powder.
Bring the mixture to a simmer over medium heat, stirring constantly for 5 minutes. Remove from the heat and allow to cool slightly.
Pour the custard mixture into the caramel-coated muffin tin or ramekins.
Refrigerate for at least 4 hours, or until the flan is set.
To serve, run a knife around the edges of muffin tin or ramekins to loosen the flan. Place a serving platter over the muffin tin (or use a small plate, if using ramekins) and invert, shaking gently to release the flan. If necessary, dip the bottom of the muffin tin or ramekins in warm water to help release the flan.