Starting June 15, 2026, Anthropic drew a clear line between two ways of using Claude: interactive use by a human sitting at a keyboard, and programmatic use by automated agents running in the background. The Agent SDK billing change is not a price increase. It is a structural clarification that matters significantly for finance teams building automated workflows.

For finance teams that have been running monthly close automation, AP processing, or bank reconciliation through Claude, this change determines how those workflows are billed and how to architect them for reliable production operation at scale.

Agent SDK
Finance Automation
AP Processing
Bank Reconciliation
Close Workflows
Monthly Credits
Pay-As-You-Go

What Changed on June 15, 2026

Before June 15, 2026, the Claude Agent SDK, the claude -p headless command, and third-party apps running automated Claude workflows all drew from the same usage pool as interactive Claude sessions. A finance team running overnight AP processing was competing for the same limits as their team members asking Claude questions during the day.

After June 15, 2026, these usage pools are separated. Interactive use including Claude.ai conversations, Claude Code in the terminal and IDE, and Claude Cowork sessions continue to draw from your subscription's interactive limits. Automated use including the Agent SDK, claude -p, GitHub Actions, and third-party automation apps draw from a new dedicated Agent SDK credit that refreshes monthly with your billing cycle.

Agent SDK credits are per-user, not pooled. They do not roll over. When the credit runs out, additional automated usage flows to pay-as-you-go API rates if you have enabled usage credits, or stops entirely if you have not.

The Right Architecture for Production Finance Automation

Anthropic's own documentation is clear on this: the Agent SDK monthly credit is sized for individual experimentation and automation. Teams running shared production automation should use the Claude Platform with a direct API key for predictable pay-as-you-go billing. For a finance team running nightly AP processing across hundreds of invoices, overnight bank reconciliation across multiple entities, and scheduled close workflows that need reliable execution regardless of credit availability, the API key path is the right production architecture.

The setup is straightforward: set an ANTHROPIC_API_KEY environment variable in your automation environment. Claude Code and the Agent SDK then authenticate with that key and bill as standard pay-as-you-go API usage, separate from any subscription. You get full usage reporting, predictable cost per workflow run, and no risk of automation stopping mid-cycle because a monthly credit ran out.

Claude Agent SDK overnight finance automation log

The SDK Package Rename You Need to Handle

The June 2026 Agent SDK separation came with a package rename that affects any finance automation code using the previous Claude Code SDK packages. If your automation code references the old package names, update them before your next deployment cycle.

npm package: @anthropic-ai/claude-code is now @anthropic-ai/claude-agent-sdk
Python package: claude-code-sdk is now claude-agent-sdk
Python type: ClaudeCodeOptions is now ClaudeAgentOptions
CLI command: claude -p is unchanged in name but now draws from the Agent SDK credit pool rather than the interactive subscription

The underlying behavior of the SDK is unchanged. The rename reflects the broader architectural shift from a code-focused tool to a general-purpose agent execution framework. Finance automation workflows built on the old SDK will continue to work after updating the package references.

Finance Workflows That Belong on the Agent SDK

The Agent SDK is the right execution layer for any finance workflow that runs without a human in the loop at every step. The distinction Anthropic draws is between interactive use, where a person drives the conversation in real time, and programmatic use, where a script or scheduler drives the execution based on predefined triggers.

Overnight AP processing: Running at 10pm after the invoice cutoff, ingesting the day's invoices, coding to GL accounts, matching against purchase orders, routing exceptions to approvers, and updating the ERP before the morning standup. This is Agent SDK territory.
Daily bank reconciliation: Scheduled at 6am, pulling overnight bank feed transactions, matching against ERP records, flagging unmatched items, and generating a morning exception report. Programmatic. Agent SDK.
Month-end close triggers: Scheduled workflows that check open items, propose accruals, generate close checklists, and draft variance commentary based on actual vs. budget comparisons. All Agent SDK execution.
AR collections monitoring: Daily scan of AR aging, identification of overdue invoices by tier, automated drafting of collection emails, and update of contact records in the ERP. Programmatic. Agent SDK.
Anomaly detection: Continuous or scheduled scan of GL transactions for unusual patterns, duplicate payments, policy exceptions, and fraud indicators. Alert generation and escalation routing. Agent SDK.

"While the office was empty, finance kept moving. 147 AP invoices coded at 22:04. Bank feed reconciled across 14 accounts at 23:31. Accrual proposals drafted at 01:17. Board pack regenerated by 06:02. Eight hours of work. Zero hours of yours."

Finance automation outcomes first quarter ChatFin Claude Agent SDK

How ChatFin Uses the Agent SDK Architecture

ChatFin builds production finance automation on the Agent SDK and direct API key architecture. The overnight workflows that ChatFin runs for finance teams, including AP invoice processing, bank reconciliation, accrual proposals, and close package generation, all run via the Agent SDK with API key authentication. This means they never compete with your team's interactive Claude usage, never stop because a monthly credit ran out, and never require manual intervention to restart after a billing cycle reset.

The architecture also means ChatFin can provide full cost visibility per workflow run. Finance teams know exactly what each automated workflow costs in API terms, which supports the internal ROI case for AI finance automation and provides the auditability that finance functions require from any system that touches financial data.

Production Finance Automation on Claude Agent SDK: ChatFin Is the Layer

The Agent SDK separation clarifies the architecture for serious finance automation. Interactive subscription for your team's daily Claude use. API key authentication for production workflows that need to run reliably at any time, at any scale. ChatFin is built on the production architecture and connects it to your ERP data through MCP, giving your finance team autonomous close, AP, and AR automation that runs every night without your team lifting a finger.

See ChatFin Finance Automation in Action

Related Reading