This paper proposes a parameter optimization method for a terminal sliding mode controller (TSMC) based on a multi-strategy improved crayfish algorithm (JLSCOA) to enhance the performance of ship dynamic positioning systems. The TSMC is designed for the “Xinhongzhuan” vessel of Dalian Maritime University. JLSCOA integrates subtractive averaging, Levy Flight, and sparrow search strategies to overcome the limitations of traditional crayfish algorithms. Compared to COA, WOA, and SSA algorithms, JLSCOA demonstrates superior optimization accuracy, convergence performance, and stability across 12 benchmark test functions. It achieves the optimal value in 83% of cases, outperforms the average in 83% of cases, and exhibits stronger robustness in 75% of cases. Simulations show that applying JLSCOA to TSMC parameter optimization significantly outperforms traditional non-optimized controllers, reducing the average time for three degrees of freedom position changes by over 300 s and nearly eliminating control force and velocity oscillations.