Claude Code CLI hangs on Termux (Android) with Node.js v24

Resolved 💬 3 comments Opened Feb 6, 2026 by dragonbornjedi-code Closed Feb 10, 2026

Environment

  • Device: Samsung S24 Ultra (Android via Termux)
  • Node.js: v24.13.0 (only version available on Termux)
  • Claude Code: v2.1.33
  • OS: Termux on Android

Problem

Claude Code CLI hangs indefinitely during initialization when running any command with -p or --print flags. The --version and --help commands work fine.

Reproduction Steps

  1. Install Claude Code on Termux: npm install -g @anthropic-ai/claude-code
  2. Authenticate with OAuth (Max subscription)
  3. Run: echo 'hi' | claude --print
  4. Command hangs for 60+ seconds then times out

Debug Findings

Using --debug-file, the logs show:

[DEBUG] [init] configureGlobalMTLS starting
[DEBUG] [init] configureGlobalMTLS complete
[DEBUG] [init] configureGlobalAgents starting
[DEBUG] [init] configureGlobalAgents complete
# 60+ second gap here
[DEBUG] Getting matching hook commands for SessionEnd

The initialization completes quickly, but then there's a ~60 second gap before any further activity. This suggests something is blocking/timing out between init and the actual API call.

Additional Context

  • Direct API calls via curl work fine (network is not the issue)
  • Secondary services (statsig, growthbook, auth.anthropic.com) respond in ~2s each
  • The OAuth token is valid and works when Claude does eventually respond
  • Node.js v24 is the only version available on Termux (no way to downgrade)

Workaround

Created an HTTP proxy on another machine running Claude Code successfully, and call it from Termux. This works but is not ideal.

Expected Behavior

Claude Code should work on Termux/Android with Node.js v24, or at minimum provide a clear error message about compatibility issues.

View original on GitHub ↗

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