# Google Gemini

Learn how to connect Buddy with Google Gemini and run the Antigravity coding agent in your CI/CD pipelines.

## What is Google Gemini?

Google Gemini is a family of large language models from Google, and **Antigravity** is Google's agentic coding platform built on top of them - an agent that can read, write, and refactor code from natural-language prompts.

By integrating Buddy with Google Gemini you can add the **Antigravity** action to your pipelines and let the agent review code, generate changes, or automate routine engineering tasks on every push, on a schedule, or on demand.

## Setting up Google Gemini integration

1. Go to the <u>Integrations</u> tab and click **New integration**.

2. Look up and click **Google Gemini**.

3. A configuration window will show up. Here you provide:

- **Name** and **ID** of the integration
- **Scope** - whether the integration is available across the whole <u>Workspace</u>, a single <u>Project</u>, or a specific <u>Environment</u>
- **Authorization** - a Google Gemini API key (see below)

<Hint type="info">

You can adjust who can use the integration and where in the <u>Permissions</u> tab.

</Hint>

4. Once done, click **Add a new integration** to finish configuration.

## Authorization

Authorize with a Google Gemini API key.

To obtain the key:

1. Go to [https://aistudio.google.com/api-keys](https://aistudio.google.com/api-keys "seo-nf") (also linked as **Get API key** in the form).
2. Click **Create API key**, name the key and pick a Google Cloud project.

![Creating a new API key in Google AI Studio](/docs/integrations/gemini/aistudio-create-key.png 1045x605)

3. Copy the generated key value from the **API key details** window.

![API key details in Google AI Studio](/docs/integrations/gemini/aistudio-key-details.png 1055x1000)

4. Paste it into the **API KEY** field in Buddy and click **Add a new integration**. The key is stored as an encrypted secret and passed to the pipeline as a secure environment variable, never saved in plain text in your repository.

![Google Gemini integration configuration with API key authorization](/docs/integrations/gemini/gemini-api-key.png 2000x1050)

Once the integration is added, you can use the **Antigravity** action in your pipeline and reference the integration by its ID.

<Hint type="info">

Read how to configure [Antigravity with YAML](/docs/yaml/yaml-actions/antigravity.md) and [Antigravity POST parameters](/docs/api/actions/add/antigravity.md).

</Hint>


---
Original source: https://buddy.works/docs/integrations/gemini