Simplify and enhance your command-line experience with the power of AI
Project description
🐚 OMGpt Shell
📝 Table of Contents
- 📚 Introduction
- ⭐ Features
- ⚙️️ Installation
- 🎯 Usage
- 🔧 Configuration
- 💡 Contributing
- 👥 Community
- 📜 License
- 🙏 Acknowledgements
📚 Introduction
Welcome to OMGpt Shell! 👋
OMGpt Shell is a revolutionary AI-powered command-line interface (CLI) aiming to make your interaction with your computer's shell environment as intuitive and efficient as possible.
While traditional shell environments like bash, zsh, and fish require specific commands and syntaxes that can be difficult to memorize and use, OMGpt Shell lets you control your computer in a more human way: by using natural language commands.
Think of OMGpt Shell as your personal command-line assistant. Instead of having to remember and type out specific shell commands, you can just tell OMGpt Shell what you want to do in in your preferred language. OMGpt Shell's powerful AI will interpret your command and translate it into the appropriate shell command.
OMGpt Shell can greatly simplify the process of interacting with your computer's shell environment, whether you're a beginner just learning the ropes or a seasoned power user looking for a more efficient way to work. Try OMGpt Shell today and experience the future of command-line interfaces! 🚀
⭐ Features
OMGpt Shell is an AI-powered command line interface designed to make your interaction with the shell more intuitive and efficient. Here are some of the key features:
-
Natural Language Processing: OMGpt Shell uses advanced Natural Language Processing (NLP) techniques to understand your commands. This allows you to interact with the shell in your preferred language, making it more accessible and user-friendly.
-
Wide Range of Command Support: From simple file operations to complex tasks like networking or system management, OMGpt Shell can translate your natural language commands into the appropriate shell commands. This reduces the need to remember specific command syntax and increases productivity.
-
Command History: OMGpt Shell keeps track of the commands you've used, allowing you to easily revisit and reuse them. This feature enhances efficiency and allows for easy repetition of commands.
-
Directory Navigation: Easily navigate through your file system with simple commands. OMGpt Shell understands your directory change commands, making file system navigation a breeze.
-
Streaming Responses: Get real-time feedback from OMGpt Shell. As GPT processes your commands, the responses are streamed back to you, keeping you informed every step of the way.
-
Examples of use:
- Example 1: When you say, "Download the file at 'http://example.com/file' and save it as 'downloaded_file'", OMGpt Shell will execute the following:
wget -O downloaded_file http://example.com/file
- Example 2: If you tell OMGpt Shell to "Find all the Python files in the current directory", it will execute:
find . -name "*.py"
- Example 3: If you say, "Check the current status of git, track and commit the newly written source code with a nice commit message", OMGpt Shell will run:
git status git add . git commit -m "Automatically committed by OMGpt Shell"
- Example 1: When you say, "Download the file at 'http://example.com/file' and save it as 'downloaded_file'", OMGpt Shell will execute the following:
By transforming your natural language inputs into appropriate shell commands, OMGpt Shell makes the process of working with a shell more intuitive, efficient, and user-friendly.
⚙️ Installation
You need Python 3.8 or above and Poetry, a dependency management tool, to install and run OMGpt.
-
Clone the repository
First, clone the OMGpt repository:
git clone https://github.com/ywkim/omgpt.git
-
Navigate to the directory
Change directory to the project:
cd omgpt
-
Install dependencies
Use Poetry to install the necessary dependencies:
poetry install
Now, OMGpt is ready to be used! 🎉
🎯 Usage
After installation, using OMGpt Shell is simple:
-
Open your terminal.
-
Start OMGpt Shell by running the following command:
poetry run python omgpt.py
-
You'll now be in the OMGpt Shell interface. Here, instead of typing regular shell commands, you can issue commands in in your preferred language. For example:
> Download the file at 'http://example.com/file' and save it as 'downloaded_file'
or
> Find all the Python files in the current directory
or
> Check the current status of git, track and commit the newly written source code with a nice commit message
Remember, the goal of OMGpt Shell is to understand your commands in in your preferred language and convert them to appropriate shell commands.
🔧 Configuration
To customize your user experience with OMGpt, you need to create a configuration file named config.ini
in the root directory of your project.
Here's a simple example of what your config.ini
might look like:
[api]
openai_api_key = <your-openai-api-key>
[settings]
chat_model = gpt-4-0613
Required Settings
The only required setting to run OMGpt properly is the OpenAI API Key:
openai_api_key
: You are required to input your OpenAI API key. This allows OMGpt to communicate with the OpenAI API. You can get your OpenAI API key from the OpenAI website.
Optional Settings
These optional settings customize OMGpt to better suit your needs:
-
chat_model
: Specifies the chat model that OMGpt will use. This includes "gpt-4-0613" and "gpt-3.5-turbo-0613", among others. If it's not specified, a default model will be used. ou should verify the availability of these models in your API subscription. -
system_prompt
: Sets the behavior of the model used. The prompt should instruct the model about its function and how to generate responses. For instance, "You are a shell. Your name is OMGpt. You treat their time as precious. You are as concise as possible in responses. You need to run the next command sequentially, depending on the result of the previous command, without prompting the user if necessary. You should run a command to get information about system. Use friendly, appropriate emoticons when responding to users." -
temperature
: Controls the diversity of the model's responses. A higher value (nearer to 1) produces more various outputs, while a lower value creates more deterministic responses.
After modifying your config.ini
, don't forget to save it and restart OMGpt for the changes to apply. More details about the models and their behaviors can be found in the official OpenAI API documentation.
💡 Contributing
We welcome contributions to OMGpt Shell! Whether it's reporting bugs, suggesting new features, improving documentation, or contributing code, your help is greatly appreciated.
Here are some ways you can contribute:
-
Reporting Bugs: If you encounter any bugs or issues while using OMGpt Shell, please open an issue on our GitHub repository. Be sure to include as much detail as possible so we can understand and reproduce the problem.
-
Suggesting Features: Have an idea for a new feature or an improvement to an existing one? Open an issue and label it as a feature request. Please provide as much detail as possible about your suggestion.
-
Improving Documentation: Good documentation makes a great project even better. If you notice any areas of our documentation that could be improved, or if you want to add new tutorials or guides, feel free to make the changes and submit a pull request.
-
Contributing Code: If you're a developer and want to contribute code to OMGpt Shell, we'd love to see your pull requests. Please make sure to follow our coding standards and guidelines.
We appreciate all contributions, no matter how small. Thank you for your support! 👩💻👨💻
👥 Community
One of the goals of the OMGpt project is to foster a community of users and contributors. We believe that community feedback and collaboration is key to creating a versatile and user-friendly shell.
We strongly encourage all users of OMGpt Shell to share their usage cases and experiences. Did you use OMGpt Shell to automate a tedious task? Have you come up with an ingenious command that you'd like to share? We'd love to hear about it!
Our community mainly communicates via Discord. Our server is a place for you to share your experiences, ask questions, and get help with any issues you might encounter. It's also a place where you can share your own ideas and contributions to the project.
We're excited to hear about the diverse ways in which you are using OMGpt Shell, and we believe that sharing these experiences can help make OMGpt Shell even better. Join our Discord server and become part of the OMGpt Shell community!
- Join our Discord server: here
📜 License
OMGpt Shell is licensed under the MIT License. This means you are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, subject to the following conditions:
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more details, please see the LICENSE file in our GitHub repository.
🙏 Acknowledgements
We would like to express our deepest gratitude to the following individuals and organizations for their contributions to OMGpt Shell:
- OpenAI: For developing the GPT models that power OMGpt Shell's natural language processing capabilities.
- All Contributors: For their invaluable contributions to the project, whether it's reporting bugs, suggesting features, improving documentation, or contributing code.
We would also like to thank all users of OMGpt Shell for their support and feedback. Your enthusiasm and interest in our project have been a major driving force behind our work.
Lastly, we would like to acknowledge all the open source projects that have inspired us and made this project possible. We are proud to be part of the open source community and look forward to giving back.
Thank you all! 💖
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file omgpt-0.0.5.tar.gz
.
File metadata
- Download URL: omgpt-0.0.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.10 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3639ab24fb135b824aa73a0ac4bc9054a0301458902a3a4032377f20e93c3d4b |
|
MD5 | 9b9768cf123c6b7f49fe9788c711ec29 |
|
BLAKE2b-256 | 142b4e4acdf7c2e6917560e55b77c9252651c213119580383d7c76bc27abccdc |
File details
Details for the file omgpt-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: omgpt-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.10 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05310a6d40769e4bdf27125d44e30fcd7d8f903a92df85c78bafa3aa3c6795f |
|
MD5 | 0e44144fb0ef3e11874a6bcbe1460ddf |
|
BLAKE2b-256 | 65570bcf9f810071d9878f0626fbb1492b2d8dd8d7576ee68a5de4c6e94ce46b |