Send prompts to Claude.ai directly from your command line!
Open a command line, navigate to a location where to store the files, then run the following commands:
git clone https://github.com/madkarmaa/claude-console.git
cd claude-console
pip install -r requirements.txt
Note
The command (claude_console
) installation is not required but recommended. You can run the installation script like so:
python install.py
Caution
Once installed, DON'T move the cloned folder or else it'll stop working.
Important
FIRST TIME RUN
The first time you'll run Claude Console, you'll be prompted with the following screen:
- Go to claude.ai
- Open the browser's Developer Tools window by pressing
F12
orCtrl+Shift+i
- Go to the Network tab
- Check for any request coming from
claude.ai
and open it - Scroll down to Request Headers and find the Cookie parameter
- Copy the entire content of the parameter
- Paste it in the Claude Console prompt
Claude Console can be used in 2 ways:
claude_console "<prompt>" <OPTIONS>
After the command is executed, the history of the response cannot be accessed by the AI anymore.
Note
COMMAND LINE ARGUMENTS
Use --open
(or -o
, --web
) to open the conversation in your default web browser.
Use --delete-all
(or -da
) to delete all the conversations on your account.
Use --delete
(or -d
) to delete the conversation after getting the response.
claude_console
After the command is executed, an interactive command line chat is shown. The AI will remember the conversation, just like a normal chat.
Tip
Commands are available in chat mode!
Aliases: quit
, q
, exit
Exits the program.
Aliases: web
, open
, o
Continue the chat in your default web browser.
Aliases: copy
, cp
Copy the previous response to the cliboard.
Aliases: delete
, del
, remove
, rm
Delete the current conversation and exit the program.