Keep to oneself

Meaning: To avoid talking to or socialising with other people.

Example: He is friendly but tends to keep to himself.