The Minnesota Twins have agreed to a minor league deal with right-handed reliever Cody Allen.

Allen was designated for assignment by the Los Angeles Angels one day after he gave up four runs over 2/3 of an inning in a 9-4 loss to the Tampa Bay Rays on June 14.

Allen had a 6.26 ERA over 23 innings in 25 appearances with the Angels and lost his closer role in his first season with the club.