Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reznetdevops/aicli
Terminal AI assitant that works better than any cheatsheets
https://github.com/reznetdevops/aicli
ai terminal
Last synced: about 1 month ago
JSON representation
Terminal AI assitant that works better than any cheatsheets
- Host: GitHub
- URL: https://github.com/reznetdevops/aicli
- Owner: rezNetDevOps
- License: mit
- Created: 2024-04-07T21:45:29.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T13:28:13.000Z (10 months ago)
- Last Synced: 2024-06-19T15:03:39.701Z (7 months ago)
- Topics: ai, terminal
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Command Line Interface (aicli)
`aicli` is a Go CLI application that leverages the power of OpenAI's GPT-3.5 model to provide assistance with Linux terminal commands.
## Installation
1. Ensure you have Go installed on your system.
2. Set your OpenAI API token as an environment variable named `OPENAI_TOKEN`.
3. Install the OpenAI Go client library by running `go get github.com/openai/openai-go/v1`.
4. Clone this repository:```bash
git clone https://github.com/rezNetDevOps/aicli.git
```5. Navigate to the directory containing the cloned repository.
6. Build the executable:```bash
go build
```## Usage
To use `aicli`, follow these steps:
1. Execute the built binary:
```bash
./aicli
```2. Enter your query when prompted. For example:
```bash
Enter your query: list of hidden files in a directory
```3. Press Enter, and `aicli` will provide you with a terminal command along with a brief one-line explanation.
## Example
Here's an example of how `aicli` can assist you:
```bash
Enter your query: list of hidden files in a directory
```Response:
```bash
ls -a -l
List all files in the directory, including hidden files, with detailed information.
```## Contributing
Contributions are welcome! Feel free to open issues or pull requests on [GitHub](https://github.com/rezNetDevOps/aicli).
## License
This project is licensed under the [MIT License](LICENSE).