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

# autogen.tools.experimental.google.authentication.GoogleCredentialsLocalProvider

<h2 id="autogen.tools.experimental.google.authentication.GoogleCredentialsLocalProvider" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">GoogleCredentialsLocalProvider</span>
</h2>

```python theme={null}
GoogleCredentialsLocalProvider(
    client_secret_file: str,
    scopes: list[str],
    token_file: str | None = None,
    port: int = 8080
)
```

A protocol for Google credentials provider.<br />A Google credentials provider that gets the credentials locally.<br />

<b>Parameters:</b>

| Name                 | Description                                        |
| -------------------- | -------------------------------------------------- |
| `client_secret_file` | **Type:** str                                      |
| `scopes`             | **Type:** list\[str]                               |
| `token_file`         | **Type:** str \| None<br /><br />**Default:** None |
| `port`               | **Type:** int<br /><br />**Default:** 8080         |

### Instance Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### host

<br />

Localhost is the default host.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### port

<br />

The port from which to get the credentials.

### Instance Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### get\_credentials

```python theme={null}
get_credentials(self) -> Credentials
```

Get the Google credentials.

<br />
