If you divorce a Canadian citizen living in the us who gets custody of the kid?

That depends on the judge. Normally in the US the mother is given custody. Although there is a trend of joint custody. It's no different than being married to a US citizen. My sister was married to Canadian and she was given full custody. It is always best to work out the arraingment with the ex.