Combine the agave, mirin, molasses, vinegar, soy sauce, brown sugar, cardamom, cinnamon, bay leaf, chile and star anise in a medium saucepan. Bring the mixture to a simmer and reduce to a glaze, 10 to 15 minutes. Strain, discarding the solids.
Use as a glaze for baked ham, or when cooking lamb, chicken or pork. Warm before using, so the glaze coats the meat evenly.