The Boston Celtics and veteran center Al Horford agreed to a two-year, $20 million contract extension, his agency confirmed Thursday on social media.