The Red Sox have agreed to a two-year, $6.25 million deal with Craig Breslow, according to a source.

The contract also includes a $4 million team option for 2015.

Breslow was acquired at the July 31 trade deadline and pitched well in 23 appearances for the Red Sox.