
Off with its head: running Claude headless instead of calling the API
If you have Claude Pro or Max, a script on your own computer can use claude -p and your normal sign-in instead of an API key. How it works, and when to use the API anyway.

If you have Claude Pro or Max, a script on your own computer can use claude -p and your normal sign-in instead of an API key. How it works, and when to use the API anyway.