Skip to main content
Enable Agno agents to interact with GitHub repositories, issues, and PRs with GitHub Tool integration.

Prerequisites

  • Set up GitHub Authentication:
    (Click for details)
    a. Navigate to GitHub Settings:
    • Log into GitHub
    • Click profile picture (top-right)
    • Select “Settings”
    • Go to “Developer settings” → “Personal access tokens” → “Tokens (classic)”
    b. Generate New Token:
    • Click “Generate new token (classic)”
    • Add descriptive note
    • Set expiration date
    • Select scopes (minimum ‘repo’ access)
    • Click “Generate token”
    • IMPORTANT: Save token immediately - only shown once!
    export GITHUB_ACCESS_TOKEN=“your_token_here” export GITHUB_BASE_URL=“https://api.github.com

Run the Example

For details, see GitHub cookbook.