You are free to leave an agency for any reason and at any time. If you do leave an agency, you will keep your Upwork profile and related work history from your time there.
To leave your agency
- Go to Settings ›My Teams
- Select Leave Team from the Actions list