5-10 min setup

Connect GitHub to StackSpend

Track GitHub costs including Actions compute minutes, Copilot seats, Codespaces hours, Packages data transfer, and Storage usage.

StackSpend tracks GitHub costs via the Billing API. Actions compute minutes, Copilot seats, Codespaces hours, Packages data transfer, Storage—one unified view. Daily visibility and anomaly alerts.

Organization Account Required

GitHub billing data is only available for organization accounts, not personal accounts. You need organization owner or admin access to create the required Personal Access Token.

Prerequisites

  • A GitHub organization account (not personal)
  • Organization owner or admin access
  • Ability to create Personal Access Tokens
Step 1

Create a Personal Access Token

Create a Classic Personal Access Token (PAT) with the required scopes for billing access.

  1. 1Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
  2. 2Click Generate new tokenGenerate new token (classic)
  3. 3Note: StackSpend Cost Tracking
  4. 4Expiration: Choose an appropriate expiration (e.g., 90 days or No expiration)
  5. 5Select the following scopes:
    • read:org - Read org and team membership
    • read:user - Read user profile
    • manage_billing:enterprise - Access billing data (Actions, Packages, Codespaces, Storage)
    • manage_billing:copilot - Access Copilot billing data (if using Copilot)
  6. 6Click Generate token
  7. 7Important: Copy the token immediately. It starts with ghp_. You won't be able to see it again.

Note: For fine-grained tokens, use parent permissions admin:org, user, and admin:enterprise (which includes manage_billing:enterprise).

Step 2

Get Your Organization Name

You'll need your GitHub organization name (the username of your organization).

  1. 1Go to your organization's GitHub page (e.g., github.com/your-org)
  2. 2The organization name is the username in the URL (e.g., your-org)
Step 3

Connect in StackSpend

  1. 1Go to SettingsProviders in your StackSpend dashboard
  2. 2Click Add Provider → Select GitHub
  3. 3Enter your credentials:
    • Organization: Your GitHub organization name
    • Personal Access Token: The token you created in Step 1
  4. 4Click Test Connection to verify
  5. 5Once the test succeeds, click Connect

After Connecting

Once GitHub is connected, StackSpend begins syncing billing data. GitHub billing data updates daily.

  • Costs sync automatically every 6 hours
  • Tracks: Actions (compute minutes), Packages (data transfer), Copilot (seats), Codespaces (compute hours), Storage (GB)
  • Billing data updates daily by GitHub
  • Free tier usage is automatically excluded from cost calculations

Know where your cloud and AI spend stands — every day, starting today.

Sign up
Connect GitHub to StackSpend — Step-by-Step Guide