# Chatgpt on oh my zsh terminal 1. Install Oh My Zsh: If you haven't already, you can install Oh My Zsh by following the instructions on the Oh My Zsh website (https://ohmyz.sh/). 2. Open a terminal: Open a terminal or command prompt window. 3. Install the Python package for ChatGPT: You can install the openai package for ChatGPT using pip by typing the following command: ```shell= pip install openai ```` ![](https://i.imgur.com/Q1PTpcQ.jpg) 4. Set up your OpenAI API key: You will need an API key from OpenAI to use ChatGPT. You can get an API key by signing up for the OpenAI API at https://beta.openai.com/signup/. Once you have an API key, you can set it as an environment variable in your terminal by typing the following command: **generate the keys** ![](https://i.imgur.com/3gA8zR5.png) **save them in secure place not at plain rest** ![save in safe place](https://i.imgur.com/HploN0V.png) smthng like this : dr-.i.nnodlslBUnedtSRQowSQN5U444lbkFJUdddfnvkdvnkfdnKC8Q1b ```shell= export OPENAI_API_KEY=<your-api-key> ``` Replace <your-api-key> with your actual API key. 5. Install the ChatGPT script: You can install the ChatGPT script by downloading the `chatgpt.py` file from the OpenAI GitHub repository (https://github.com/elnemesisdivina/lechat/blob/main/chatgpt.py) and saving it to a directory on your computer. 6. Run the ChatGPT script: You can run the ChatGPT script by navigating to the directory where you saved `chatgpt.py` in your terminal, and typing the following command: ```shell= python chatgpt.py ```` 7. create an alias in zsh: ```shell= alias chatgpt='python /path/to/chatgpt.py' ``` sample: ![](https://i.imgur.com/TvhR1Ff.png)