There is a setting in Gemini but it removes all your chat history. For Antigravity, I think there is nothing preventing them from use your code and data your agents upload in the background unless you are a workspace user.
Note: Canceled my ChatGPT subscription and deleted an account.