Flow of cerebrospinal fluid (CSF) may contribute to spine morphogenesis, as mutations affecting both cilia motility and CSF flow lead to scoliosis 1 . However, the mechanisms underlying detection of the CSF flow in the central canal of the spinal cord remain elusive. Here we used full-field optical coherence tomography (FF-OCT) and bead tracking to demonstrate that CSF flows bidirectionally along the antero-posterior axis in the central canal of zebrafish embryos. In the zebrafish mutant cfap298 tm304 , previously known as kurly, reduction of cilia motility slows transport down the length of central canal. To investigate downstream mechanisms that could transduce CSF flow, we performed calcium imaging in sensory neurons contacting the CSF (CSF-cNs) and found that disruption in cilia motility impaired the activity of CSF-cNs. CSF-cNs across species express the transient receptor potential channel PKD2L1, also known as TRPP3, which contributes to CSF-cN chemosensory properties. Using calcium imaging and whole-cell patch clamp recordings, we found that the loss of the Pkd2l1 channel in pkd2l1 mutant embryos also abolished CSF-cN activity. Whole-cell recordings further demonstrated that opening of a single channel is sufficient to trigger action potentials in wild type CSF-cNs. Recording from isolated cells in vitro, we showed that CSF-cNs are mechanosensory cells that respond to pressure in a Pkd2l1-dependent manner. Interestingly, adult pkd2l1 mutant zebrafish develop an exaggerated spine curvature, reminiscent of kyphosis in humans. Our study indicates that CSF-cNs are mechanosensory cells whose spontaneous activity reflects CSF flow in vivo. Furthermore, Pkd2l1 in CSF-cNs contributes to the maintenance of the natural curvature of the spine.