Claude Code stops billing API users for auto-mode safety checks
v2.1.278, 19 September: the classifier that vets shell and network moves server-side for Claude API, Enterprise, Bedrock, Vertex, Foundry and gateways — when the server can see the session. Gateways that strip headers fall back to the old, billed path.
Feature2 minIn-depth
Priya Shah2 min read
- Claude Code
- Anthropic
- API billing
- Auto mode
- Enterprise

Photo: PexelsPexels License
Claude Code 2.1.278, released 19 September, stops charging some accounts for the safety classifier that runs in auto mode. Shane S. Ellison reported the change for Mixed News on Monday. Auto mode is the setting that lets the agent run shell commands and network requests without asking each time. Anthropic’s docs say a classifier checks those actions before they run. Until this build, those checks were extra model requests and showed up as tokens. From 2.1.278, Claude Code asks the server to do the checks as part of the session’s own requests and “doesn’t charge for them when the server performs them.” The default covers Enterprise, Claude API, and sessions on Bedrock, Vertex, Foundry and the Claude Platform on AWS — each platform and region on its own rollout. Anthropic published no figure for what the overhead used to cost.
When the server cannot see the session, nothing breaks. The client runs the classifier itself and bills it as before. The first time that happens, the session holds the action and prints a one-off notice: the session is not eligible for the unbilled path. Enter runs the held action on the billed classifier and silences the notice for the rest of the session. Esc or Ctrl+C cancels the turn; auto mode stays on. Pro, Max and Team plans never see the notice — they use a different path. `/status` now has an Auto mode server row, Enabled while the server is deciding, Disabled after fallback.
Gateways that strip headers put you back on the meter
Anthropic names the usual culprit: an LLM gateway or proxy that strips or rewrites headers, drops unknown request fields, or edits responses. The fix is to pass the safeguards request field and the `safeguard_results` response through untouched. Teams that know their gateway cannot do that can set `CLAUDE_CODE_AUTO_MODE_SERVER=0` before a session, which keeps the billed classifier and kills the notice. Anthropic calls the variable temporary and says it may be removed; it is not read on a direct connection to the Anthropic API. The notice can also appear when a platform, region or credential has not been given the server checks yet. This is a default, not a price cut. The old billing still applies whenever the server’s checks go missing.
The build a day earlier, 2.1.277, is the AGENTS.md fallback already on this site: if a repo has no CLAUDE.md, Claude Code reads the cross-tool file Codex and others use. CLAUDE.md still wins. Mixed News notes it is not yet on Bedrock, Vertex or Foundry. For anyone watching a Claude Code bill, 2.1.278 is the larger of the two, and it arrives with nothing to switch on — unless a gateway has already switched it off.


