The Dodgers have agreed to a new contract with Clayton Kershaw, who will return to the team for an 18th season, a source told ESPN.