gemini-cli

Gemini CLI: Terms of Service and Privacy Notice

Gemini CLI is an open-source tool that lets you interact with Google’s powerful language models directly from your command-line interface. The Terms of Service and Privacy Notices that apply to your usage of the Gemini CLI depend on the type of account you use to authenticate with Google.

This article outlines the specific terms and privacy policies applicable for different account types and authentication methods. Note: See quotas and pricing for the quota and pricing details that apply to your usage of the Gemini CLI.

How to determine your authentication method

Your authentication method refers to the method you use to log into and access the Gemini CLI. There are four ways to authenticate:

For each of these four methods of authentication, different Terms of Service and Privacy Notices may apply.

Authentication Account Terms of Service Privacy Notice
Gemini Code Assist via Google Individual Google Terms of Service Gemini Code Assist Privacy Notice for Individuals
Gemini Code Assist via Google Standard/Enterprise Google Cloud Platform Terms of Service Gemini Code Assist Privacy Notice for Standard and Enterprise
Gemini Developer API Unpaid Gemini API Terms of Service - Unpaid Services Google Privacy Policy
Gemini Developer API Paid Gemini API Terms of Service - Paid Services Google Privacy Policy
Vertex AI Gen API   Google Cloud Platform Service Terms Google Cloud Privacy Notice

1. If you have logged in with your Google account to Gemini Code Assist for Individuals

For users who use their Google account to access Gemini Code Assist for Individuals, these Terms of Service and Privacy Notice documents apply:

2. If you have logged in with your Google account to Gemini Code Assist for Workspace, Standard, or Enterprise Users

For users who use their Google account to access the Standard or Enterprise edition of Gemini Code Assist, these Terms of Service and Privacy Notice documents apply:

3. If you have logged in with a Gemini API key to the Gemini Developer API

If you are using a Gemini API key for authentication with the Gemini Developer API, these Terms of Service and Privacy Notice documents apply:

4. If you have logged in with a Gemini API key to the Vertex AI GenAI API

If you are using a Gemini API key for authentication with a Vertex AI GenAI API backend, these Terms of Service and Privacy Notice documents apply:

Usage Statistics Opt-Out

You may opt-out from sending Usage Statistics to Google by following the instructions available here: Usage Statistics Configuration.

Frequently Asked Questions (FAQ) for the Gemini CLI

1. Is my code, including prompts and answers, used to train Google’s models?

Whether your code, including prompts and answers, is used to train Google’s models depends on the type of authentication method you use and your account type.

By default (if you have not opted out):

For more information about opting out, refer to the next question.

2. What are Usage Statistics and what does the opt-out control?

The Usage Statistics setting is the single control for all optional data collection in the Gemini CLI.

The data it collects depends on your account and authentication type:

Please refer to the Privacy Notice that applies to your authentication method for more information about what data is collected and how this data is used.

You can disable Usage Statistics for any account type by following the instructions in the Usage Statistics Configuration documentation.