Skip to content

Claude Code threads report cc_entrypoint=sdk-cli and drain the 5-hour limit faster #6951

Open

Description

@Xuoon

Summary

Claude Code threads in bb report cc_entrypoint=sdk-cli. Anthropic meters the 5-hour subscription window for sdk-* entrypoints at roughly 1.6-2.9x the rate of the interactive CLI for the same tokens (anthropics/claude-code#97074). bb users on Pro and Max 5x therefore hit the 5-hour limit sooner in bb than in claude directly. The weekly limit is not affected.

Versions and environment

  • bb Nightly 0.48.2-nightly.41691631797.1, macOS
  • Claude Code 2.1.317, Agent SDK 0.3.245, signed in with a Claude subscription

Steps to reproduce

  1. Start a Claude Code thread in bb.
  2. Run echo $CLAUDE_CODE_ENTRYPOINT in the thread.

Expected vs actual

Expected: bb identifies itself as its own client, as T3 Code now does with t3-code (pingdotgg/t3code#28410).

Actual: sdk-cli. The bridge sets CLAUDE_CODE_ENTRYPOINT=cli (bridge.ts L1790, from #84), and Claude Code sends that as sdk-cli in SDK mode.

Evidence

Claude Code 2.1.317 (claude -p in stream-json mode, as the SDK runs it), sent to a local capture server:

CLAUDE_CODE_ENTRYPOINT unset -> cc_entrypoint=sdk-cli  UA: claude-cli/2.1.317 (external, sdk-cli)
CLAUDE_CODE_ENTRYPOINT=cli   -> cc_entrypoint=sdk-cli  UA: claude-cli/2.1.317 (external, sdk-cli)
CLAUDE_CODE_ENTRYPOINT=bb    -> cc_entrypoint=bb       UA: claude-cli/2.1.317 (external, bb)

T3 Code measured the meter per label in pingdotgg/t3code#24649: sdk-ts used about 2.3x the 5-hour window per token of cli; t3-code matched cli within the meter's 1% resolution. Theo says he got "semi-solid permission" from Anthropic to merge the label change (video, 14:37).

What you ruled out

AGENT GENERATED

Activity

  1. added theissue type on Nov 3, 2026
  2. added
    providersCross-provider bridges, models, login
    partial-reproBug partially reproduced; some claims unverified; see linked report
    on Nov 3, 2026
  3. bb-slop-cop commented on Nov 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium; providers, provider-claude-code.
    • Report: https://get-bb.github.io/reports/issues/6951.html
    • Verdict: PARTIALLY REPRODUCED · confidence: medium · reproduction label: partial-repro.
    • Root cause: The bridge forces CLAUDE_CODE_ENTRYPOINT=cli after configured overrides and removes SDK client-app identity.
    • Verification: The existing bridge-to-SDK environment test passes in two clean checkouts of 7fa7f46fad. It uses a mocked SDK; outbound request identity and subscription-meter differences remain unverified.
    • No PR: A replacement billing identity needs upstream/product validation, and the partial reproduction does not establish a safe accounting fix.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    partial-reproBug partially reproduced; some claims unverified; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovidersCross-provider bridges, models, login

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions