Claude Code switches to monthly credits: what changes for devs and autonomous agents
🔎 On June 15, 2026, the free tier disappears for automated Claude Code usage
On May 14, 2026, Anthropic announced a complete restructuring of Claude Code's billing. Until now, Pro and Max subscriptions absorbed everything: interactive usage in the terminal, autonomous agents, CI pipelines, third-party integrations. Everything was "unlimited" to some extent. That model is dead.
Now, programmatic usage — Agent SDK, headless mode claude -p, GitHub Actions, third-party tools — shifts to a separate monthly credits bucket. Interactive terminal usage remains on the subscription. The dividing line is clear: if you're coding with Claude on screen, it stays included. If you delegate to an agent running in the background, you pay per credit.
This isn't just a disguised price hike. It's a business model change that reflects a reality developers understood before Anthropic did: an autonomous agent running for 4 hours on a ticket consumes 50 times more tokens than a 20-minute interactive session. The flat-rate subscription just wasn't sustainable anymore.
The key points
- On June 15, 2026, the Agent SDK,
claude -p, GitHub Actions, and third-party integrations switch to a monthly credits system separate from the Pro/Max subscription. - Interactive usage in the terminal (claude CLI) remains covered by the subscription with no changes.
- Anthropic allocates a credit amount per plan (Pro, Max, Team), but heavy users of autonomous agents will mechanically see their bills increase.
- Alternatives like Cursor, Cline, Aider, and local solutions with Ollama suddenly become much more interesting for automation.
Recommended tools
| Tool | Main usage | Price (June 2026, check website) | Ideal for |
|---|---|---|---|
| Claude Code | Terminal coding agent | Pro $20/month, Max $100-200/month + SDK credits | Native Claude devs, interactive usage |
| Cursor | IDE with built-in AI | $20/month | Developers who want an all-in-one IDE |
| Cline | Autonomous VS Code agent | Open source (free) | Automation in VS Code, fine-grained control |
| Aider | Open source CLI coding agent | Free (bring your own LLM) | CLI devs, local integrations |
| Ollama | Local LLM | Free | Open source AI agents, no API costs |
What exactly changes on June 15, 2026
The separation is binary. On one side, interactive use. On the other, programmatic use.
Interactive use is you in your terminal, launching claude, chatting with the agent, validating each step. It remains included in your Pro ($20/month) or Max ($100-$200/month) subscription. No changes on that front.
Programmatic use is everything else. According to the Anthropic documentation cited by Codersera, this includes: the Agent SDK (scripts that drive Claude Code autonomously), the headless mode claude -p (which sends a prompt and retrieves a response without interaction), GitHub Actions that use Claude Code in CI/CD pipelines, and any third-party tool that relies on Claude Code in the background.
These uses switch to a separate monthly credit pool. You no longer pay on the fly per token like with the classic API, but you consume a credit allowance renewed each month. According to Tygart Media, this is not just a simple redirect to the pay-per-token API: it's an intermediate bucket, with a monthly cap and additional billing if you exceed it.
The distinction is important. Anthropic is not removing automated use. They are taking it out of the "all-inclusive" plan to monetize it separately.
Before / After: the comparison table
| Usage scenario | Before June 15, 2026 | After June 15, 2026 |
|---|---|---|
claude in terminal, interactive use |
Included in Pro/Max | Included in Pro/Max (unchanged) |
claude -p in headless mode |
Included in Pro/Max | Agent SDK credits (separate) |
| Agent SDK (standalone scripts) | Included in Pro/Max | Agent SDK credits (separate) |
| Claude Code in GitHub Actions | Included in Pro/Max | Agent SDK credits (separate) |
| Third-party tools (Cline, etc.) via Claude Code | Included in Pro/Max | Agent SDK credits (separate) |
| Direct Anthropic API | Pay-per-token | Pay-per-token (unchanged) |
This table, taken from the analysis of DevToolPicks, shows that the dividing line is exactly here: everything that involves a machine deciding without you switches to credits. Everything where you are in control remains flat-rate.
How much it will cost: breakdown by profile
Anthropic did not publish a highly detailed public pricing grid for Agent SDK credits at the time of the announcement. But Build This Now and APIYI have pieced together the ballpark figures from Anthropic's help center information.
Solo dev (moderate agent usage)
A solo developer using claude -p a few times a day for specific tasks (test generation, automatic refactoring of a file). Let's say 50 to 100 headless calls per day.
Before: included in the $20/month Pro plan.
After: Agent SDK credits will likely be sufficient for this light volume. Estimated extra cost: $0 to $10/month.
Verdict: minimal impact. Anthropic is targeting power users, not the dev making 3 headless calls a day.
Startup (agents in CI/CD, 3-5 devs)
A team that has integrated Claude Code into its GitHub Actions for automatic review, AI linting, and uses the Agent SDK for maintenance tasks (dependency updates, documentation generation). Let's say 500 to 2000 headless calls per day across all repos.
Before: included in the team's Max plans ($100-200/month per seat).
After: the Agent SDK credits will very likely be insufficient. Andrew.ooo estimates that this profile will jump to an extra $300-800/month in credits, depending on intensity.
Verdict: significant impact. This is where the bill could triple. Every pipeline needs to be audited.
Enterprise (persistent agents, high volumes)
A company with 50+ devs, Claude Code agents running continuously on complex tasks (codebase migration, large-scale test generation, multi-step agents). Thousands of calls per day, some of which consume hundreds of thousands of tokens.
Before: Max plans + possibly a few API calls. Predictable budget.
After: the monthly credit bucket will be blown in the first week. The additional bill could run into the thousands of dollars. AI For Anything points out that this isn't a hidden hike but an alignment of price with actual consumption.
Verdict: total break. This profile must either negotiate a dedicated Enterprise contract or migrate to a self-hosted solution.
Why Anthropic is doing this now
The short answer: because the flat-rate model was being exploited. The long answer is more interesting.
An autonomous agent using Claude Opus 4.7 working on a complex ticket can consume 200,000 tokens in a single session. If you run 10 of them a day via claude -p, that's 2 million daily tokens. At $15 per million input tokens on the API, that would be $30/day or $900/month. All of this for a $20 Pro subscription.
This model was viable when Claude Code was an interactive terminal tool. But since the Agent SDK opened the door to full automation — scripts that launch agents without human intervention, CI pipelines that review code on every push — cross-subsidization has become unsustainable.
Anthropic had two options: raise the subscription price for everyone (penalizing interactive devs), or split the billing. They chose the latter, which makes economic sense.
This also reveals Anthropic's strategy for 2026-2027: monetize the agent layer, not just the LLM. The model is shifting from "I sell intelligence" to "I sell agents that execute work." The pricing must follow.
What actually breaks in your workflows
If you've built workflows around Claude Code assuming everything was included, here is what will break on June 15.
claude -p scripts in cron
You have a script that runs every night and uses claude -p "analyze yesterday's error logs and suggest fixes". This script switches to Agent SDK credits. If it runs 7 nights a week, it will consume a significant portion of your monthly bucket.
GitHub Actions with Claude Code
Any CI/CD workflow that runs a claude -p step for review, linting, or changelog generation — all of this falls outside the flat-rate plan. If you have 20 repos with 2-3 Claude actions per PR each, the bill will add up fast.
Third-party tools plugged into Claude Code
Cline, Aider, or any other tool that uses Claude Code as a backend. As soon as the tool drives Claude programmatically (without you being in the interactive terminal), it switches to credits.
The Codersera migration checklist recommends auditing every integration before June 15 and tagging each usage as "interactive" or "programmatic" to estimate the extra cost.
Context files: optimize to reduce the bill
When you switch to credits, every token counts. This is where context files like CLAUDE.md and AGENTS.md become strategic.
An agent that has to guess your project structure, your code conventions, your formatting preferences — that consumes a huge amount of tokens in exploration. An agent that has a well-written CLAUDE.md with your conventions, the project architecture, the patterns to follow — goes straight to the point.
The difference in consumption can be 30 to 50% on a given task. In credits mode, it's no longer a luxury, it's financial optimization.
Investing 2 hours in a clear and structured context file potentially means saving 50 to 100$ per month in Agent SDK credits.
The alternatives: when leaving becomes the right option
The billing change logically leads to evaluating the alternatives. Here are the viable options in June 2026.
Cursor: the all-in-one IDE
Cursor remains at $20/month and includes the use of its integrated agent, including in autonomous mode (Background Agent). No split billing, no separate credits. You pay your subscription, you use the agent as you want.
The downside: you are locked into the Cursor IDE. No CLI, no easy CI/CD integration. It's a development tool, not an agent platform.
Cline: the open source agent in VS Code
Cline is open source and lets you plug in the LLM of your choice. You can use Claude via API, or GPT-5.5, or Gemini 3 Pro Deep Think — you choose. You pay for tokens directly to the provider, without an additional layer.
The advantage: total transparency on costs. You know exactly how much each task consumes.
Aider: the CLI for those who want to stay in the terminal
Aider is open source, works as a CLI, and lets you connect any LLM. It's probably the most natural migration from Claude Code for devs who want to stay in their terminal.
You can plug in a local model via Ollama and have a free local coding agent. The quality will be lower than Claude Opus 4.7, but for refactoring, linting, test generation — it's often enough.
Local agents with Ollama
For enterprise profiles looking to keep costs under control, the Ollama solution allows you to run models like GLM-5 or Kimi K2.6 locally. Zero cost per token, but requires infrastructure investment and offers lower quality for complex tasks.
Alternative autonomous AI agents
Beyond coding tools, autonomous AI agents like OpenClaw or AutoGPT offer automation capabilities with different models. The Claude vs ChatGPT comparison remains relevant for choosing the best backend model based on your use case.
Claude Code vs alternatives: which tool for which use case post-June 15
| Criteria | Claude Code (after change) | Cursor | Cline + API | Aider + Ollama |
|---|---|---|---|---|
| Interactive usage cost | Included (Pro/Max) | Included ($20/month) | Pay-per-token | Free |
| Automated usage cost | Separate credits | Included | Pay-per-token | Free |
| Quality on complex tasks | Excellent (Opus 4.7) | Very good | Depends on chosen LLM | Average (local models) |
| CI/CD integration | Yes (but credits) | No | Possible | Yes |
| Fine-grained cost control | Low (monthly bucket) | Low (flat rate) | Excellent | Excellent |
| Lock-in | High | High | Low | None |
The message is clear: if you mostly do interactive work, Claude Code remains an excellent choice. If you do heavy automation, you need to look elsewhere or accept paying.
The European AI Act and the traceability of agent costs
This billing change comes in a regulatory context that adds an extra layer of complexity. L'AI Act européen imposes transparency obligations on high-risk AI systems, and European companies must document the use of AI agents in their development processes.
With the monthly credits model, you finally have a consumption trace by usage type (interactive vs programmatic). It's ironic, but Anthropic's billing change could make AI Act compliance easier: you can now isolate and precisely document what your autonomous agents consume, which was impossible when everything was mixed into a single flat rate.
European companies that need to report AI usage in their compliance reports will have more usable data with the credits system than with the old all-inclusive plan.
What this change reveals about the AI agent market
Anthropic's move is not an isolated one. It reflects a maturation of the AI agent market.
The first phase (2024-2025): LLM providers subsidized agent usage to encourage adoption. Generous plans, "unlimited" usage, free vibe coding. The goal was growth.
The second phase (2026): providers realize that agent usage is structurally more expensive than chat usage. An agent running for 2 hours consumes what 50 chat users consume in a day. The economic model must adjust.
Anthropic is the first to make this split so clearly with Claude Code. But it would be surprising if OpenAI didn't follow a similar logic for Codex or GPT agents.
The lesson for devs: don't build critical infrastructure that relies on non-contractual flat-rate pricing. What is "included" today can be billed tomorrow. The meilleurs LLM pour coder change prices faster than they change names.
Migration checklist: what to do before June 15
You have until June 15 to adapt. Here is a pragmatic action plan, inspired by the guides from Build This Now and Andrew.ooo.
Week 1: Audit. List every place where you use Claude Code programmatically. Cron scripts, GitHub Actions, Cline integrations, claude -p calls in your Makefiles. Tag each usage: critical, important, nice-to-have.
Week 2: Measurement. For each programmatic usage, estimate token consumption. A simple claude -p call consumes 5,000-20,000 tokens. A multi-step agent can go up to 200,000+. Multiply by the frequency to get a rough monthly estimate.
Week 3: Decision. For each usage, decide: keep on Claude Code (accept the cost), migrate to another tool, or remove. "Nice-to-have" usages are the first candidates for removal.
Week 4: Migration. For the usages you are migrating, set up the alternative (Cline + API, Aider + Ollama, etc.). Test that the output quality is acceptable. Don't do the migration on the evening of June 14.
❌ Common mistakes
Mistake 1: Confusing Agent SDK credits and the classic API
Agent SDK credits are not pay-per-token API. It's a monthly bucket with a cap. If you exceed it, you don't just pay for the extra tokens — you might be blocked or switched to a different pricing tier. AI For Anything insists on this distinction: it's not a redirect to the API, it's a new product.
Mistake 2: Doing nothing and discovering the bill in July
The change takes effect on June 15. If you have pipelines running in loops, you could consume your entire credit bucket in a week and end up with failing builds or a surprise bill. Audit before, not after.
Mistake 3: Migrating everything to an inferior tool out of fear of cost
Claude Code in interactive mode remains included and remains excellent. Don't throw the baby out with the bathwater. Separate what should stay (your daily terminal usage) from what should migrate (your automations).
Mistake 4: Ignoring context files in credits mode
In flat-rate mode, an agent exploring unnecessarily doesn't cost you anything visible. In credits mode, every wasted token has a price. CLAUDE.md context files are no longer optional — they are a cost optimization lever.
❓ Frequently Asked Questions
Does interactive usage in the terminal change?
No. If you launch claude and interact directly with the agent, your Pro or Max subscription covers this usage as before. The change only concerns programmatic usage (Agent SDK, claude -p, CI/CD).
Will Claude Code cost more for a solo dev?
Probably very little, if at all. A solo dev who mainly does interactive work with a few occasional claude -p calls should stay within the included credits bucket. The actual extra cost targets intensive automation usage.
Can I continue to use Claude Code in my GitHub Actions?
Yes, but it will be billed via Agent SDK credits, no longer via your subscription. If your Actions are lightweight, it will be fine. If you have heavy workflows, you'll need to budget for it or migrate to a dedicated solution.
Will Cline also charge me Agent SDK credits?
Cline itself is open source and free. But if Cline uses Claude Code as a backend programmatically, yes, you will consume your Agent SDK credits. The solution is to configure Cline to use the Anthropic API directly or another LLM.
Does this change also apply to the classic API?
No. The Anthropic API remains pay-per-token as before. The change only concerns Claude subscriptions (Pro, Max, Team) and how they cover — or no longer cover — Claude Code usage in programmatic mode.
✅ Conclusion
June 15, 2026 marks the end of free vibe coding at Anthropic: the Agent SDK and headless usage are moving to separate monthly credits, an inevitable economic adjustment in the face of massive consumption by autonomous agents. For interactive usage, nothing changes. For automation, you need to audit, measure, and decide on a case-by-case basis — or turn to alternatives like Cline and Ollama to keep costs under control. The real lesson: never build critical infrastructure on non-contractual pricing.