Miniaturized fluorescence microscopes for imaging calcium transients are a promising tool for investigating the relationship between behaviour and population-level neuronal activity in rodents. However, commercially available miniature microscopes may be costly, and, because they are closed-source, may not be easily modified based on particular experimental requirements. Here, we describe how to build and use a low-cost compact head-mounted endoscope (CHEndoscope) system for in vivo calcium imaging. The CHEndoscope uses an implanted gradient index (GRIN) lens along with the genetically encoded calcium indicator GCaMP6 to image calcium transients from hundreds of neurons simultaneously in awake behaving mice. This system is affordable, open-source, and flexible, permitting modification depending on the particular experiment. This Unit describes in detail the assembly, surgical implantation, data collection, and processing of calcium signals using the CHEndoscope system. The aim of this open framework model is to provide an accessible set of miniaturized calcium imaging tools for the neuroscience research community.