Explosion-Scratch / claude-unofficial-api

Unofficial API for Claude-2 via Claude Web (Also CLI)
https://npmjs.com/package/claude-ai
The Unlicense
729 stars 78 forks source link

echo "prompt" | claude doesn't work #11

Closed oxmwh closed 1 year ago

oxmwh commented 1 year ago

If you use the cli like this: echo "hello" | claude --key key This is what you get:

(node:18673) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Welcome to the Claude CLI!
? Select a conversation: Start new conversation
? (claude-2) >

and it exits and nothing happens