PHILADELPHIA — Quarterback Michael Vick, who was slated to earn $16 million next season, has agreed to a restructured deal with the Philadelphia Eagles.

Vick, who was injured and inconsistent last season, eventually giving way to rookie Nick Foles, now has a three-year contract, and will compete with Foles to see who runs new coach Chip Kelly’s offense this season.

Vick, who returned to start the season finale vs. the New York Giants in December because Foles was injured, finished the season with 2,362 yards passing, 12 touchdowns and 10 interceptions.

The Eagles finished 4-12 and in last place in the NFC East. Andy Reid was fired as coach the day after the season ended, and Kelly was hired last month. Vick, who will be 33 when next season begins, seems equipped to run Kelly’s aggressive, up-tempo offense that he is bringing to the Eagles from Oregon.