Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

remove stale June 15 2026 Claude Code headless billing warning from AI Providers

[._.]/ Adam Eivy8cd6e211ae76
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index aac13dc855..38520d63c1 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -42,6 +42,8 @@
## Changed
+- **The AI Providers page no longer warns about the June 15, 2026 Claude Code headless billing change.** The date has passed, so the banner on the headless Claude CLI provider card was stale noise rather than a heads-up. The warning (and its `isClaudeCodePlanCli` detection helper) has been removed.
+
- **API providers now make it obvious where the API key goes.** Hosted API providers like Cerebras, Grok, and NVIDIA authenticate with a single key pasted into the provider's "API Key" field — but nothing in the UI said so, and the environment-variables editor on the same form invited pasting a `CEREBRAS_API_KEY` there, where API providers never read it. Each API provider's card now shows its key status at a glance ("set", "not set — Edit this provider to paste one", or "none (local endpoint)" for Ollama/LM Studio), the API Key field explains that it is the only place an API provider reads a key from (sent as an `Authorization: Bearer` header — no environment variable involved), the env-var editor no longer offers adding variables to API providers (existing entries stay removable, with a note that they have no effect), and the Sample Providers list flags hosted API entries as needing a key after you add them.
- [issue-2773] **A scheduled Series commission now actually generates its episodes instead of leaving an empty series.** When the Creative Director plans a Series commission, it first creates the series (which mints a fresh id) and then has to run that new series' autopilot — but until now the plan couldn't refer to an id that didn't exist yet when the plan was written, so a Series commission could only ever produce an empty shell. Plan steps can now reference a value produced by an earlier step with `{{steps.<stepId>.result.<key>}}` (e.g. `{{steps.create-series.result.id}}`), and the server resolves it at dispatch time — so the "create the series, then generate its issues/episodes" hand-off works end to end. A plan that references a step that didn't run or didn't produce the named id fails that step with a clear reason and re-plans rather than dispatching an unresolved placeholder. Existing installs pick up the planner guidance automatically on restart.
diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsx
index 10da55dacc..ced7ab4b6d 100644
--- a/client/src/pages/AIProviders.jsx
+++ b/client/src/pages/AIProviders.jsx
@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react';
import toast from '../components/ui/Toast';
import * as api from '../services/api';
import socket from '../services/socket';
-import { filterSelectableModels, filterGenerationModels, isEmbeddingModel, mergeModelLists, localBackendForProvider, modelOptionLabel, providerTypeClass, isTuiProvider, isApiProvider, isProcessProvider, isOllamaBackedProvider, isClaudeCodePlanCli, isGrokBuildCli, isLocalEndpoint, effectiveModelContextWindow } from '../utils/providers';
+import { filterSelectableModels, filterGenerationModels, isEmbeddingModel, mergeModelLists, localBackendForProvider, modelOptionLabel, providerTypeClass, isTuiProvider, isApiProvider, isProcessProvider, isOllamaBackedProvider, isGrokBuildCli, isLocalEndpoint, effectiveModelContextWindow } from '../utils/providers';
import useLocalModels from '../hooks/useLocalModels';
import EmptyState from '../components/EmptyState';
import {
@@ -588,16 +588,6 @@ export default function AIProviders() {
)}
</div>
- {isClaudeCodePlanCli(provider) && (
- <div className="mt-2 text-xs rounded-md border border-port-warning/40 bg-port-warning/10 text-port-warning px-2.5 py-2 leading-relaxed">
- ⚠️ Starting <span className="font-semibold">June 15, 2026</span>, Anthropic clocks
- this headless Claude Code usage under <span className="font-semibold">API billing</span> —
- it will consume extra API credits instead of your Claude Code plan. Avoid this
- provider; use the interactive <span className="font-semibold">Claude Code TUI</span> provider,
- which stays on the plan.
- </div>
- )}
-
{isGrokBuildCli(provider) && <GrokUploadWarning className="mt-2" />}
{testResults[provider.id] && !testResults[provider.id].testing && (
diff --git a/client/src/utils/providers.js b/client/src/utils/providers.js
index 70de5c4fd5..ad432978ec 100644
--- a/client/src/utils/providers.js
+++ b/client/src/utils/providers.js
@@ -412,33 +412,6 @@ export const isOllamaBackedProvider = (provider) => {
return /:11434\b/.test(base) || /ollama/i.test(base);
};
-/**
- * Check if a provider is the headless Claude Code CLI (`claude --print`) whose
- * *provider-level config* points it at a Claude Code subscription plan — i.e. the
- * provider's own `envVars` do NOT route it through Bedrock or Vertex (those bill
- * via the cloud account, not the plan). Used to surface the billing-change warning:
- * starting 2026-06-15 Anthropic clocks this non-interactive usage under API billing
- * (consuming API credits) instead of the Claude Code plan, so it should be avoided
- * in favor of the interactive Claude Code TUI provider.
- *
- * Contract is intentionally provider-level only: this is a client-side heuristic
- * that sees just the saved provider record. A user who routes the spawn to
- * Bedrock/Vertex *globally* via `~/.claude/settings.json` (merged below
- * `provider.envVars` in `server/services/agentCliSpawning.js`) rather than on the
- * provider would be cloud-billed but still match here. Configure Bedrock/Vertex on
- * the provider's `envVars` (as the shipped `claude-code-bedrock` sample does) to
- * suppress the warning.
- */
-export const isClaudeCodePlanCli = (provider) =>
- isCliProvider(provider) &&
- provider?.command === 'claude' &&
- // Ollama-backed Claude (the "Claude Ollama" sample) routes generation to a
- // local daemon via ANTHROPIC_BASE_URL — it's never plan/API-billed, so the
- // billing warning would be misleading and discourage the shipped local setup.
- !isOllamaBackedProvider(provider) &&
- !provider?.envVars?.CLAUDE_CODE_USE_BEDROCK &&
- !provider?.envVars?.CLAUDE_CODE_USE_VERTEX;
-
/**
* Check if a provider is the Grok Build CLI/TUI (the `grok` command harness).
* Mirrors the Grok detection in `knownProviderContextWindow`: matches the shipped
diff --git a/client/src/utils/providers.test.js b/client/src/utils/providers.test.js
index a73c128a40..0bdb41d5b8 100644
--- a/client/src/utils/providers.test.js
+++ b/client/src/utils/providers.test.js
@@ -30,7 +30,6 @@ import {
isApiProvider,
isProcessProvider,
isOllamaBackedProvider,
- isClaudeCodePlanCli,
isGrokBuildCli,
isLocalEndpoint,
enabledApiProviderFilter,
@@ -149,39 +148,6 @@ describe('isLocalEndpoint', () => {
});
});
-describe('isClaudeCodePlanCli', () => {
- it('matches a headless claude CLI provider on the plan', () => {
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', envVars: {} })).toBe(true);
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude' })).toBe(true);
- });
-
- it('does not match the interactive Claude Code TUI provider', () => {
- expect(isClaudeCodePlanCli({ type: 'tui', command: 'claude' })).toBe(false);
- });
-
- it('does not match non-claude CLI providers', () => {
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'gemini' })).toBe(false);
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'codex' })).toBe(false);
- });
-
- it('excludes Bedrock/Vertex-routed claude CLIs (billed via cloud, not the plan)', () => {
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', envVars: { CLAUDE_CODE_USE_BEDROCK: '1' } })).toBe(false);
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', envVars: { CLAUDE_CODE_USE_VERTEX: '1' } })).toBe(false);
- });
-
- it('excludes Ollama-backed Claude (local model — never plan/API-billed)', () => {
- // Claude Ollama CLI carries the ollamaBacked marker + ANTHROPIC_BASE_URL
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', ollamaBacked: true, envVars: { ANTHROPIC_BASE_URL: 'http://localhost:11434' } })).toBe(false);
- // inferred purely from the base URL too
- expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', envVars: { ANTHROPIC_BASE_URL: 'http://localhost:11434' } })).toBe(false);
- });
-
- it('safely returns false for nullish input', () => {
- expect(isClaudeCodePlanCli(null)).toBe(false);
- expect(isClaudeCodePlanCli(undefined)).toBe(false);
- });
-});
-
describe('isGrokBuildCli', () => {
it('matches the shipped grok-cli / grok-tui samples', () => {
expect(isGrokBuildCli({ id: 'grok-cli', type: 'cli', command: 'grok' })).toBe(true);