Skip to content

[Bug]: CLAUDE_CODE_ENTRYPOINT=t3-code makes Claude auto mode use the billed local classifier #34562

Open

Description

@benlevy-houserx

T3 sets CLAUDE_CODE_ENTRYPOINT=t3-code for Claude sessions (mergeClaudeProcessEnvironment). With that value, Claude Code doesn't use auto mode's server-side safety check, which doesn't charge for classifier overhead. Instead it sends a separate claude-sonnet-5 classifier request for every tool call. Each request carries about 140K characters of classifier prompt. They bill to the user's account but don't appear in session transcripts. On my account this added tens of millions of Sonnet 5 tokens after I switched to T3.

A/B test, Claude Code 2.1.322 run directly in a terminal with the same settings and credential, only the entrypoint changed, a few Bash calls in auto mode with --debug:

CLAUDE_CODE_ENTRYPOINT [auto-mode] new action being classified lines
cli 0
sdk-ts 0
t3-code 1 per tool call (classifierChars≈139,700)

Fix: leave the SDK's default entrypoint (sdk-ts) alone, or get t3-code onto Anthropic's list of entrypoints that get the server-side check. CLAUDE_CODE_ENTRYPOINT_ON_REQUESTS doesn't work as an attribution workaround, because Claude Code reads it only when the entrypoint is claude-desktop-3p. CLAUDE_CODE_AUTO_MODE_MODEL doesn't work either: Claude Code ignores claude-sonnet-5-5 and keeps Sonnet 5.

Workaround: set CLAUDE_CODE_ENTRYPOINT to sdk-ts in the env block of ~/.claude/settings.json. T3 reads it in mergeClaudeProcessEnvironment.

Possibly the cause of #7338.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions