"I'm delighted to have signed Sam," Wrexham boss Dean Saunders told his club' official website.
"He has had a very good grounding in the game with City and typifies the kind of player I feel can help take the club forward.
"He is young, ambitious and also keen to continue his education as a footballer."