[BUG] claude --print returns empty response on Windows with Max subscription (exit code 0)

Resolved 💬 2 comments Opened Apr 1, 2026 by MeadowTree Closed May 8, 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?

Environment:

  • OS: Windows 10 Build 19045.6466
  • Claude Code: 2.1.89 (native installer)
  • Node.js: v22.18.0
  • Git: 2.49.0.windows.1
  • Auth: claude.ai OAuth, Max subscription
  • Usage: 5h utilization 4%, 7d utilization 0%

Problem:
claude --print "hello" returns empty string with exit code 0.
No output to stdout or stderr. Debug output is also empty.

Tested in: PowerShell, cmd.exe, Windows Terminal, Git Bash — all same result.

Working commands:

  • claude --version
  • claude auth status
  • claude doctor

Not working:

  • claude --print "hello" → empty
  • claude --print --model claude-sonnet-4-20250514 "hello" → empty
  • echo hello | claude --print → empty
  • claude (interactive TUI) → hangs/blank
  • CLAUDE_CODE_DEBUG=1 produces no debug output

What Should Happen?

any response

Error Messages/Logs

**Environment:**
- OS: Windows 10 Build 19045.6466
- Claude Code: 2.1.89 (native installer)
- Node.js: v22.18.0
- Git: 2.49.0.windows.1
- Auth: claude.ai OAuth, Max subscription
- Usage: 5h utilization 4%, 7d utilization 0%

**Problem:**
`claude --print "hello"` returns empty string with exit code 0.
No output to stdout or stderr. Debug output is also empty.

**Tested in:** PowerShell, cmd.exe, Windows Terminal, Git Bash — all same result.

**Working commands:**
- `claude --version` ✅
- `claude auth status` ✅  
- `claude doctor` ✅

**Not working:**
- `claude --print "hello"` → empty
- `claude --print --model claude-sonnet-4-20250514 "hello"` → empty
- `echo hello | claude --print` → empty
- `claude` (interactive TUI) → hangs/blank
- CLAUDE_CODE_DEBUG=1 produces no debug output

Steps to Reproduce

Environment:

  • OS: Windows 10 Build 19045.6466
  • Claude Code: 2.1.89 (native installer)
  • Node.js: v22.18.0
  • Git: 2.49.0.windows.1
  • Auth: claude.ai OAuth, Max subscription
  • Usage: 5h utilization 4%, 7d utilization 0%

Problem:
claude --print "hello" returns empty string with exit code 0.
No output to stdout or stderr. Debug output is also empty.

Tested in: PowerShell, cmd.exe, Windows Terminal, Git Bash — all same result.

Working commands:

  • claude --version
  • claude auth status
  • claude doctor

Not working:

  • claude --print "hello" → empty
  • claude --print --model claude-sonnet-4-20250514 "hello" → empty
  • echo hello | claude --print → empty
  • claude (interactive TUI) → hangs/blank
  • CLAUDE_CODE_DEBUG=1 produces no debug output

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code: 2.1.89

Platform

Claude.ai (Max)

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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