Warn on headless Claude Code CLI provider: June 15 2026 API-billing change#495
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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— newisClaudeCodePlanCli(provider)predicate: matches CLI-typeclaudeproviders, excluding Bedrock/Vertex-routed variants (those bill via the cloud account, not the plan). Null-safe.client/src/pages/AIProviders.jsx— renders aport-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 passedeslinton changed files → cleanvite build→ successWhy 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.