Lei started his football career in 2010 when he was loaned to Beijing Guoan's satellite team Beijing Guoan Talent, which would play as a foreign team in S. League. He made his senior debut in a 1–0 home defeat against Étoile FC on 12 February 2010. He returned to Beijing in July 2010 and was promoted to first team squad in 2011. On 25 April 2011, he made his debut for the club in a 3–0 home victory over Dalian Shide. He scored his first goal on 6 July 2011 which ensured that Beijing beat their rival Shanghai Shenhua 3–0. Lei played eight league matches in his debut season, however, he appeared in just one match in the 2012 season due to injury. He was mainly used as a right back by Serbian manager Aleksandar Stanojević in the 2013 season and made 6 appearances in the first half of the season.
On 31 July 2013, Lei was loaned to Primeira Liga side Marítimo until 30 June 2014. He mostly played for Segunda Liga side Marítimo B and established himself as a starter for the club during the second half of the season.