SAN FRANCISCO -- Like Hunter Pence and Tim Lincecum before him, Javier Lopez is staying at AT&T Park.

The 36-year-old left-hander was the only one of the club's marquee free agents to opt for free agency and drew interest from the likes of the New York Yankees and Washington Nationals, but on Thursday, Lopez and the Giants agreed to terms on a three-year, $13 million deal. The new contract is pending a physical, which will likely be taken next week.

Acquired at the deadline in 2010, Lopez has a 2.26 ERA in four seasons with the Giants and has steadily been one of the best left-handed specialists in baseball. Lopez made 69 appearances in 2013 and had a 1.83 ERA, the lowest full-season mark of his career. In 236 appearances for the Giants, he has given up just two home runs.

Pitcher Javier Lopez, who re-signed with the Giants on Thursday, has been one of baseball’s top left-handed relievers the past few years.
Pitcher Javier Lopez, who re-signed with the Giants on Thursday, has been one of baseball's top left-handed relievers the past few years. (Associated Press)

"He's so reliable," Bochy said in September. "What I love about him is he's so well prepared and so professional about how he goes about his business."

The Giants have now spent $161 million on Pence, Lincecum, Lopez and Tim Lincecum, and they intend on signing one more starter while pursuing additional options in left field.