The St. Louis Cardinals have agreed to a two-year, $11 million deal with reliever Giovanny Gallegos.

The pact includes a club option for 2025 and escalators that could make it worth $20.5 million over three seasons.

Gallegos is 3-5 with a 2.91 ERA and 14 saves in 20 chances this season. He has 72 strikeouts and 15 walks in 58 2/3 innings.