Skip to content

Stupid CLI program to speak with a hacker from an 80s movie.

Notifications You must be signed in to change notification settings

mpusch88/hacker-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacker-ai

A CLI python program that uses the OpenAI API to respond to user's request for assistance like a hacker from an 80s movie.

Requirements

  • Python 3.8 or higher
  • Python packages: openai, python-dotenv
  • OpenAI API Key

Installation

  1. Clone the repository

    git clone
  2. Install the dependencies

    pip install -r requirements.txt
  3. Rename the .env.example file to .env and add your OpenAI API key

    OPENAI_API_KEY=your_api_key_here
  4. (Optional) Add to bash etc.

    Modify .bash_profile (or .bashrc, .zshrc, etc.) to include the following function:

    function hacker() {
        python '/path/to/hacker.py' "$@"
    }

    Or create an alias:

    alias hacker="python '/path/to/hacker.py'"
  5. Run the program

    hacker <your_request_here>

    Or, if you did't add the function/alias to your bash profile:

    python /path/to/hacker.py <your_request_here>

    After a receiving a response, you can enter a new request or type exit, quit, or q to quit.

License

MIT

About

Stupid CLI program to speak with a hacker from an 80s movie.

Topics

Resources

Stars

Watchers

Forks

Languages