Whole-cell patch clamping in vivo is an important neuroscience technique that uniquely provides access to both suprathreshold spiking and subthreshold synaptic events of single neurons in the brain. This article describes how to set up and use the autopatcher, which is a robot for automatically obtaining high-yield and high-quality whole-cell patch clamp recordings in vivo. By following this protocol, a functional experimental rig for automated whole-cell patch clamping can be set up in 1 week. High-quality surgical preparation of mice takes ∼1 h, 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 substantial number of neuroscience laboratories, and it enables labs that are already doing in vivo patch clamping to scale up their efforts by reducing training time for new lab members and increasing experimental durations by handling mentally intensive tasks automatically.