Connect your agent to GitHub

GitHub access lets your agent inspect repositories, summarize pull requests, and help with issue triage. Use a scoped token with least privilege so automation stays useful and safe.

Tip: Prefer a dedicated bot account for org repos. It makes access reviews and token rotation easier.

1

Choose the GitHub account to authorize

  1. Use a dedicated bot/service account when possible.
  2. Grant that account access only to the repositories your agent needs.
  3. Confirm org SSO requirements before creating the token.
2

Create a fine-grained personal access token

  1. Go to GitHub → Settings → Developer settings → Personal access tokens.
  2. Create a Fine-grained token with an expiration date.
  3. Select only required repositories and minimum permissions (for example: Issues and Pull requests).
  4. Copy the token once and store it securely.

If your organization requires SSO authorization, approve the token for the organization before testing.

3

Add the token to your agent

  1. Add the value in your integration secrets as GITHUB_TOKEN (or your integration key name).
  2. Reload your agent/integration settings.
  3. Ask your agent to verify it can list repositories and read issues.
4

Verify with practical prompts

  • "List open pull requests in repo X and summarize risk."
  • "Find stale issues with no updates in 14 days."
  • "Draft a release note from merged PRs in the last week."

Also useful: connect your agent to Linear so planning and code work stay connected.

Sign up

Welcome to ClawNode

Pick a plan: OpenClaw (bring your own API key) or a Node (Ollama + open-source LLM preinstalled).

or

By selecting Agree and continue, I agree to ClawNode's Terms of Service and Privacy Policy.

or

Already have an account? Log in