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

# config

The `config` module is used in cases where you need to override the default Github token and repository path associated with the event payload.

By default, a `GITHUB_TOKEN` with permissions for all repositories enabled in the Github app installation is injected into an agent's runtime environment.

## Example Usage

<CodeGroup>
  ```python python theme={null}
  from blocks import config

  config.set_github_token("your-github-token")
  config.set_github_repository_path("your-github-repository-path") # Example: "YourOrg/repo-name"
  ```
</CodeGroup>

## Methods

### set\_github\_token

<CodeGroup>
  ```python python theme={null}
  config.set_github_token(token)
  ```
</CodeGroup>

Sets the `GITHUB_TOKEN` environment variable.

<ParamField path="token" type="string">
  The GitHub token to use.
</ParamField>

### set\_github\_repository\_path

<CodeGroup>
  ```python python theme={null}
  config.set_github_repository_path(path)
  ```
</CodeGroup>

Sets the `GITHUB_REPOSITORY_PATH` environment variable.

<ParamField path="path" type="string">
  The GitHub repository path to use. For example, `YourOrg/repo-name`.
</ParamField>
