Tips on working from home with a baby

How do you work at home with a 10 month old? I feel bad leaving him alone to play. I also can’t leave him in a playpen for more than 5 minutes without him crying to get out. He’s a really active boy.