Auto-GPT is an open-source program that utilizes GPT-4 to create a step-by-step plan to achieve your goals. This guide will show you how to install and run Auto-GPT on Mac. If you are looking for the installation guide for Windows, please refer to their official website.
Installation
To install Auto-GPT, you will first need to install Homebrew, a package manager for Mac. Once installed:
- Open the Terminal app and type the following command:
- Run the following command in the Terminal app to get Git and Python if you haven’t installed them already:
- Next, run the following command to clone the Auto-GPT repository:
- Go into the newly created folder by running:
- Since the code is constantly under development, you are recommended to use the stable branch.
- Set up a clean virtual environment by running:
- You should see the label (venv_autogpt) in front of the prompt. Activate the virtual environment by running:
- Install the required packages:
- Sign up for an OpenAI account to create an API key by opening this link: https://platform.openai.com/account/api-keys. Click the “+ Create new secret key” button, name the key “Auto-GPT”, and copy the key to a safe document.
- Create a new config file from the template and edit the .env file by running:
- You will need to set up a paid account at OpenAI to use the GPT API. Go to the billing page: https://platform.openai.com/account/billing/overview and click Set up paid account. After putting in the way to pay, you have completed the necessary setup.
- Download and install Chrome if it is not already installed by going to this link: https://www.google.com/chrome/.
- Make sure you are in the virtual environment. You should see the label (venv_autogpt) in front of the prompt. If not, activate it again.
- Start Auto-GPT by running the following command:
- Name your AI and describe its role.
- Enter your goal(s).
- Auto-GPT will start to run. It will tell you its plan and the reasoning behind it. You can approve its next plan by entering “y” or pre-approve the next 5 plans by entering “y-5”. Enter “n” when you are done.
- To deactivate the virtual environment, run:
- If you have problems running Auto-GPT, run in debug mode to see the error message:
- To update Auto-GPT, run:
- If you encounter any issues, check your Python version and make sure you are calling the correct version. You can switch Python versions using pyenv.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git python
git clone https://github.com/rolux
cd Auto-GPT
python3 -m venv venv_autogpt
source venv_autogpt/bin/activate
pip install -r requirements.txt
cp .env.template .env && open .env
Find and change the line to include your OpenAI API key:
OPENAI_SECRET_KEY=YOUR_API_KEY_HERE
python -m autogpt
deactivate
python -m autogpt --debug
git pull
You are now ready to use Auto-GPT to achieve your goals. Happy exploring!










