aiterm
is a command-line application that translate natural
language to Unix commands, leveraging AI APIs. Designed for developers, system administrators,
and anyone accustomed to the terminal but seeking a more intuitive way
to interact with their systems, with aiterm
instead of googling the commands you can have them
readily in your terminal. Developed in Go, aiterm
is currently
in beta, offering a glimpse into a future where commands are more accessible
and user-friendly.
- Natural Language Processing: Translate natural language commands into Unix commands using advanced AI APIs.
- Flexible Configuration: Use an environment variable or a flag to set the OpenAI API key. (Upcoming) select which OpenAI model to use with different configs.
- Interactive Options: After translating a command, choose to run it directly, copy it to the clipboard, or edit it further for customization.
- Contextual Awareness: (Upcoming) Send subsequent requests without context or with the current context for refined command suggestions.
Since aiterm
is in beta, it can be installed by cloning the repository and building the project with Go. Here are the steps:
git clone https://github.com/yourgithubusername/aiterm.git
cd aiterm
go build -o aiterm
To use aiterm
, you need to set the OpenAI API key. This can be done in two ways:
- Set an environment variable
OPENAI_KEY
with your OpenAI API key. - Use the
-key
flag when runningaiterm
to provide the API key.
If the API key is not set, aiterm
will prompt you to enter it manually or offer to set it up for future use.
To start aiterm
, simply run the built executable. Here's a basic example:
./aiterm "find all the files that has the word foo in them in the previous directory"
Contributions are welcome! If you're interested in improving aiterm
, please follow these steps:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Submit a Pull Request.
aiterm
is licensed under the MIT License. This permits personal and commercial use, modification, distribution, and private use of the software under the condition that the license and copyright notice are included in all copies or substantial portions of the software. For the full license text, see the LICENSE file in the project root.
For questions, support, or contributions, please contact My email.