[BUG] claude /init gives this error - API Error: 400 invalid_request with error `tool-search-tool-2025-10-19` for the `anthropic-beta` header.

Resolved 💬 1 comment Opened Apr 22, 2026 by sumonStudy Closed Apr 22, 2026

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?

I have installed claude code in my local machine
Tried to execute claude /init from terminal - powershell from my WIndows machine.
I thought since I do not have node in Windows machine I installed node.
I also installed npm install -g @anthropic-ai/claude-code@latest
However, I get this error on executing /init
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Unexpected value(s)
tool-search-tool-2025-10-19 for the anthropic-beta header. Please consult our documentation at
docs.anthropic.com or try again without the header."},"request_id":"req_vrtx_011CaKAts56QzLf2nwX3AUpF"}

What Should Happen?

On running the /init command it should generate the claude.md file for my project application path.

Error Messages/Logs

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Unexpected value(s)
     `tool-search-tool-2025-10-19` for the `anthropic-beta` header. Please consult our documentation at
     docs.anthropic.com or try again without the header."},"request_id":"req_vrtx_011CaKAts56QzLf2nwX3AUpF"}

Steps to Reproduce

Go to Project path using powershell.
Run command > claude
Then run >/init

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.117 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗