Claude Code · Install and setup
Raw mode is not supported on the current process.stdin
Claude Code tried to show an interactive prompt while its input wasn’t a terminal, typically during a piped install.
Message
The exact error
Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.Meaning
What does “Raw mode is not supported” mean in Claude Code?
Claude Code’s interface reads keys directly from the terminal (“raw mode”). When its input is a pipe instead, as with curl … | bash, it can’t. Anthropic documents one common case: versions before 2.1.246 tried to show an organisation’s settings-approval dialog during claude install, which fails when the installer is piped.
Causes
Why does the Claude Code installer hit raw mode?
- Running the installer from a pipe on a version older than 2.1.246 with server-managed settings that need approval
- Running
claudeinteractively with its input redirected from a file or pipe
Fix
How do I fix “Raw mode is not supported” during install?
Rerun the installer
The install script runs the latest release’s installer, which no longer shows the dialog there.
macOS / Linux curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell irm https://claude.ai/install.ps1 | iexDon’t pipe into interactive Claude Code
For scripts, use non-interactive mode:
claude -p "your prompt".If your organisation forces a settings refresh at startup
The dialog can still appear during install. Download the script first and run it as a file, so its input is your terminal instead of a pipe, then approve the dialog. If you can’t, ask your admin.
macOS / Linux curl -fsSL https://claude.ai/install.sh -o install.sh bash install.sh claude --version
Explained
Why does a pipe break the approval dialog?
curl -fsSL https://claude.ai/install.sh | bash feeds the script to Bash through a pipe, so every program the script starts, including claude install, inherits that pipe as its standard input. Claude Code draws its interface with Ink, which switches the terminal into raw mode to read single key presses. A pipe has no raw mode, so the first dialog that waits for a key fails with this error.
The dialog in question is the security approval for your organisation’s server-managed settings: changes such as new hooks or permissions need you to confirm them. Since v2.1.246, claude install and claude update skip that dialog and keep the settings you last approved; the dialog moves to your next interactive session.
Explained
What if my organisation uses forceRemoteSettingsRefresh?
When the managed configuration makes Claude Code wait for the settings fetch at startup (fail-closed startup, for example with forceRemoteSettingsRefresh), the approval dialog still appears during install and update, even on current versions. A piped install then still fails, so run the downloaded script from an interactive terminal as shown above. For other install failures, see command not found: claude and install script returns HTML.
FAQ
Questions people ask
Why does Claude Code say raw mode is not supported during install?
The installer runs claude install from a pipe, and versions before 2.1.246 tried to show your organisation’s settings-approval dialog there. The dialog needs a terminal to read keys, and a pipe isn’t one. Rerunning the install command fixes it, because the script always runs the latest release’s installer, which no longer shows the dialog during install.
Does rerunning the installer install the newest version?
The script runs the latest release’s install command even when you ask for an older version, which is why rerunning gets past this error. Run claude --version afterwards to see which version you now have. Homebrew and WinGet installs work differently and don’t update themselves by default.
How do I use Claude Code in a script without raw mode errors?
Use non-interactive mode: claude -p "your prompt" prints one answer and exits without drawing the interactive interface, so it works with piped input and in CI. The interactive interface needs a real terminal for keyboard input.
Related
Related errors
Keep exploring