The invention provides compounds and pharmaceutical compositions thereof, which are useful for modulating EGFR activity, as well as methods for using such compounds to treat, ameliorate or prevent a condition associated with abnormal or deregulated EGFR activity.