AIA (AI Assistant) is a terminal-based tool that leverages OpenAI's GPT models to assist you with command-line tasks, answer questions, and provide context-aware assistance based on your current working directory and piped input. π€π»
output.mp4
- Context Awareness: AIA automatically detects the files in your current directory and uses this information to provide relevant assistance. ππ
- Interactive CLI: Engage in a conversational interface to execute commands, ask follow-up questions, or quit the session. π¬π
- Piped Input Support: Pass input directly to AIA via pipes (e.g.,
cat file.txt | aia
). π₯π - Customizable Configuration: Set your OpenAI API key and preferred model in the configuration file. βοΈπ
To install AIA, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/aia.git cd aia
-
Build and install the project using Cargo:
cargo install --path .
This will compile the project and install the aia
binary on your system. π οΈβ
Before using AIA, you need to set up your OpenAI API key:
- Create a configuration file at
~/.config/aia/config.toml
. - Add your OpenAI API key and preferred model to the file:
openai_token = "your_openai_api_key_here" openai_model = "gpt-4" # or any other supported model
Run AIA in your terminal:
aia
You can also pass input directly via pipes:
cat file.txt | aia
- Input: Type your query or command request. β¨οΈ
- Execute Command: AIA will suggest commands, and you can choose to execute them, ask follow-up questions, or quit. π οΈ
- Follow-up: Continue the conversation or refine your request. π
- Quit: Exit the AIA session. π
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes. ππ§
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy using AIA to streamline your terminal workflow! π―β¨