You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On April 4, 2026, Anthropic began blocking third-party harnesses from using Claude subscription billing (Pro/Max). The restriction is being extended to all third-party harnesses in the coming weeks.
Claude-mem's observer agent uses the Claude Agent SDK query() to spawn a claude subprocess (SDKAgent.ts). By default — when no ANTHROPIC_API_KEY is set in ~/.claude-mem/.env — this subprocess authenticates via CLI subscription billing (EnvManager.ts:287).
This is exactly the "third-party harness" pattern Anthropic is restricting. Users on Pro/Max subscriptions who rely on the default auth path will find their observer agent silently failing or being blocked once enforcement reaches claude-mem.
Set ANTHROPIC_API_KEY in ~/.claude-mem/.env — bills your API account directly, unaffected by the ban. But costs real money per token.
Switch provider to Gemini (CLAUDE_MEM_PROVIDER=gemini) — free tier available via gemini-2.5-flash-lite. Already supported.
Switch provider to OpenRouter (CLAUDE_MEM_PROVIDER=openrouter) — free models available (xiaomi/mimo-v2-flash:free). Already supported.
Enable "extra usage" pay-as-you-go on your Anthropic account — Anthropic's official workaround, but adds variable costs.
Discussion: what should claude-mem do?
Some things worth considering:
Should the default change? Currently the default is CLI subscription billing with Claude Sonnet. Given the ban, should claude-mem default to Gemini free tier or OpenRouter free tier for observation/summary processing?
User-facing warning: Should the worker log a warning when it detects subscription-based auth is being used, explaining the risk?
Broader model support: Users may want to point the observer at self-hosted or alternative models (Gemma, Llama, etc.) through OpenAI-compatible APIs. The OpenRouter agent already supports this pattern, but a generic "OpenAI-compatible endpoint" option would give more flexibility.
Context window awareness: Different models have very different context windows (Haiku 200k, Gemini Flash 1M, Gemma ~8-32k). The observer prompt pipeline doesn't currently adapt to the model's context limits — it should, especially for smaller models.
The existing alternative providers (Gemini, OpenRouter) are a solid escape hatch, but users need to know this is coming before their observer agent quietly stops working.
What happened
On April 4, 2026, Anthropic began blocking third-party harnesses from using Claude subscription billing (Pro/Max). The restriction is being extended to all third-party harnesses in the coming weeks.
Coverage:
How this affects claude-mem
Claude-mem's observer agent uses the Claude Agent SDK
query()to spawn aclaudesubprocess (SDKAgent.ts). By default — when noANTHROPIC_API_KEYis set in~/.claude-mem/.env— this subprocess authenticates via CLI subscription billing (EnvManager.ts:287).This is exactly the "third-party harness" pattern Anthropic is restricting. Users on Pro/Max subscriptions who rely on the default auth path will find their observer agent silently failing or being blocked once enforcement reaches claude-mem.
Related issues
ANTHROPIC_AUTH_TOKENnot forwarded to SDK subprocess (blocks one workaround)Options for users right now
ANTHROPIC_API_KEYin~/.claude-mem/.env— bills your API account directly, unaffected by the ban. But costs real money per token.CLAUDE_MEM_PROVIDER=gemini) — free tier available viagemini-2.5-flash-lite. Already supported.CLAUDE_MEM_PROVIDER=openrouter) — free models available (xiaomi/mimo-v2-flash:free). Already supported.Discussion: what should claude-mem do?
Some things worth considering:
The existing alternative providers (Gemini, OpenRouter) are a solid escape hatch, but users need to know this is coming before their observer agent quietly stops working.