The present invention relates to phenyl amino pyrimidine bicyclic compounds formula I which are inhibitors of protein kinases including JAK kinases. In particular the compounds are active against JAK1, JAK2, JAK3 and TYK2 kinases. The kinase inhibitors can be used in the treatment of kinase associated diseases such as immunological and inflammatory diseases including organ transplants; hyperproliferative diseases including cancer and myeloproliferative diseases; viral diseases; metabolic diseases; and vascular diseases.