These little green bees are sweat bees. They're called that because they love salt & might come get some from you if you're sweaty.
They're solitary, sting but not very hard, and most of them nest in bare patches of dirt next to plants.
Plant flowers & leave some bare spots!