The Baltimore Orioles and free agent right-hander Freddy Peralta have agreed to a $125 million, five-year contract, a person with direct knowledge of the negotiations told The Associated Press on Tuesday.