How to setup Auto-GPT on macOS 💽
Read on to find out how to easily install Auto-GPT on your Mac using Python, plus additional tips & tricks.
After a month of scrolling past the occasional tweet that referenced Auto-GPT and all of the cool things it can do, I finally decided to give it a go.
I've simplified and tailored the instructions specifically for macOS, and have done my best to make it accessible for anyone non-technical.
- Get the code
- Set up your OpenAI account
- Setup your Auto-GPT environment
- Install Python 3
- Run Auto-GPT
- Bonus tips & tricks
Download Auto-GPT from this zip file (opens in a new tab) or
git clone the [Auto-GPT repository}(https://github.com/Significant-Gravitas/Auto-GPT (opens in a new tab)).
- Sign-up for a developer account at OpenAI(https://platform.openai.com/overview (opens in a new tab)) if you don't already have one.
- Create an OpenAI API key (opens in a new tab) if you don't already have one.
- Make sure you have a paid OpenAI account by going to Billing within your OpenAI account (opens in a new tab).
If you unzip the zip file you downloaded/cloned in step 1, you should see a folder called
Within that, you should see a file called
.env.template. If you don't see it, you might need to enable viewing hidden files on your Mac (opens in a new tab).
Now you can:
.envin a text editor
OPENAI_API_KEY=your-openai-api-keyto be the API key you setup in the previous step (no quotes or anything after the
You likely already have Python 3 on your Mac, as macOS installations have been including Python 3 since 2018.
If you're not sure, you can check by running
python3 --version in your terminal. If you see something like
Python 3.10.10, you're good to go.
Otherwise, you can install Python 3 with homebrew (opens in a new tab).
- Open your terminal
- Navigate to the
Auto-GPT-masterfolder you downloaded/cloned in step 1 (e.g.
cd ~/Downloads/Auto-GPT-masterin terminal)
- Note: if you don't have access to GPT 4, you should instead run
./run.sh --gpt3onlyin terminal. If you're not sure, use the
You should see something like this:
Missing packages: beautifulsoup4, colorama, distro, openai, playsound, python-dotenv, pyyaml, readability-lxml, requests, tiktoken, gTTS, docker, duckduckgo-search, google-api-python-client, pinecone-client, redis, orjson, Pillow, selenium, webdriver-manager, jsonschema, tweepy, click, charset-normalizer, spacy, en-core-web-sm, coverage, flake8, numpy, pre-commit, black, isort, gitpython, auto-gpt-plugin-template, mkdocs, pymdown-extensions, openapi-python-client, pytest, asynctest, pytest-asyncio, pytest-benchmark, pytest-cov, pytest-integration, pytest-mock, vcrpy, pytest-recording Installing missing packages...
And then after a few minutes, you should see something like this:
Welcome to Auto-GPT! run with '--help' for more information. Create an AI-Assistant: input '--manual' to enter manual mode. Asking user via keyboard... I want Auto-GPT to:
Now that you have Auto-GPT running, try giving it a few fun easy tasks to start, eg
I want Auto-GPT to: summarize the latest news in the United States or `
python: command not found
If instead you see
./run.sh: line 2: python: command not found ./run.sh: line 8: python: command not found
Then the simplest solution is to open
run.sh in your text editor, and replace each instance of
pip3 and then re-run
DOUBLE CHECK CONFIGURATIONerror
This can happen for at least two reasons: either you don't have a paid OpenAI account, and/or you don't have access to GPT 4.
Make sure you have a paid account with OpenAI. When I first started trying out Auto-GPT, I kept getting an error message that said:
DOUBLE CHECK CONFIGURATION Please double check that you have setup a PAID OpenAI API Account. You can read more here: https://docs.agpt.co/setup/#getting-an-api-key
It took me a minute to realize that the Auto-GPT docs also reiterated this point and that I did not in fact have a paid account with proper billing info attached 🤦♂️
If you don't have access to GPT 4, then use
./run.sh --gpt3only instead of
./run.sh to run Auto-GPT.
- Be specific. If you want Auto-GPT to use the internet or to write to a file, it can help to specify that.
- Think big with your tasks. You can use Auto-GPT to help you:
- buy products online
- to do research synthesizing a bunch of search engine results into a single document since it can make Google requests itself
- to write a blog post, a song, or code.
- Checkout the Ideas section of the Auto-GPT discussions for inspiration: https://github.com/Significant-Gravitas/Auto-GPT/discussions/categories/ideas (opens in a new tab)
- Auto-GPT docs: https://docs.agpt.co/ (opens in a new tab)
- the docs are useful for learning how to use text to speech with auto gpt, to learn more about how it works, or for additional use cases
- OpenAI API documentation if you want to learn more about how that works: https://beta.openai.com/docs/api-reference/introduction (opens in a new tab)
Last Updated: Sun May 7 2023
Looking for more posts?
Looking for a full-stack iOS/web developer for your project? Let's talk on one of the platforms below.