The opposite of “selfish” is “generous”
“Selfish” implies relatively ego-centered an self-interested; e.g. “Oliver’s selfish because he doesn’t like to share anything with others.”
“Generous” means to give away more of something; e.g. “He’s generous because he helps others and shares a lot of his belongings with his friends.”