1 keep company with (someone) : to spend time with (someone) — usually used figuratively
In her garden, roses keep company with lilies.
2 keep (someone) company : to spend time with (someone who would be alone if you were not there)
I'll keep you company while you wait for the train.