Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Status Fixed / completed
Maintainer reply None cached
Activity 14 comments · opened Mar 9, 2025 · closed Jun 10, 2025
I am looking to run claude on a github actions CICD pipeline to review my code automatically on PRs.
I am using the command line: claude -p "my prompt" --print but no luck.
Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported
at handleSetRawMode (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:4[7](https://github.com/kttipay/banking-service/actions/runs/13747645371/job/38444607184#step:5:8)6:2045)
at file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:486:2000
at wK (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:77:21381)
at pV (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:77:40838)
at file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:77:39053
at UI1 (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:71:22715)
at Immediate.zI1 [as _onImmediate] (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai/claude-code/cli.js:71:23127)
at process.processImmediate (node:internal/timers:491:21)
ERROR Raw mode is not supported on the current process.stdin, which Ink uses
as input stream by default.
Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
- Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
-handleSetRawM (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/
ode @anthropic-ai/claude-code/cli.js:476:2045)
- (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai
/claude-code/cli.js:4[8](https://github.com/kttipay/banking-service/actions/runs/13747645371/job/38444607184#step:5:9)6:2000)
-wK (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-
ai/claude-code/cli.js:77:21381)
-pV (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-
ai/claude-code/cli.js:77:40838)
- (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic-ai
/claude-code/cli.js:77:3[9](https://github.com/kttipay/banking-service/actions/runs/13747645371/job/38444607184#step:5:10)053)
-UI1 (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@anthropic
-ai/claude-code/cli.js:71:22715)
-Immediate.z (file:///opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/@a
1 nthropic-ai/claude-code/cli.js:71:23127)
- process.processImmediate (node:internal/timers:491:21)
14 Comments
@pierrekttipay What did you try? I am trying the same but I am also facing the same issue. I have tried different approaches, even using a Docker image. Do you think we can collaborate?
@tcorral I am trying to setup github action to analyse the current pull request diff and write an automated review about the code.
I think we need the claude-code core team to get involve.
This package is fundamentally an interactive tool which makes it extremely limited.
The
-poption is not doing enough in my opinion. The-pshould really avoid any interactive tooling to bootstrap.At the moment it seems that
-pis just a way to auto exit the interactive tool after the first answer.The
--printdoesn't do anything it seems (maybe it's redundant with the -p, I couldn't find much doc about it)Trying to integrate Claude Code to our CI/CD pipeline today as well (in a GitHub action) and running into the same error. Need a way to run without requiring interaction.
I tried the following:
workflow.yml
claude-script.exp
The problem is that the first two commands run without requiring interaction and the last one gets stuck.
@ashwin-ant Are there any plans to add a non-interactive argument so it can be used in a similar way as you can use Aider?
I have had a similar issue with the following no frills dockerfile
error returned which is the same as above:
Perhaps this is a simpler setup to debug for a similar error. Happy to create a separate issue if required.
@tcorral I am experimenting with your solution.
I face another issue which is
It seems claude code requires login via the browser the first time you launch the claude command.
This browser login interaction creates a "Claude Code API key" automatically and do allow reading the full key.
Since I am trying to run claude-code on a cicd, I do not have the option to open a browser and login, thus I do not have a valid key to use claude on cicd.
Fwiw I hit this when running locally, not CI. It happened when I piped input to
claude. It worked when I didn't pipe, but strangely then the next time I piped it started working again 🤷I suspect this only manifests any time running
clauderesults in a "box" which requires input before continuing (e.g. approving MCP servers, or confirming you trust runningclaudein a directory)Ohh that seems definitely like it could have been it. I ran it a few times with pipe and hit this every time, and pretty sure it was first time I ran it in some repo, then when I ran without pipe I probably hit trust button and then reran again with pipe and it worked
This is preventing our engineering dept from switching from Goose to Claude for some CI/CD workloads at the moment
Usage: "cat instructions.txt | claude --dangerously-skip-permissions"
(in a safe containerized environment)
I'm encountering sth similar, I'm using claude code in E2B, but I cannot get output. Are there any updates about this issue?
I've encountered the same issue whenever I pipe to Claude on a new project or using a new Claude command. I then run
claudeto start an interactive session and it prompts you to confirm that you trust the current codebase. Once you say "Yes" you can exit and successfully run the pipe command.It makes sense that you might encounter this in CI where it's always a "new" project for Claude.
You could try running
claude --permission-mode bypassPermissionsas a step in your CI.See https://docs.anthropic.com/en/docs/claude-code/iam#permission-modes
Thanks @scott82anderson it worked.
I ran claude code in the CICD using:
expect .github/workflows/claude-script.exp "$PROMPT"claude-code.exp
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.