Free-agent guard Isaiah Thomas has agreed to a one-year, $2 million deal with the Denver Nuggets, league sources told ESPN.

Thomas met with Tim Connelly, Denver's president of basketball operations, and coach Michael Malone in Las Vegas in recent days, continuing to talk and text with them about a role and the circumstances surrounding him joining the Nuggets, league sources said.

This is a high-reward, low-risk gamble for the Nuggets, who aspire to reach the Western Conference playoffs this season. For Thomas, it is a chance to re-establish himself on a winning team, stay healthy and re-enter free agency next summer.

Malone is planning for Thomas, who is rehabbing from hip surgery, to play a significant scoring and playmaking role off Denver's bench. Malone coached Thomas with the Sacramento Kings in 2013-14 and has been enthusiastic about incorporating him into the Nuggets.

Isaiah Thomas, who played only 32 games with the Cavaliers and Lakers last season, will be joining his fourth team in a year. Andrew D. Bernstein/NBAE/Getty Images

Thomas, 29, has been steadily progressing in rehabilitation since an early-April arthroscopic cleanup procedure on his right hip. Thomas averaged 28.9 points per game for the Boston Celtics in 2016-17, a second-team All-NBA season that appeared to be clearing the way for a long-term, $100 million contract. But an injury on the same right hip that cut short his playoffs in 2017 and cost him eight months of rehab, and a trade to the Cleveland Cavaliers last summer, upended his hopes for that kind of long-term deal.

Thomas joined the Los Angeles Lakers as part of a trade-deadline deal with Cleveland, where he had played only 15 games in 2017-18. Thomas has spent time rehabbing between Seattle and Los Angeles this summer.