AutoGPT Local Setup (Mac & PC)
AutoGPT - Tutorial setup (local)
You might encounter some issues with your terminal or say the ‘pip’ command in your terminal. If you have issues or errors put the error command into ChatGPT and tell it what you want to do and it will give you the commands to run. You might need to install things like Python3, HomeBrew, Pip etc depending on your computer and if you have done this stuff before. It’s not hard and only takes about 20-30 min to setup.
First we start in the terminal or command prompt I think it is called on a PC. I have done this in a Mac and using ChatGPT to assist with translating them for PC so they should be decent, however just paste this tutorial into ChatGPT and ask it to help you and it will guide you through the process if needed.
P.s: Don’t include the “” in the actual terminal input.
Step by step:
Mac: “cd ~/Documents”
PC: “cd Documents”
Both: “mkdir AutoGPT_Tutorial”
Mac: “cd ~/Documents/AutoGPT_Tutorial”
PC: “cd Documents\AutoGPT_Tutorial”
Mac: “python3 -m venv venv_py3_autoGPT”
PC: “py -3 -m venv venv_py3_autoGPT”
Mac: “source venv_py3_autoGPT/bin/activate”
PC: “myenv\Scripts\activate” (if you run into an issue with this put it into Chat GPT with the error, you might get a permissions error the ‘source’ in the Mac is added to get around permissions, not sure what it is for PC)
Now you should have the folders and terminal setup to run AutoGPT. Now time to get AutoGPT :)
You could do this in the terminal really easily however when I did this my folders had permission issues and it didn’t work, so I would recommend the manual approach however just run this command in the active terminal from the setup before Run: “git clone https://github.com/Significant-Gravitas/Auto-GPT.git”
Mac: “cd ~/Documents/AutoGPT_Tutorial/Auto-GPT”
PC: “cd Documents\AutoGPT_Tutorial\Auto-GPT”
Both (I think): “pip install -r requirements.txt”
Great now you can run it!
Put the below commands into the terminal to run it!
Best: GPT4: “python3 -m autogpt”
Cheap: GPT-Turbo: “python3 -m autogpt —gpt3”
Now you should have it all setup, you can do additional things with the setup like adding in a vector database to store the history. To learn more use the internet :)
To run it each time you need to do this:
Mac: “cd ~/Documents/AutoGPT_Tutorial”
PC: “cd Documents\AutoGPT_Tutorial”
Mac: “source venv_py3_autoGPT/bin/activate”
Recommended by LinkedIn
PC: “myenv\Scripts\activate
Mac: “cd ~/Documents/AutoGPT_Tutorial/Auto-GPT”
PC: “cd Documents\AutoGPT_Tutorial\Auto-GPT”
Best: GPT4: “python3 -m autogpt”
Cheap: GPT-Turbo: “python3 -m autogpt —gpt3”
End of tutorial
TLDR.
Here is the list of commands required, you should be able to just run each line in the terminal and it should work.
For Mac:
Setup:
cd ~/Documents
mkdir AutoGPT_Tutorial
cd ~/Documents/AutoGPT_Tutorial
python3 -m venv venv_py3_autoGPT
source venv_py3_autoGPT/bin/activate
[File editing + API Key]
cd ~/Documents/AutoGPT_Tutorial/Auto-GPT
pip install -r requirements.txt
python3 -m autogpt OR python3 -m autogpt --gpt3
Run each time:
cd ~/Documents/AutoGPT_Tutorial
source venv_py3_autoGPT/bin/activate
cd ~/Documents/AutoGPT_Tutorial/Auto-GPT
python3 -m autogpt OR python3 -m autogpt --gpt3
For PC:
Setup:
cd Documents
mkdir AutoGPT_Tutorial
cd Documents\AutoGPT_Tutorial
py -3 -m venv venv_py3_autoGPT
myenv\Scripts\activate
git clone https://github.com/Significant-Gravitas/Auto-GPT.git
[File editing + API Key]
cd Documents\AutoGPT_Tutorial\Auto-GPT
pip install -r requirements.txt
python3 -m autogpt OR python3 -m autogpt --gpt3
Run each time:
cd Documents\AutoGPT_Tutorial
myenv\Scripts\activate
cd Documents\AutoGPT_Tutorial\Auto-GPT
Thanks for the guide. Spent a couple of hours yesterday, can't figure out the mistake, maybe you can help? "File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Users/dmytromakei/Auto-GPT/autogpt/__main__.py", line 2, in <module> import autogpt.cli File "/Users/dmytromakei/Auto-GPT/autogpt/cli.py", line 2, in <module> import click " Say I need to import "click" - I did that, say it's installed, and fixed a bunch of other issues asking GPT4.