Read this document unless you want your code to be used as training dataset

Google case

Three options for gemini-cli

  • Sign in with Google
  • Gemini API key
  • Vertex AI

gemini-cli/tos-privacy

In short:

  • Vertex API for best privacy
  • Paid consumer-level privacy
  • Unpaid use my code to train Gemini

Anthropic / CC case

data-usage#data-retention

  • Zero data retention (ZDR) option for enterprise
  • 30-day retention
    • Commercial user by default
    • Consumer user if opt-out here
  • 5-year retention
    • Consumer user if opt-in here
    • Use my code to train Claude