Connect GitHub

Once GitHub is connected, your agent can read issues and pull requests, comment, label, and report status — useful for digests, standups, and CI watch workflows.

1

Create a GitHub token

In GitHub, go to Settings → Developer settings → Personal access tokens. Create a fine-grained token scoped to the repos you want the agent to access, with read access to issues, pull requests, and contents (add write only if the agent should comment or label).

2

Add the token to your Agent Environment Profile

In the BrainClaw dashboard, open your Agent Environment Profile and add the token as a secret (e.g. GITHUB_TOKEN). Secrets are stored in an encrypted vault and injected into the agent runtime.

3

Redeploy the instance

Redeploy so the new secret is available to the agent. Verify by asking the agent to list your open pull requests.

4

Wire it into a workflow

Point a scheduled workflow (like the Daily GitHub digest) at your repos. The agent uses the token to pull data and post summaries to your channel.

Good to know

  • Use a fine-grained token scoped to only the repos the agent needs.
  • Grant write scopes only if the agent should comment, label, or open PRs.

Connect GitHub to your agent

Spin up a BrainClaw instance and wire up GitHub in minutes.