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] He elected free agency on November 4.[47]
Los Angeles Angels
On February 12, 2025, Anderson signed a minor league contract with the Los Angeles Angels.[48] He began the year with the Triple-A Salt Lake Bees, posting a 5.06 ERA over 7 starts. On May 9, the Angels selected Anderson's contract, adding him to their active roster.[49] In five appearances for Los Angeles, he posted a 1-0 record and 6.30 ERA with 10 strikeouts over 10 innings of work. On May 24, Anderson was designated for assignment by the Angels.[50] He elected free agency on May 26, and re-signed with Los Angeles on a new minor league contract with two days later.[51] On June 9, the Angels added Anderson back to their active roster.[52] He allowed two runs in 2⁄3 of an inning against the Athletics, and was designated for assignment by the Angels on June 13.[53] Anderson elected free agency after clearing waivers the following day.[54] On June 17, Anderson re-signed with the Angels on another minor league contract.[55] On August 11, the Angels added Anderson back to their active roster.[56] He allowed four runs in 2⁄3 of an inning against the Los Angeles Dodgers, and was designated for assignment the following day.[57] Anderson cleared waivers and elected free agency on August 14.[58] He re-signed with the organization on a new minor league contract the following day.[59] Anderson elected free agency following the season on November 6.[60][61]
On December 22, 2025, Anderson re-signed with the Angels on a minor league contract.[62] On March 29, 2026, the Angels selected Anderson's contract, adding him to their active roster.[63] He elected free agency after clearing waivers on April 28.[64] He re-signed with the Angels on a minor league contract the following day.[65]