The cyclic nucleotides cAMP and cGMP are ubiquitous second messengers that regulate numerous biological processes by activating e.g. protein kinases (PKA and PKG) or cyclic nucleotide gated channels (CNGCs). In eukaryotic GPCR signalling, cAMP is generated predominantly by membrane-bound adenylyl cyclases (mbACs), which are located in microdomains together with GPCRs, PK(A) and their targets. The existing optogenetic toolbox in C. elegans is restricted to soluble adenylyl cyclases (i.e. microbial photoactivatable adenylyl cyclases (PACs) from Euglena (euPAC) and Beggiatoa (bPAC), and the synthetic phytochrome-linked cyclases IlaC22
k27 and PaaC), the membrane-bound Blastocladiella emersonii guanylyl cyclase opsin (BeCyclOp) and hyperpolarising rhodopsins (e.g. Natronomonas pharaonis halorhodopsin - NpHR). Yet missing are membrane-bound photoactivatable adenylyl cyclases (mbPACs) and hyperpolarizers based on K+-currents. To obtain mbPACs, we mutated 2-3 key amino acids in the active site of Blastocladiella and Catenaria CyclOps, which are particular in combining a rhodopsin and a guanylyl cyclase domain. For characterization of photoactivatable nucleotidyl cyclases, we expressed the proteins alone or in combination with CNGCs ("two-component optogenetics") in muscle cells and cholinergic motor neurons. To investigate the extent of optogenetic cNMP production and the ability of the systems to de- or hyperpolarise cells, we performed behavioural analyses (locomotion, muscle contraction), measured cNMP content in vitro, and compared in vivo expression levels. We implemented Catenaria CyclOp as a new tool for cGMP production, allowing fine-control of cGMP levels. We established the mbPACs YFP-BeCyclOp(A-2x) and YFP-CaCyclOp(A-2x), based on mutated versions ("A-2x") of Be and Ca CyclOp, enabling more efficient and specific cAMP signalling compared to soluble bPAC, despite lower overall cAMP production. For hyperpolarization of excitable cells by two-component optogenetics, we introduced the cAMP-gated K+-channel SthK from Spirochaeta thermophila and combined it with bPAC, BeCyclOp(A-2x), or YFP-BeCyclOp(A-2x). As an alternative, we implemented the Blastocladiella emersonii cGMP-gated K+-channel BeCNG1 together with BeCyclOp. In summary, we established a comprehensive suite of optogenetic tools for cNMP manipulation, useful for applications in many cell types, including sensory neurons, and for potent hyperpolarization.