Ever wanted your terminal to be smarter? RSII uses Rust and OpenAI to turn your queries into system commands. It's like having a clever assistant in your command line.
- Fetches system information and user queries.
- Integrates with OpenAI's Chat Completion API.
- Executes commands based on AI responses.
- Copies commands to clipboard for easy execution.
- Supports macOS, Linux, and Windows for command execution.
- Ensure Rust is installed on your system. You can download and install Rust from rust-lang.org.
- Install the RSII package using Cargo:
cargo install rsii
- Install RSII using Homebrew:
brew tap ioma8/rsii https://github.com/ioma8/homebrew-rsii brew install rsii
- Edit a configuration file at
~/.rsii/config.toml:[default] model = "your-model" # gpt-4o-mini api-key = "your-api-key" # sk-....
Run the application with a user query:
rsii "Your query here"The application will fetch system information, process the query using OpenAI's API, and execute the corresponding command.
This project is licensed under the MIT License.