Barnes elected free agency Monday, per MLB's transactions log.
Barnes chose to test the open market after failing to draw interest while on waivers. He appeared in 13 games for the Cardinals during the 2023 campaign, posting a 5.93 ERA and 1.54 WHIP with eight strikeouts over 13.2 innings.