Kelly, who has made just three first-team appearances this season, is out of contract in the summer, but is keen to stay at the club.
Chief executive John Williams told BBC Radio Lancashire: "It's been agreed in principle.
"Hopefully we can finalise things in the next few days."