https://github.com/madkarmaa/claude-console
Send prompts to Claude.ai directly from your command line!
https://github.com/madkarmaa/claude-console
ai ai-assistant ai-chatbot anthropic anthropic-claude artificial-intelligence claude claude-3 claude-3-opus claude-3-sonnet claude-ai claude-api cli cli-app cli-application cli-utility console console-app console-application console-tool
Last synced: 8 months ago
JSON representation
Send prompts to Claude.ai directly from your command line!
- Host: GitHub
- URL: https://github.com/madkarmaa/claude-console
- Owner: madkarmaa
- License: mit
- Created: 2024-07-27T15:40:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-29T12:12:21.000Z (about 1 year ago)
- Last Synced: 2025-01-08T15:33:41.196Z (9 months ago)
- Topics: ai, ai-assistant, ai-chatbot, anthropic, anthropic-claude, artificial-intelligence, claude, claude-3, claude-3-opus, claude-3-sonnet, claude-ai, claude-api, cli, cli-app, cli-application, cli-utility, console, console-app, console-application, console-tool
- Language: Python
- Homepage: https://claude.ai
- Size: 1.11 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Claude Console
Send prompts to [**Claude.ai**](https://claude.ai/) directly from your command line!
## 📝 Requirements
- [Python 3](https://www.python.org/downloads/)
- [Git](https://git-scm.com/downloads)## ⚙️ 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:
>
> 
>
> 1. Go to [claude.ai](https://claude.ai/chats/)
> 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
>
> **Claude Console** can be used in 2 ways:
### 📢 Single response
```
claude_console ""
```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.
### 🗨️ 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](#️-chat-commands) are available in chat mode!
## ✏️ 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.