Right-handed reliever Pedro Baez has agreed to a two-year contract with the Houston Astros, sources confirmed to ESPN's Jeff Passan.

The deal includes an option, sources said, and has a number of escalators and a buyout. It is expected to fall in the $12-14 million guaranteed range.