Whole cell patch clamping in vivo is an important neuroscience technique that uniquely provides access to both supra-threshold spiking and sub-threshold synaptic events of single neurons in the brain. This article describes how to set up and use the autopatcher, a robot for automatically obtaining high yield and high quality whole cell patch clamp recordings in vivo. Following this protocol, a functional experimental rig for automated whole cell patch clamping can be set up in one week. High quality surgical preparation of mice takes approximately 1 hour, and each autopatching experiment can be carried out over periods lasting several hours. Autopatching should enable in vivo intracellular investigations to be accessible by a significant number of neuroscience labs, and enable labs already doing in vivo patch clamp to scale up their efforts by reducing training time for new lab members and increasing experimental durations by handling mentally intensive tasks automatically.