Earn one’s keep

To earn one’s pay or a place to live by doing some work.

I work hard in my uncle’s garden in order to earn my keep when I stay with him.