Arden Key represents a depth signing for the Niners. Kirby Lee-USA TODAY Sports

The 49ers are adding depth pieces on offense and defense Wednesday afternoon. Shortly after their Wayne Gallman agreement surfaced, Ian Rapoport of NFL.com reports San Francisco agreed to terms with Arden Key.

Like Gallman, Key visited the 49ers this week. Formerly an Oakland Raiders third-round draft choice, the three-year defensive end contributor will head back to the Bay Area on a one-year deal.

The Raiders waived Key last week, doing so after adding former 49ers defensive end Solomon Thomas in free agency. The 49ers lost Thomas and Kerry Hyder, who signed with the Seahawks, and injuries significantly affected their defensive end group last season. Both Nick Bosa and Dee Ford missed most of the season. Key may be in position to see frequent time.

While Key went in the 2018 third round, he was viewed as a possible first-round pick at one point. The LSU product registered 11 sacks as a sophomore in 2016. While he has not produced much as a pro (three sacks in three seasons), Key did post 11 quarterback hits last season as a Raider reserve. Next season will be Key’s age-25 campaign.

More must-reads:

TODAY'S BEST
Report: Cavs owner 'would never' trade Donovan Mitchell to this team
Kim Mulkey adds legendary LSU alum to coaching staff
Insider details LeBron James' role in Lakers' head-coaching search
Cardinals switch up offensive line, move 2023 first-rounder to new position
Commanders poach another key overseer of Lions rebuild
Commanders to hire veteran executive as player personnel director
Guardians designate outfielder for assignment
Patriots' Drake Maye starts OTAs in surprising position
Bettors are buying Bronny James hype before the 2024 NBA Draft
Mets release veteran infielder
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Victor Wembanyama, Chet Holmgren highlight 2023-24 All-Rookie team
Jaguars' Doug Pederson discusses Trevor Lawrence contract extension
Saints, star CB 'moving forward' following trade chatter
Pacers ride historic shooting performance to Game 7 blowout of Knicks
Timberwolves mount incredible second-half comeback to stun Nuggets in Game 7
Xander Schauffele proves doubters wrong with historic win at 2024 PGA Championship
Four things we learned from Joey Logano's All-Star Race win at North Wilkesboro
Phil Foden lifts Manchester City to fourth consecutive English Premier League title
Watch: Aaron Judge blasts 13th home run in Yankees' seventh straight win