DEV Community

Cover image for Install AUTO-GPT on mac OS (march 2024)
chowderhead
chowderhead

Posted on

Install AUTO-GPT on mac OS (march 2024)

Requirements:
Python3, Git (so if you don't have them install)
Anaconda use to manage python version


  1. First Download and install anoconda: https://www.anaconda.com/download

  2. create a conda virtual env

conda create --name YOUR_NAME_HERE python=3.12.2
Enter fullscreen mode Exit fullscreen mode

press y a bunch of times

  1. activate the env
conda activate YOUR_NAME_HERE
Enter fullscreen mode Exit fullscreen mode
  1. clone the repo https://github.com/Significant-Gravitas/AutoGPT
https://github.com/Significant-Gravitas/AutoGPT.git
Enter fullscreen mode Exit fullscreen mode
  1. cd into the folder you cloned, type LS, you should see AutoGPT

  2. follow these directions to give auto GPT your github access token:

βœ… Git is configured with name 'YOUR_GITHUB_USERNAME' and email 'YOUR_EMAIL@here.com'
πŸ’‘ To configure your GitHub access token, follow these steps:
    1. Ensure you are logged into your GitHub account
    2. Navigate to https://github.com/settings/tokens
    3. Click on 'Generate new token'.
    4. Click on 'Generate new token (classic)'.
    5. Fill out the form to generate a new token. Ensure you select the 'repo' scope.
    6. Open the '.github_access_token' file in the same directory as this script and paste the token into this file.

Enter fullscreen mode Exit fullscreen mode
  1. After you save this file, run the following setup command:

run this in the root of the folder. (this will install all dependencies.)

./run setup
Enter fullscreen mode Exit fullscreen mode

If it was a sucess, you should see this: if not, i am sorry.

       d8888          888             .d8888b.  8888888b. 88888888888
      d88888          888            d88P  Y88b 888   Y88b    888
     d88P888          888            888    888 888    888    888
    d88P 888 888  888 888888 .d88b.  888        888   d88P    888
   d88P  888 888  888 888   d88""88b 888  88888 8888888P"     888
  d88P   888 888  888 888   888  888 888    888 888           888
 d8888888888 Y88b 888 Y88b. Y88..88P Y88b  d88P 888           888
d88P     888  "Y88888  "Y888 "Y88P"   "Y8888P88 888           888


πŸš€ Setup initiated...

poetry could not be found
Installing poetry...
Retrieving Poetry metadata

The latest version (1.8.2) is already installed.
βœ… Git is configured with name 'chowderhead' and email 'nestedcallbacks@gmail.com'
βœ… GitHub access token loaded successfully.
βœ… GitHub access token has the required permissions.
Enter fullscreen mode Exit fullscreen mode

You will also need to set up your OPEN api key.

  1. cd into /autogpts/autogpt
  2. run
cp .env.template .env
Enter fullscreen mode Exit fullscreen mode

This will create a .env where it needs to be, uncomment the line that says: OPENAI_API_KEY and add your api key here.

Before running any commands, I also had to run from the root:

this installed all required libraries

conda run pip3 install -r ./docs/requirements.txt
Enter fullscreen mode Exit fullscreen mode

Then to start an agent:

conda run ./run agent start YOUR_CONDA_ACCT_NAME
Enter fullscreen mode Exit fullscreen mode

References:

https://www.hostinger.com/tutorials/how-to-install-auto-gpt?ppc_campaign=google_search_generic_hosting_all&bidkw=defaultkeyword&lo=1000073&gad_source=1&gclid=Cj0KCQjwhtWvBhD9ARIsAOP0Gojmvl0aafNBCUhLL6m7jSG4oMyBlAd828Icj2Ijw1l0J3kyLgHf_jMaAsZ7EALw_wcB#How_to_Install_Auto-GPT
https://www.youtube.com/watch?v=slJ8XpUG_NU&list=PLXrNVMjRZUJgxDZR55B2tnPQB9yYz_MtQ&index=32

Top comments (0)