Skip to content

Send prompts to Claude.ai directly from your command line!

License

Notifications You must be signed in to change notification settings

madkarmaa/claude-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Console

Send prompts to Claude.ai directly from your command line!

📝 Requirements

⚙️ Installation

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.

💻 Usage

Important

FIRST TIME RUN

The first time you'll run Claude Console, you'll be prompted with the following screen:

cookies

  1. Go to claude.ai
  2. Open the browser's Developer Tools window by pressing F12 or Ctrl+Shift+i
  3. Go to the Network tab
  4. Check for any request coming from claude.ai and open it
  5. Scroll down to Request Headers and find the Cookie parameter
  6. Copy the entire content of the parameter
  7. Paste it in the Claude Console prompt

get-cookies

Claude Console can be used in 2 ways:

📢 Single response

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.

prompt

🗨️ Full chat

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!

chat

✏️ Chat commands

Command prefix: !

exit

Aliases: quit, q, exit

Exits the program.

open

Aliases: web, open, o

Continue the chat in your default web browser.

copy

Aliases: copy, cp

Copy the previous response to the cliboard.

delete

Aliases: delete, del, remove, rm

Delete the current conversation and exit the program.