Anderson began the 2019 season with Sacramento, with whom he was 2-1 with a 3.76 ERA in 8 starts covering 38.1 innings in which he struck out 41 batters.[18] The Giants promoted Anderson to make his major league debut on May 15 against the Toronto Blue Jays.[19] His two hits in the game made him the first Giants pitcher since at least 1908 to have a multi-hit game with the bat in his first major league game.[20] With the Giants in 2019 he was 3-5 with two saves and a 5.44 ERA in 28 games (16 starts) in which he pitched 96 innings.[18]
In 2020, Anderson was used exclusively out of the bullpen, appearing in 18 games. He had 18 strikeouts in 15+1⁄3 innings.
Minnesota Twins
On February 4, 2021, the Giants traded Anderson to the Minnesota Twins in exchange for LaMonte Wade.[21] In 8+2⁄3 innings over four appearances for Minnesota in 2021, Anderson pitched to a 9.35 ERA with eight strikeouts.
Texas Rangers
On June 18, 2021, Anderson was claimed on waivers by the Texas Rangers.[22] He was then assigned to the Triple-A Round Rock Express, where he recorded 3.0 scoreless innings for the team. On June 29, Anderson was designated for assignment without having appeared in a game for the team.[23]
Baltimore Orioles
On July 3, 2021, Anderson was claimed on waivers by the Baltimore Orioles and optioned to the Triple-A Norfolk Tides.[24] On August 4, Anderson was designated for assignment by the Orioles.[25]
On November 19, 2021, Anderson was claimed off waivers by the Toronto Blue Jays.[27] On November 30, Anderson was outrighted off of the 40-man roster.[28] He was assigned to the Triple-A Buffalo Bisons to begin the season.
On June 27, 2022, Anderson was selected to the active roster.[29] He was designated for assignment on July 6. Anderson cleared waivers and was sent outright to Triple-A Buffalo on July 9.[30] He elected free agency following the season on October 9.[31]
Kia Tigers
On November 26, 2022, Anderson signed with the Kia Tigers of the KBO League.[32] Anderson served as Kia's Opening Day starter in 2023.[33] In 14 starts, he registered a 4–7 record and 3.76 ERA with 64 strikeouts in 79.0 innings pitched. On July 6, 2023, Anderson was released by the Tigers after the team re–signed Thomas Pannone.[34]
Philadelphia Phillies
On July 20, 2023, Anderson signed a minor league contract with the Philadelphia Phillies organization.[35] He made 11 starts for the Triple–A Lehigh Valley IronPigs, posting a 4–2 record and 4.85 ERA with 35 strikeouts across 52 innings. Anderson elected free agency following the season on November 6.[36]
Olmecas de Tabasco
On February 23, 2024, Anderson signed with the Olmecas de Tabasco of the Mexican League.[37] He made one start for Tabasco, tossing seven scoreless innings with four strikeouts. Anderson was released by the Olmecas on April 17.[38]
Texas Rangers (second stint)
On April 18, 2024, Anderson signed a minor league contract with the Texas Rangers.[39] On May 15, after four starts with the Triple–A Round Rock Express, Texas selected Anderson’s contract and promoted him to the active roster.[40] In two games for Texas, he compiled a 5.40 ERA with three strikeouts across 3+1⁄3 innings pitched. Anderson was designated for assignment by the Rangers following the promotion of Gerson Garabito on May 26.[41]
Miami Marlins
On May 30, 2024, the Rangers traded Anderson to the Miami Marlins in exchange for cash considerations.[42] In 3 games for Miami, he struggled to a 10.97 ERA with 6 strikeouts across 10+2⁄3 innings pitched. On August 9, Anderson was designated for assignment by the Marlins.[43] He cleared waivers and was sent outright to the Triple–A Jacksonville Jumbo Shrimp on August 11.[44] On September 20, Miami added Anderson back to the major league roster.[45] On November 1, Anderson was removed from the 40–man roster and sent outright to Jacksonville.[46] On November 6, he elected free agency.[47]