Compounds and pharmaceutical compositions that modulate kinase activity, including mutant EGFR and mutant HER2 kinase activity, and compounds, pharmaceutical compositions, and methods of treatment of diseases and conditions associated with kinase activity, including mutant EGFR and mutant HER2 activity, are described herein.