[BUG] Authentication Error with ANTHROPIC_AUTH_TOKEN in v1.0.111

Resolved 💬 2 comments Opened Sep 12, 2025 by Christina0215 Closed Sep 12, 2025

Preflight Checklist

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

What's Wrong?

Authentication Error with ANTHROPIC_AUTH_TOKEN in v1.0.111

Description

After upgrading from v1.110 to v1.0.111, authentication via ~/.claude/setting.json with ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL is failing with authentication_error, Invalid bearer token.

Environment

  • OS: Darwin 24.6.0
  • Claude Code version: 1.0.111 (broken), 1.110 (working)
  • Configuration location: ~/.claude/setting.json

Expected behavior

Authentication should work the same as in v1.110

Actual behavior

Getting authentication_error, Invalid bearer token

Additional context

  • Configuration worked in v1.110 and prior versions
  • Same configuration fails in v1.0.111
  • No changes to token or base URL between versions

What Should Happen?

it should work like version 1.0.110

Error Messages/Logs

authentication_error, Invalid bearer token

Steps to Reproduce

  1. Configure ~/.claude/setting.json with ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL
  2. Call claude-code SDK from JavaScript
  3. Receive authentication_error, Invalid bearer token

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.0.100

Claude Code Version

1.0.111

Platform

Other

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗