Kenyan Sand Boas are relatively small, ground-dwelling snakes that do not require tall enclosures or expansive floor space. An adult can be comfortably housed in a ten to twenty gallon tank, depending on the individual's size. Females, which tend to be larger and heavier than males, generally do better in the upper end of that range, while a smaller male may thrive in a more compact setup. Prioritize floor space over height, since this species has no climbing instincts and spends nearly all of its time at or below substrate level.
Glass terrariums with secure screen tops are the most popular enclosure choice and work well as long as you manage humidity and heat retention carefully. The screen lid allows excellent ventilation, which is important for a species that prefers dry conditions, but it also allows heat to escape quickly, so your heating setup needs to compensate. Front-opening enclosures are another excellent option that reduces the stress of reaching in from above, which can startle a burrowing snake.
Plastic tub setups are widely used by breeders and experienced keepers who maintain multiple animals. They retain heat and humidity more effectively than glass, are lightweight, easy to clean, and significantly less expensive. The tradeoff is reduced visibility and the need to drill or melt ventilation holes yourself. For a single pet, either a glass terrarium or a well-ventilated plastic tub will serve the snake perfectly well.
Regardless of enclosure type, security is paramount. Kenyan Sand Boas are surprisingly strong for their size and can push through loose-fitting lids or gaps in enclosure hardware. Make sure all openings are sealed, clips or locks are in place, and there are no gaps wider than the snake's head. An escaped Sand Boa can be very difficult to locate because of its small size and instinct to burrow into tight spaces.