The invention relates to an in-well hydraulic pumping unit. The in-well hydraulic pumping unit comprises a displacement sensor electronic bin, a cylinder cover, a hydraulic oil channel, a cylinder cover pressing plate, a vent hole, a
crude oil outlet, a magnetic ring, a
piston, a hydraulic oil communication port, a connecting ring, a sensor rod, an oil cylinder body, a guide column, an oil cylinder bottom cover, an oil rod
coupling, an oil rod, an oil
pipe coupling, an
oil well pump, a sleeve, a Christmas tree, a process oil
pipe, a cylinder cover lifting ring and a hydraulic oil source. The process oil
pipe is made of steel, the inner
diameter is larger than the outer
diameter of the oil cylinder, and an annular space is formed as an oil extraction channel. The Christmas tree is a connector leading an
oil well to the outside and is provided with a valve, a safety
system and the like. A displacement sensor is composed of the electronic bin, the magnetic ring and the sensor rod, and the operating position
stroke parameters of the
oil well pump
piston in the oil well pump can be accurately adjusted through the oil cylinder displacement sensor. The in-well hydraulic pumping unit drives the rod type pump to replace an electric
submersible pump, the oil well pump does not need to be pulled out when steam is injected, 'injection and production integration 'can be achieved, and the hydraulic pumping unit can be used for offshore cluster wells and areas with high land cost.