The *KRAS* gene is often mutated at several hotspot codons in cancer, resulting in similar, yet distinct, functional impacts on the KRAS protein. Here, the authors examine the genetic interactions of the different *KRAS* mutations across multiple cancer types and discover that *KRAS* mutations have allele- and tissue-specific mutagenic origins, comutation patterns, and dependency interactions.