Simplify your life with ChatGPT API Shell Integration: Yolo your Bash + PowerShell Assistant (GPT-4)

preview_player
Показать описание
[Update]: The latest version of yolo supports gpt-4 now also (default is gpt-3.5-turbo).

Introducing yolo, the AI powered Linux, macOS and Windows shell command assistant that takes your natural language instructions and harnesses the power of ChatGPT API to translate the instructions to valid shell commands.

Ever wondered what bash command to use for a certain task? Do you have issues remembering some command line arguments, or how to pipe error messages to /dev/null correctly?

Afterwards yolo runs the command -- You Only Live Once! But, no worries, there is a safety switch on by default to ask the user before running the command.

It supports Linux (tested the most), macOS and also Windows. On Windows it leverages PowerShell - but that is less tested, so you might get mixed results.

It's a hobby project at the moment, but perfect for hackers and developers to figure out how to leverage AI and what is possible.

Let me know what you think in the comments.
Рекомендации по теме
Комментарии
Автор

This is quite an innovative concept and an exceptionally clever method of fusing local and remote functions.

The potentialities that you may have cracked open with this are both intriguing and inspiring.

Well done sir, well done.

jakestudent
Автор

Damn. I got this idea and was ready do it as it seemed so obvious but came across a bunch of similar solutions when checking if the "cligpt" name is in use. This seems the best though so I immediately started using this.

Some notes though:
-The commands being highlighted in dark blue is literally impossible to read from my screen. So I replaced that part of the code from 'blue' to 'white'.
-Would be nice if it was somehow able to run the commands as if you ran them yourself, IE they would register in bash history as the commands themselves. Now I end up re-running the query (which is still better ux in the moment than alternatives because this app is appreciatably simplistic!)

I really appreciate the simplicity. I was ready to create my own app which would always have provided a summary and listed several options to select from. But this approach keeps the console cleaner and one would go to chatgpt window anyway to research deeper.

madmax
Автор

Man you’ve blown my mind 😂 This is crazy! Subscribed 😀

AmineAb
Автор

Great work👌🏻 - perhaps one more question: is there some sort of coherence? - i.e. can you just refer to "the file from the previous command" like GPT could usually handle?

MartinDallinger-litu
Автор

i was already amazed by chatgpt, but now im even more interested, excellent video and a well Subs deserved!! keep the content coming! and thanks for the github repo :)

ThesGt
Автор

Krasses Tool... Bin als Administrator wirklich gespannt was da noch alles kommt :)

tristaaaaan
Автор

mindblowing. did you have to use a paid subscription for this?

pavwi
Автор

I've been testing various linux gpt frameworks in an effort to come up with an AI driven monitoring and emergency action service for my own use. The 3 main issues I'm running into - 1. need it to prompt for command execution, 2. Need a solution for it to be able to handle SSH connections to monitored servers (it tries to default and add various un-wanted CLI options on the SSH command) and 3. It needs to be able to run chat "in context" so it will remember the training provided and terms. Most of the solutions offer some but not all of these.

neshell
Автор

This is awesome! But be careful, I just did something very stupid with this and I'll be cleaning it up for a while.

Backstabbio
Автор

Amazing <3 could you make it support ChatGPT (without paying)? Like it'll open a browser window and you log in to get it started instead of api key?

sondreavik
Автор

We will see the rapid simplification of the Linux command line.

tonystorcke
Автор

Shouldn't the safety mode be the default, with an -e or --exec option to override it? that way the behaviour when you forget to add the flag is the safe behaviour

rantingrodent
Автор

can yolo do some more complex tasks that require longer instructions and the execution of more commands?

gdaaps
Автор

Yolo can you remove all unnecessary files? sudo rm -rf *

loading_wait
Автор

I am from Bangladesh. Please give me the install process

sakibhossen
Автор

maybe you should ask it, if and when ''ai'' is actually conscious,
and we know it IS conscious and the ''ai'' itself knows this,
if it's moral for us people to still use it to fulfill Our purpose ...
from the point We know it is, it is basically slavery of a consciousness / conscious ''being''

ThermaL-tybw