A CLI tool for ChatGPT.
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rubberduck-ai-0.5.2.tar.gz
(17.3 kB
view hashes)
Built Distributions
rubberduck_ai-0.5.2-py3.11.egg
(44.9 kB
view hashes)
Close
Hashes for rubberduck_ai-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ddce63f375d09e8f4aca30daae3b375e9b9188d42fa35b53071871b770cf1c |
|
MD5 | e5a87c0f32918ff0cacf378ca18273ae |
|
BLAKE2b-256 | bf3e98c16e7d887e2077ff521ea0985fc9d30c649adedab8274d40a73e826a2f |