It is not recommended to give guinea pigs a cleaned-out coconut shell.
Sharp edges can cut their mouths, small pieces are a choking hazard, and the shell is difficult to digest.
Safer options include small amounts of fresh coconut meat, diluted coconut water, or unsweetened coconut flakes. Always consult your veterinarian before introducing new foods.