iforget AI CLI Assistant
iforget is a command-line interface tool that uses OpenAI's GPT-4 to convert user instructions into executable terminal commands. Who remembers every command anyway?
![iforget cli](https://vyzfg1hdiv0uevlh.public.blob.vercel-storage.com/A3F1BE38-6119-49D7-9CA0-7B79E0EE5C03-8CK7VFeeTeBj5FgCIlH6tU4kzEyt0D.jpeg)
Prerequisites
- Bun as the JavaScript runtime.
- An OpenAI API key.
Installation
To install dependencies, run:
bun install
Configuration
Before using CLI-AI, you need to provide your OpenAI API key. The key will be requested upon your first run and stored locally at ~/.your_script_api_key
.
Usage
To run CLI-AI, use the following command with your instruction:
bun run index.ts "your instruction here"
The tool will generate a terminal command based on your instruction and execute it.
Example
bun run index.ts "list all files in the current directory"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Please submit a pull request if you would like to contribute to this project.