How to do peptide water refinement/energy minimization before docking

You could use haddock3 which has a protocol to generate cyclic peptide conformations.

You will have to run it locally.

Check the following example: haddock3/examples/peptide-cyclisation/README.md at main · haddocking/haddock3 · GitHub