All Dota 2 heroes are completely free and unlocked for all players, so there’s no need to do anything to get them (apart from finishing the tutorial).