[BUG] claude -p not work in 1.0.111

Resolved 💬 5 comments Opened Sep 12, 2025 by CassieBaby 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?

When using Claude -p in version 1.0.111, results in an error. The error message displayed is:
'API Error: 403 {"error":{"type":"forbidden","message":"Request not allowed"}} · Please run /login'

The last known working version was 1.0.110.

What Should Happen?

claude -p also works in 1.0.111

Error Messages/Logs

"content":[{"type":"text","text":"API Error: 403 {\"error\":{\"type\":\"forbidden\",\"message\":\"Request not allowed\"}} · Please run /login"}]

Steps to Reproduce

claude -p "Who are you" --verbose --output-format stream-json'

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.0.110

Claude Code Version

1.0.111

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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