In this study, Directed energy deposition (DED) among additive manufacturing is applied to repair damaged spindle key parts of planner miller. The material of the spindle key is SCM415, and the P21 Powder is used. In order to find the optimal deposition conditions for DED equipment, a single-line deposition experiment is conducted to analysis five parameters. The laser power affects the width, and the height is a parameter affected by coaxial gas and powder gas. In addition, laser power, powder feed rate, coaxial gas, and powder gas are parameters that affect dilution. Otimal deposition is that 400 W of laser power, 4.0 g/min of powder feed rate, 6.5 L/min of coaxial gas, 3.0 L/min of powder gas and 4.5 L/min of shield gas. By setting the optimum conditions, a uniform deposition cross section in the form of an ellipse can be obtained. Damage recovery process of spindle key consists of 3D shape design of the base and deposition parts, deposition path creation and deposition process, and post-processing. The hardness of deposited area with P21 powder on the SCM415 spindle key is 336 HV for the surface of the deposition, 260 HV for the boundary area, and 165 HV for the base material.