A number of recent studies have provided compelling demonstrations that both mice and rats can be trained to perform a variety of behavioral tasks while restrained by mechanical elements mounted to the skull. The independent development of this technique by a number of laboratories has led to diverse solutions. We found that these solutions often used expensive materials and impeded future development and modification in the absence of engineering support. In order to address these issues, here we report on the development of a flexible single hardware design for electrophysiology and imaging both in brain tissue in vitro. Our hardware facilitates the rapid conversion of a single preparation between physiology and imaging system and the conversion of a given system between preparations. In addition, our use of rapid prototyping machines ("3D printers") allows for the deployment of new designs within a day. Here, we present specifications for design and manufacturing as well as some data from our lab demonstrating the suitability of the design for physiology in behaving animals and imaging in vitro and in vivo.