Anthropic Agentic Billing Change: What Every Developer Must Know (June 15, 2026)
Starting June 15, 2026, Claude Agent SDK, claude -p, and Claude Code GitHub Actions move off your plan’s subscription limits onto a separate tiered credit pool. Here is the complete breakdown of what changed, who is affected, and how to manage costs before and after the change.
claude -p, GitHub Actions, third-party SDK apps — stops counting against subscription interactive limits. A new credit pool activates. Interactive Claude Code terminal sessions are unchanged. Check your Anthropic console to set billing alerts before June 15.claude terminal sessions are NOT affected. CI/CD pipelines, shell scripts using claude -p, and Agent SDK code all draw from the new pool starting June 15.
What Changed and Why
Before June 15, 2026, all Claude usage — whether you typed a prompt interactively in the Claude Code terminal or called the Agent SDK from a Python script — drew from the same rate-limit bucket included with your plan. A Claude Pro subscriber got a single pool of usage that covered everything: interactive conversations, claude -p calls in shell scripts, SDK invocations, and GitHub Actions.
Starting June 15, 2026, Anthropic splits this into two buckets:
- Interactive bucket — Claude Code terminal (REPL), claude.ai web, Claude desktop app. Stays on subscription rate limits, unchanged.
- Programmatic credit pool — Claude Agent SDK,
claude -p, Claude Code GitHub Actions, third-party apps via Agent SDK. Gets its own monthly credit allowance, billed at API rates. Once exhausted, usage bills as pay-as-you-go API charges on top of your subscription.
Anthropic's reasoning: agentic and programmatic workloads have fundamentally different cost profiles from interactive chat. A single Agent SDK workflow can consume more tokens in one run than weeks of interactive chat. Separating the pools lets Anthropic offer predictable subscription pricing for interactive use while giving programmatic users a transparent, scalable cost model.
Which Tools Are Affected
-
▶
Claude Agent SDK (Python + TypeScript)
Any code usinganthropic.Anthropic()or@anthropic-ai/sdkto call Claude programmatically. This includes agent frameworks, scripts, batch processing, and custom tooling built on the SDK. -
▶
claude -p— Claude Code non-interactive mode
The pipe/print mode of Claude Code, used in shell scripts, Makefiles, CI/CD hooks, and automation. Example:echo "review this code" | claude -porclaude -p --output-format json "summarize changes". -
▶
Claude Code GitHub Actions
The official Anthropic GitHub Action that runs Claude Code in CI/CD pipelines — for automated code review, PR summaries, test generation, and documentation updates. -
▶
Third-party applications via Agent SDK
Any third-party tool that authenticates using your Claude subscription through the Agent SDK (rather than an API key). If a tool asks you to log in with your Claude subscription, it may be affected. -
▶
Interactive Claude Code terminal — NOT affected
The conversational REPL you open in a terminal, type prompts into, and read responses from. This stays on subscription rate limits exactly as before. Your daily interactive workflow is unchanged.
New Credit Pool Tiers
monthly credit pool
monthly credit pool
monthly credit pool
Each plan includes a monthly credit pool for programmatic usage, with the credit amount matching the plan's subscription price:
| Plan | Subscription Cost | Programmatic Credit Pool | Interactive Usage | After Credits Exhausted |
|---|---|---|---|---|
| Claude Pro | $20/month | $20/month at API rates | Unchanged rate limits | Pay-as-you-go API rates |
| Claude Max 5x | $100/month | $100/month at API rates | 5x subscription limits | Pay-as-you-go API rates |
| Claude Max 20x | $200/month | $200/month at API rates | 20x subscription limits | Pay-as-you-go API rates |
Cost Math: Real Examples
The following examples use Anthropic's standard API pricing for the models commonly used with Claude Code. All costs are in USD.
Example 1: Daily shell scripts using claude -p
Result: Exceeds the Pro plan's $20 credit pool. You'd pay ~$2.50 as overage at API rates. Consider upgrading to Max 5x or switching lighter automation to Sonnet 4.6 (3–5x cheaper output).
Example 2: Agent SDK workflow for nightly code review
Result: Exceeds both Pro ($20) and Max 5x ($100 if combined with other usage) credit pools. Consider batching reviews (weekly instead of nightly), using Sonnet 4.6 for initial triage, or routing to the direct API with a separate key.
Example 3: Lightweight automation — commit message generation
Result: Well within the Pro plan's $20 credit pool. Lightweight claude -p automation using Sonnet 4.6 for simple tasks is very cost-effective even after the billing change.
Example 4: amux parallel agent fleet (10 sessions, overnight)
Result: A 10-agent overnight fleet is a heavy workload that far exceeds any subscription credit pool. For this scale, use a direct API key via ANTHROPIC_API_KEY environment variable rather than subscription auth. See the full cost guide for fleet cost optimization strategies.
Impact on Claude Code GitHub Actions
The Claude Code GitHub Action lets teams automate code review, PR summaries, test generation, and documentation updates in their CI/CD pipelines. Starting June 15, every Action run draws from the programmatic credit pool.
Common Action use cases and estimated monthly costs (assuming 50 PRs/month for a small team):
| Use Case | Tokens per Run | 50 PRs/month (Sonnet 4.6) | 50 PRs/month (Opus 4.6) |
|---|---|---|---|
| PR summary | ~3K in / ~0.5K out | ~$1/mo | ~$3/mo |
| Code review comments | ~15K in / ~3K out | ~$4.50/mo | ~$15/mo |
| Test file generation | ~20K in / ~8K out | ~$7.50/mo | ~$25/mo |
| Full automated review pipeline | ~50K in / ~15K out | ~$18/mo | ~$56/mo |
Claude Sonnet 4.6 pricing: $3/M input, $15/M output. Claude Opus 4.6 pricing: $15/M input, $75/M output. For CI/CD automation, Sonnet 4.6 is almost always the right choice — it costs 5× less than Opus for similar code review quality on most tasks.
model: claude-sonnet-4-6 to avoid accidentally using Opus for routine automation. Reserve Opus for tasks requiring deep reasoning (architectural analysis, complex bug diagnosis).
Pre-June 15 Checklist
- Audit programmatic usage. Run
grep -r "claude -p\|anthropic\|claude-code" .github/ scripts/ Makefileto find every place your automation calls Claude. - Estimate monthly token volume. Use the cost examples above to project whether your usage fits within your plan's credit pool. If it doesn't, upgrade your plan or switch to direct API key auth.
- Set billing alerts. In the Anthropic Console, set spending alerts at 50%, 80%, and 100% of your credit pool so you're notified before hitting overage charges.
- Choose the right model for each task. Use Claude Sonnet 4.6 for routine automation (code review, summaries, formatting) and Opus only for complex reasoning tasks. This alone can reduce costs by 5×.
- For heavy workloads, use a direct API key. Set
ANTHROPIC_API_KEYin your environment and Claude Code / SDK tools will use it instead of subscription auth, bypassing the credit pool entirely and billing directly at API rates. - Review third-party integrations. Check if any tools your team uses authenticate via your Claude subscription. They'll now draw from the credit pool. Check the tool's docs for a dedicated API key path.
- Update amux session configs. If you launch amux agents via
claude -por the Agent SDK (rather than the interactive terminal), those sessions now draw from the credit pool. See token spend tracking to monitor them.
Monitoring Programmatic Spend with amux
amux reads Claude Code JSONL transcript files and shows per-session token usage in the web dashboard. After June 15, this lets you see which agent sessions are consuming programmatic credits versus interactive quota.
- Sessions launched interactively (where you type prompts) use the subscription interactive bucket.
- Sessions launched via
claude -p, shell hooks, or Agent SDK calls draw from the credit pool. - amux's token tracking shows daily token counts per session, letting you identify high-cost automation and set session-level spending thresholds.
# View per-session token usage in amux
curl -sk http://localhost:8822/api/sessions | python3 -c "
import json, sys
sessions = json.load(sys.stdin)
for s in sessions:
tokens = s.get('token_count', 0)
print(f\"{s['name']:30} {tokens:>10,} tokens\")
"
# Or open the amux dashboard at http://localhost:8822
# → Sessions tab → each session shows token usage
For a more detailed breakdown, use the token spend tracking guide, which covers setting up per-session JSONL monitoring, daily cost reports, and Slack/email alerts when a session exceeds a budget threshold.
Frequently Asked Questions
Track Token Spend Across All Your Agent Sessions
amux shows per-session token usage, daily cost estimates, and multi-agent spend visibility — helping you stay within budget before and after the June 15 billing change.