Cytotoxicity of transgenes carried by adeno-associated virus (AAV) vectors might be desired, for instance, in oncolytic virotherapy or occur unexpectedly in exploratory research when studying sparsely characterized genes. To date, most AAV-based studies use constitutively active promoters (e.g., the CMV promoter) to drive transgene expression, which often hampers efficient AAV production due to cytotoxic, antiproliferative, or unknown transgene effects interfering with producer cell performance. Therefore, we explored artificial riboswitches as novel tools to control transgene expression during AAV production in mammalian cells. Our results demonstrate that the guanine-responsive GuaM8HDV aptazyme efficiently attenuates transgene expression and associated detrimental effects, thereby boosting AAV vector yields up to 23-fold after a single addition of guanine. Importantly, riboswitch-harboring vectors preserved their ability to express functional transgene at high levels in the absence of ligand, as demonstrated in a mouse model of AAV-TGFβ1-induced pulmonary fibrosis. Thus, our study provides the first application-ready biotechnological system-based on aptazymes, which should enable high viral vector yields largely independent of the transgene used. Moreover, the RNA-intrinsic, small-molecule regulatable mode of action of riboswitches provides key advantages over conventional transcription factor-based regulatory systems. Therefore, such riboswitch vectors might be ultimately applied to temporally control therapeutic transgene expression in vivo.