LAS VEGAS — Danny Green is remaining with the 76ers.

The swingman agreed late Wednesday to a two-year, $20 million contract to stay with the team, a league source confirmed.

Green’s “Inside The Green Room” cohost, Harrison Sanford, was first to report the agreement. It comes after Green and the Sixers were nowhere close to a deal that would keep him with the team during the first two days of the free-agency period. In addition, representatives from the Milwaukee Bucks, Boston Celtics, Chicago Bulls, Brooklyn Nets, Golden State Warriors, Cleveland Cavaliers and New Orleans Pelicans were reaching out to him.

He turned down a two-year offer from the Cavs.

Sanford said the Sixers can opt out of the second year of Green’s deal on July 1, 2022.

» READ MORE: Known for his dedication, the Sixers’ Tyrese Maxey is hard at work to become a better facilitator

The Sixers acquired Green, Terrance Ferguson, and Vincent Poirier on Dec. 8 from the Oklahoma City Thunder for Al Horford, a protected 2025 first-round pick, Theo Maledon (the 34th pick in the draft), and the rights to Vasilije Micic.

Green quickly became one of the Sixers’ veteran leaders and the glue guy in the starting lineup. The 34-year-old averaged 9.5 points and shot 40.5% on three-pointers this past season. He also had a career-tying 1.3 steals per game and 0.8 blocks while playing in 69 of 72 regular-season games.

The New York native has a knack for complementing elite players and winning NBA titles. Green helped the Los Angeles Lakers win the 2020 NBA championship. That marked his second straight NBA title and third overall. He also won it with the 2019 Toronto Raptors and 2014 San Antonio Spurs.

The Sixers missed Green’s calmness, leadership and ability to hit big shots in the Eastern Conference semifinal series loss to the Atlanta Hawks after he suffered a season-ending calf strain early in Game 3.

» READ MORE: The Sixers have signed first-round pick Jaden Springer and free agent Andre Drummond

So far, the Sixers have been able to re-sign Green and reserve swingman Furkan Korkmaz in free agency. They also added reserve power forward Georges Niang and center Andre Drummond, who will back up Joel Embiid. Drummond has a one-year minimum deal.

Drummond signed his contract after arriving at the Sixers practice facility on Wednesday and undergoing medical testing. Teams are allowed to sign and announce one- and two-year minimum deals before the end of the NBA moratorium. Other free agents can’t sign their deals until the moratorium ends at 12:01 p.m. Friday.

Sixers executive named GM of Australian team

Danny Mills is about to manage his hometown team.

The Sixers front office executive will be named general manager of basketball operations of the Perth Wildcats, league sources confirmed. The Wildcats play in Australia’s National Basketball League. Mills is a native of Perth, located in Western Australia. He’s been with the Sixers since 2014, rising up the ranks. He served as the director of scouting the past nine months.

Summer League flow

Tyrese Maxey left Las Vegas Thursday following the Sixers Summer League team’s training camp practice to attend a pre-approved offseason activity. The point guard will return for Monday’s NBA Summer League opener against the Dallas Mavericks.

In other news, second-round pick Filip Petrušev attended his first practice. The power forward was mostly a bystander after flying in from Europe. Thursday also marked Lamar Peters’ first practice. And second-round pick Charles Bassey sat out the end-of-practice scrimmage for precautionary reasons after bumping his left knee. He had an ice bag on his knee.