The invention discloses a flexible automatic assembly production line for oil cylinders, which includes a transfer mechanism, a lifting mechanism, an oil injection mechanism, a push rod mechanism, a guide mechanism, an upper sleeve mechanism, a sleeve changing mechanism, a first servo jacking mechanism, a first limit position Mechanism, auxiliary booster mechanism, first moving mechanism, second limit mechanism, guide sleeve tightening mechanism, second servo jacking mechanism, anti-rotation mechanism, downward pressure mechanism, anti-rotation adjustment mechanism, second moving mechanism, the The transfer mechanism enters the cylinder body from the left end of the production line, passes through various structures in turn, and then outputs from the right end. The transfer mechanism transfers the cylinder body to the lifting mechanism. Transfer the cylinder to the next positioning tool. The invention has reasonable design, high production line automation degree, stable assembly process, standardized operation, reliable assembly quality, continuous automatic transfer and automatic assembly of workpieces, high production efficiency and low labor intensity.