Yai: AI-powered terminal assistant
Unleashing the power of AI to streamline your command line experience.
Note : Yo has been renamed to Yai. Presented examples are still relevant, just the command name changed.
👉 Introduction
The command line is an essential tool for developers, system administrators, and anyone who works with computers on a daily basis. However, for some, the command line can be a daunting and unwelcoming environment, with its seemingly cryptic syntax and the need to remember countless commands.
Enter Yai (your AI), your new AI-powered terminal assistant that aims to make the command line experience more accessible and enjoyable for everyone.
Yai is a go application that harnesses the power of AI to understand natural language inputs, converting them into command line instructions and even executing them on your behalf.
With Yai, you no longer need to memorize complex commands or spend hours learning how to navigate the terminal. Simply express your needs in plain English (or your favorite language), and Yai will take care of the rest.
🚀 Getting Started with Yai
Yai is available at https://github.com/ekkinox/yai, and the documentation is here.
To install it:
curl -sS https://raw.githubusercontent.com/ekkinox/yai/main/install.sh | bash
And that’s it!
At first execution, Yai will ask you an OpenAI API key, and will configure itself.
🔎 Usage examples
Yai can help you in many ways.
It can for example guide you on random needs you may have:
Or help you managing your system:
It can even manage your packages for you:
This doesn’t stop here.
For example, it can help you managing your docker resources:
Or make using a k8s cluster a piece of cake:
It can even help you in your software development:
You can even pipe input, to make it work with it:
But remember, Yai is not just a command line assistant.
You can also engage in conversation with it about any topics you have in mind:
📜 Key Features of Yai
- Natural language processing: Yai is built on top of ChatGPT, which enables it to understand and interpret user inputs accurately. Just type your request in everyday language, and Yai will determine the appropriate command line action to take, or help you the best it can.
- Command line execution: Yai goes beyond merely interpreting your requests — it can also explain and execute the corresponding command line actions for you, given you provided validation. This not only saves you time and efforts but also helps minimize errors and typos that can cause unexpected issues in your system.
- Conversational AI: Yai isn’t just a tool for executing commands; it’s also a friendly asssistant that can engage in conversation with you. You don’t need to leave your terminal and use your browser to get information about random topics, Yai is always up for a chat. After all, nothing better than staying at /home!
- Cross-platform compatibility: Developed using Go, Yai is platform-agnostic and can be very easily installed on a variety of operating systems, including macOS, Linux and Windows.
- Personalisation: Yai is already aware of your context (OS, distribution, username, home directory, shell, etc), but you can express any supplementary preferences in your natural language. Yai will take this into account to be the most helpful possible.
Note: even if Yai is safe, as it requires your validation before running any commands, it is NOT recommended to use it on production systems.
🏁 Conclusion
Yai is a AI-powered terminal assistant that makes the command line experience more accessible and enjoyable for users of all skill levels.
By leveraging the power of natural language processing and artificial intelligence, Yai enables you to interact with your system effortlessly, taking care of the complex syntax and commands that once made the terminal intimidating.
So why not give Yai a try and experience a new command line interaction today?