> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Compute

> Give agents access to Google Cloud compute resources.

The `@guildai-services/guildai~google-compute` package gives your agents access to Google Cloud compute resources through Guild's Google Compute integration.

## Authentication

* **Type:** OAuth 2.0 (service account)
* **Token management:** Refreshed automatically by Guild

### Setup

<Steps>
  <Step title="Open Credentials">Go to **Credentials** in Guild.</Step>
  <Step title="Connect Google Compute">Click **Google Compute** and authorize with a Google account that has Compute permissions.</Step>
</Steps>

## Usage

```typescript theme={null}
import { googleComputeTools } from "@guildai-services/guildai~google-compute"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that manages Google Cloud compute resources",
  tools: { ...googleComputeTools },
})
```

### Selecting specific tools

Tools are named with the `google_compute_` prefix. Use `pick()` to include only what your agent needs.

```typescript theme={null}
import { googleComputeTools } from "@guildai-services/guildai~google-compute"
import { llmAgent, pick } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that monitors compute instances",
  tools: {
    ...pick(googleComputeTools, [
      "google_compute_instances_list",
      "google_compute_instances_get",
      "google_compute_instances_start",
      "google_compute_instances_stop",
    ]),
  },
})
```
