Luton Town
On 5 November 2012, Smith was loaned out to Conference Premier club Luton Town until 5 January 2013, having played in 13 matches for York in 2012–13. He made his debut the following day in a 1–0 defeat at Hereford United. Smith scored his first goal for Luton with a header in their 3–0 home win over Alfreton Town on 8 December 2012. This proved to be his final appearance in his loan spell for Luton, as he was recalled by York on 11 December 2012, having scored once in six appearances for the Bedfordshire team. Smith was disappointed at the recall, having previously expressed his desire to stay at Luton and experience "playing in front of a big crowd every week". On 29 December 2012, it was confirmed that Smith would make a permanent move to Luton on 1 January 2013, signing a one-and-a-half-year contract after the two clubs agreed a fee of £50,000. He made 28 appearances as a permanent player for Luton in 2012–13, including in the club's 1–0 FA Cup win over Premier League team Norwich City.
Smith became a constant presence in central midfield during the first half of Luton's 2013–14 season, which helped to propel the club into second place in the table. However, a mistimed challenge from Jon Nurse in a 2–1 win over Barnet on 26 December 2013 saw Smith suffer a "horrific" bone fracture of both his right tibia and fibula. Luton won promotion to League Two with three matches of 2013–14 remaining, and Smith came on as a late substitute four months to the day after his injury in a 1–0 victory over Hyde on the last day of the campaign.
In 2014–15, Smith returned fully fit to Luton's starting lineup in a 1–0 home win over Cheltenham Town on 13 September 2014. His return coincided with an 11-match unbeaten league run that placed the club at the top of the table. Luton's form fell away in the final months of the season, winning only three times in their last 13 matches, resulting in the club finishing in eighth position. However, Smith's influence on the campaign saw him awarded the Players' Player of the Year and Luton Town Website Player of the Year accolades. At the end of the season he signed a three-year contract extension with the club.
Smith scored Luton's first goal of 2015–16 on 8 August 2015, deflecting in a Craig Mackail-Smith shot to earn the club a 1–1 draw with Accrington Stanley. He scored twice during a run of four consecutive league wins from late September to early October, having also scored during a 3–2 away defeat to Notts County prior to this. However, Luton's inconsistent form throughout the season resulted in the club finishing in 11th position.
He began 2016–17 by scoring Luton's third goal in second half stoppage time on the opening day of the season in a 3–0 win away to Plymouth Argyle, having entered the match as an 88th-minute substitute. Having predominantly played as a substitute early in the season, manager Nathan Jones said "I told him to be patient, because he's a key member of our squad". On his second start of the season, Smith scored Luton's second goal in a 2–1 win away to Gillingham in the EFL Trophy on 30 August 2016. After making one start in Luton's opening 22 league matches, Smith forced his way into the first-team at the turn of the year, starting 11 of the next 15 league matches, before losing his place in the team for the final nine league matches of the season. He was an unused substitute in both legs of the play-off semi-final defeat to Blackpool, losing 6–5 on aggregate, and finished the season with 35 appearances and two goals. After the end of the season, Smith was transfer listed by Luton.