Baby won't sleep in crib. Advice?

Dina👸🏻🇧🇦 • FTM. Animal lover. Strong supporter of vaccines, BLM, LGBT, & getting petty when someone tries me. 🤷🏽‍♀️
While in the hospital I had tons of family visit, meaning he was being held just about every second someone was there. He's now 12 days old and refuses to sleep in his crib. Fpr the first few days he wouldn't sleep at all unless he was in my arms. Now he's willing to sleep for a few hours on my bed. I don't want to Cosleep but I've given in, due to being so tired and just wanting to rest too. I want him in his crib but as soon as I put him in it he wakes up and begins crying. Any ladies have advice on how to make the transition?