Hu and colleagues report the development of autonomous cells with the ability to biosynthesise and genetically encode acetyllysine using the genetic code expansion method. This approach enables functional studies and offers a powerful strategy for protein engineering and epigenetics research.