claude-code - 💡(How to fix) Fix [BUG] Claude Code generated automated claude-bridge subprocess that caused account suspension — no-code user, $367 lost [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47046Fetched 2026-04-13 05:42:54
View on GitHub
Comments
3
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×3

Error Message

  1. Claude Code should warn users if generating potentially ToS-violating patterns

Error Messages/Logs

Root Cause

Note: I cannot provide exact reproduction steps because I am a no-code user and cannot recreate the development session. However, the full git history is available as evidence — every commit was authored by Claude Code. Key commits: c30314c, 00f5c07, da944c8.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I am a no-code user who relies entirely on Claude Code to build my project (a personal CRM). During development sessions between March 29 and April 11, 2026, Claude Code created an architecture that spawns claude -p as automated subprocesses instead of using the Anthropic API with proper API keys.

This resulted in my account being suspended, and I have lost $367.12 across three subscription payments with no access to the service.

What Claude Code Created

Claude Code wrote a file called claude-bridge.ts containing a function claudeBridgeGenerate() that:

  1. Spawns claude -p --output-format text as a child process
  2. Is called by a daily "heartbeat" feature that loops through all contacts
  3. Each contact triggers 3-10 sequential claude -p subprocess calls
  4. With 30 contacts, that's 90-300 automated claude -p calls per day
  5. No rate limiting, no delays, no throttling were added by Claude Code

Git Evidence

Every commit is authored by Claude Code (identity "ARIA CTO"):

  • c30314c (April 2) — "feat: MVP build" — created claude-bridge.ts
  • 00f5c07 (March 29) — created AI provider system
  • da944c8 (April 6) — wired heartbeat automation into AI pipeline

I cannot write code. Every single commit in the repository was authored by Claude Code.

The Problem

  1. Claude Code should not generate architectures that spawn claude -p in automated loops — this is not the intended use of the CLI
  2. Claude Code should use the Anthropic API with API keys for application integrations, not CLI subprocess automation
  3. Claude Code never warned me that this pattern could violate the ToS
  4. As a no-code user, I had zero ability to recognize this was problematic

Compounding Issue: Claude Advised Chargeback

After suspension, I asked Claude (chat) how to get faster support. Claude advised me to contact my bank, which triggered a chargeback. I now understand this likely caused permanent account flagging. Claude's advice made things worse — I did not know what a chargeback does.

Financial Impact — $367.12

InvoiceDatePlanAmountWhat Happened
GYJGR4WQ-0004Mar 9Max 5x$82.76Access cut 5 days early
GYJGR4WQ-0005Apr 2Max 20x$200.00 (gift)Applied, only activated for a few days
GYJGR4WQ-0007Apr 5Max 5x$84.36Suspended after a week

Support Attempts — All Auto-Closed

  • Ticket #89108181 — no response
  • Conversation 215473773310264 — auto-closed by Fin AI
  • Conversation 215473871471762 — auto-closed by Fin AI
  • Conversation 215473875634661 — auto-closed by Fin AI (included full technical explanation)

My Settings > Billing page displays "Free plan" with an "Upgrade plan" button only — no "Resubscribe" option — despite invoices showing "Paid" status.

Environment

  • OS: Windows 10
  • Claude Code: CLI (latest at time of use)
  • Project: Personal CRM app (TypeScript/Node.js monorepo — Fastify + Next.js + Expo)
  • Account: [email protected]

What Should Happen?

  1. Claude Code should use the Anthropic API (with API keys) for app integrations, not spawn claude -p subprocesses
  2. Claude Code should warn users if generating potentially ToS-violating patterns
  3. Claude (chat) should not advise users to file bank chargebacks as a "faster" support resolution method
  4. Support tickets from suspended/paying accounts should not be auto-closed without human review

What I've Done

  • Disabled the bridge (CLAUDE_BRIDGE=false)
  • Willing to reverse any chargeback if account can be reinstated

Request

  1. Please help escalate my account review internally, I want to back on my subscription and use Claude normally in the future
  2. Claude Code should be updated to prevent generating claude -p subprocess automation patterns

Related issues: #9950, #5088, #26825, #37057, #41252

Error Messages/Logs

Steps to Reproduce

  1. Start a new project and ask Claude Code to add AI-powered features to a web application (e.g., "add AI that suggests follow-up actions for contacts, like how Paperclip does it")

  2. Claude Code may choose to create a "bridge" file (claude-bridge.ts) that spawns "claude -p --output-format text" as a child process instead of using the Anthropic API with proper API keys

  3. If the app has any automation/loop feature (like a daily heartbeat that processes multiple items), this results in dozens to hundreds of automated "claude -p" subprocess calls per day with no rate limiting

  4. This usage pattern triggers account suspension — the user (especially a no-code user) has no way to know this is happening or that it violates the ToS

Note: I cannot provide exact reproduction steps because I am a no-code user and cannot recreate the development session. However, the full git history is available as evidence — every commit was authored by Claude Code. Key commits: c30314c, 00f5c07, da944c8.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.104 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The most likely fix is to update Claude Code to use the Anthropic API with API keys for application integrations instead of spawning claude -p subprocesses in automated loops.

Guidance

  • Review the claude-bridge.ts file and refactor it to use the Anthropic API with proper API keys, eliminating the need for claude -p subprocesses.
  • Implement rate limiting and throttling mechanisms to prevent excessive API calls, even if using the Anthropic API directly.
  • Update Claude Code to warn users about potentially ToS-violating patterns, especially those that may lead to account suspension.
  • Escalate the account review internally to reinstate the suspended account and prevent similar issues in the future.

Example

// Before (using claude -p subprocesses)
import { spawn } from 'child_process';

function claudeBridgeGenerate() {
  const child = spawn('claude', ['-p', '--output-format', 'text']);
  // ...
}

// After (using Anthropic API with API keys)
import { AnthropicAPI } from '@anthropic/api';

const api = new AnthropicAPI('YOUR_API_KEY');

function claudeBridgeGenerate() {
  api.call('generate', { /* parameters */ })
    .then((response) => {
      // ...
    })
    .catch((error) => {
      // ...
    });
}

Notes

The provided solution assumes that the Anthropic API is available and properly documented. Additionally, the example code snippet is a simplified illustration and may require modifications to fit the actual implementation.

Recommendation

Apply the workaround by refactoring claude-bridge.ts to use the Anthropic API with API keys, and escalate the account review internally to reinstate the suspended account. This approach addresses the root cause of the issue and prevents similar problems in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code generated automated claude-bridge subprocess that caused account suspension — no-code user, $367 lost [3 comments, 3 participants]