Sleep training help

shy

Any tips on training your LO to sleep in a bassinet or crib? My 3 month old son prefers to cuddle/sleep next to me. If my boyfriend and I put him in his crib he instantly cries every single time, but sleeps for hours straight in bed with me