The upregulated L-tryptophan biosynthesis genes and, oppositely, the concomitant downregulated genes encoding L-tryptophan-consuming enzymes reflect a well-adjusted cellular system to route this amino acid toward psilocybin production. Our study has pilot character beyond the genus Psilocybe and provides, for the first time, insight in the coordination of mushroom primary and secondary metabolism.