Skip to content

Warn on headless Claude Code CLI provider: June 15 2026 API-billing change#495

Merged
atomantic merged 2 commits into
mainfrom
cos/task-mpm5bdek/agent-2239802d
May 26, 2026
Merged

Warn on headless Claude Code CLI provider: June 15 2026 API-billing change#495
atomantic merged 2 commits into
mainfrom
cos/task-mpm5bdek/agent-2239802d

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

Adds an inline warning to the AI Providers page on the headless Claude Code CLI (claude --print) provider card: starting June 15, 2026, Anthropic clocks this non-interactive usage under API billing — consuming extra API credits instead of the Claude Code plan — so it should be avoided in favor of the interactive Claude Code TUI provider, which stays on the plan.

Changes

  • client/src/utils/providers.js — new isClaudeCodePlanCli(provider) predicate: matches CLI-type claude providers, excluding Bedrock/Vertex-routed variants (those bill via the cloud account, not the plan). Null-safe.
  • client/src/pages/AIProviders.jsx — renders a port-warning-styled callout on matching provider cards.
  • client/src/utils/providers.test.js — 5 tests pinning the predicate contract (match / TUI excluded / non-claude excluded / Bedrock+Vertex excluded / nullish).
  • .changelog/NEXT.md — changelog entry under Changed.

Verification

  • vitest run src/utils/providers.test.js → 26 passed
  • eslint on changed files → clean
  • vite build → success

Why scoped to CLI (not TUI)

The headless claude --print (CLI) path is the non-interactive automation usage subject to the billing change; the interactive Claude Code TUI provider stays on the plan, so the warning recommends switching to it. Bedrock/Vertex variants are excluded because they already bill via the cloud account rather than the Claude Code plan.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an AI Providers page warning for headless Claude Code CLI usage ahead of Anthropic’s June 15, 2026 billing behavior change.

Changes:

  • Adds isClaudeCodePlanCli(provider) to identify plan-billed Claude CLI providers.
  • Renders an inline warning on matching provider cards.
  • Adds predicate tests and a changelog entry.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
client/src/utils/providers.js Adds the Claude Code CLI billing-warning predicate.
client/src/pages/AIProviders.jsx Displays the warning callout on matching provider cards.
client/src/utils/providers.test.js Adds tests for the new predicate behavior.
.changelog/NEXT.md Documents the new warning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/utils/providers.js

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@atomantic atomantic merged commit 421f3b7 into main May 26, 2026
3 checks passed
@atomantic atomantic deleted the cos/task-mpm5bdek/agent-2239802d branch May 26, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants