Bee hotels can be a great addition to your yard. They will provide habitat for native solitary bees. Research suggests hole size should be from 4mm up to 10mm. The length would be 100mm long for a hole size of 6mm and 150mm long for a hole size of 8 or 10mm.
You can use drilled blocks of wood or hollow bamboo.
Possible Tenants: Different species of Resin Bees, Masked Bees, Leafcutters
You don’t actually “keep” Solitary Bees, you have no real control over them as they may come and go as they please.

Above: These can be filled with anything, bamboo, drilled logs etc.
Below: example of a drilled block of wood


======================
Below – a very simple small size Bee Hotel.