Metadata-Version: 2.1
Name: rubberduck-ai
Version: 0.5.3
Summary: A CLI tool for ChatGPT.
Home-page: https://github.com/hansololz/rubberduck-ai
License: MIT
Keywords: rda,openai,ChatGPT,chat
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: inquirer (~=3.1.2)
Requires-Dist: openai (~=0.27.0)
Requires-Dist: pyperclip (~=1.8.2)
Requires-Dist: halo (~=0.0.31)
Requires-Dist: rich (~=13.3.2)
Requires-Dist: pyreadline3 (~=3.4.1)
Requires-Dist: setuptools (~=65.5.0)
Requires-Dist: aiohttp (~=3.8.4)
Requires-Dist: configparser (~=5.3.0)

# ChatGPT CLI Client

## Installation

### Manual Installation

    git clone https://github.com/hansololz/rubberduck-ai.git
    cd rubberduck-ai
    python3 setup.py install

### Installation (pip)

    pip3 install rubberduck-ai

## Authentication

### Authentication Token
The CLI tool requires Open AI authentication token. Token can be obtained 
by going to https://platform.openai.com/account/api-keys.

### Authentication Methods
Choose one of these options to authenticate the CLI tool:
- Set the environment variable: `OPENAI_API_KEY=<AUTHENTICATION_TOKEN>`.
- Use a command argument: `rda --openai-api-key=<AUTHENTICATION_TOKEN>`.
- Enter the API key when prompted while running the CLI tool.

## Usage

### Evaluation Loop
Run the application:
    
    rda

#### Supported Commands
- .n .new: Create new session
- .p .print: Print current session 
- .s .sessions: Change chat session
- cd clear ls: Session supported bash commands
- cd cls dir: Session supported cmd commands

### Single Prompt
Process a single prompt with:

    rda <SINGLE_PROMPT> --openai-api-key=<AUTHENTICATION_TOKEN>
