Billing
Running an agentic workflow incurs two types of cost: GitHub Actions minutes for compute, and AI inference charged by the model provider. Both appear independently on your bill.
GitHub Actions Minutes
Section titled “GitHub Actions Minutes”Every workflow job consumes Actions compute time at standard GitHub Actions pricing. A typical run includes a short pre-activation job (10–30 seconds) and an agent job (1–15 minutes). Each job also incurs approximately 1.5 minutes of runner setup overhead.
Actions minutes are billed to the organization or user that owns the repository.
AI Inference
Section titled “AI Inference”Inference costs depend on which engine the workflow uses.
GitHub Copilot (default engine)
Section titled “GitHub Copilot (default engine)”There are two billing paths for the Copilot engine (engine: copilot, the default):
Organization billing — Inference is charged as AI Credits (AIC) against the organization’s Copilot tenant. This requires all three of the following:
-
The organization has centralized billing enabled for Copilot requests in its Copilot policies. Enable it under Organization → Settings → Copilot → Policies → Copilot CLI → “Allow use of Copilot CLI billed to the organization”. See also Authentication.
-
The workflow declares
copilot_requests: writeunderpermissions:permissions:contents: readcopilot-requests: write -
The workflow has been compiled (
gh aw compile) and the updated.lock.ymlcommitted to the repository.
Individual/seat billing — If the above conditions are not met, the workflow must be configured with a user-supplied COPILOT_GITHUB_TOKEN. In this case inference is attributed to (and limited by) the PAT owner’s Copilot entitlements rather than being billed centrally through the organization.
See Engines for a full list of engines and their authentication requirements, and Authentication for configuration details. For Copilot model pricing and AIC rates, see GitHub Copilot models and pricing.
Anthropic (Claude)
Section titled “Anthropic (Claude)”When using engine: claude or passing ANTHROPIC_API_KEY, inference is billed directly to your Anthropic account.
OpenAI (Codex / GPT)
Section titled “OpenAI (Codex / GPT)”When using engine: codex or passing OPENAI_API_KEY, inference is billed directly to your OpenAI account.
Google (Gemini)
Section titled “Google (Gemini)”When using engine: gemini or passing GEMINI_API_KEY, inference is billed directly to your Google Cloud / AI Studio account.
Estimating and Monitoring Costs
Section titled “Estimating and Monitoring Costs”Use gh aw logs to view per-run AI Credits (AIC) and duration, and gh aw audit <run-id> for a detailed breakdown of token usage and inference spend. See Cost Management for monitoring strategies, cost controls, and techniques for reducing spend.