Getting Started With Auto-GPT For Beginners - Setup & Usage
Getting Started With Auto-GPT For Beginners - Setup & Usage
P — PYTHON
Getting
GPT for Started with
Beginners: Auto-
Setup &
Usage
by EdXD · Updated April 12, 2023 · No comments · 7 minute read
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 1/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Auto-GPT is an experimental open-source application that shows off the abilities of the
well-known GPT-4 language model.
It uses GPT-4 to perform complex tasks and achieve goals without much human input.
Auto-GPT links together multiple instances of OpenAI’s GPT model, allowing it to do
things like complete tasks without help, write and debug code, and correct its own writing
mistakes.
Instead of simply asking ChatGPT to create code, Auto-GPT makes several AI agents work
together to develop websites, create newsletters, compile online pages based on user
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 2/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
requests, and more. This level of independence is an essential feature of Auto-GPT, as it turns
the language model into a more capable agent that can act and learn from its errors.
## Quick Demo
This is a quick demo of me using Auto-GPT to find topics for my Linux blog. I don’t go through
with it until the end because it would take some time. But this should give you a good idea of
what Auto-GPT can do.
Collect all competing Linux tutorial blogs and save them to a CSV file
Code a Python app that does X
Auto-GPT has a framework to follow and tools to use, including:
Browsing websites
Searching Google
Connecting to ElevenLabs for text-to-speech (like Jarvis from Iron Man)
Evaluating its own thoughts, plans, and criticisms to self-improve
Running code
Reading/writing files on your hard drive
And more
This push for autonomy is part of ongoing AI research to create models that can simulate
thought, reason, and self-critique to complete various tasks and subtasks.
In this tutorial we’ll install Auto-GPT on your local computer, and we’ll also cover a bit
on how to use it and some additional considerations.
The steps are laid out in a beginner friendly way, so you don’t need to have in-depth
programming knowledge to set it up.
If you’re not familiar with Python, Git, or JSON syntax you may feel a little
intimidated, but you can still run it just the same. The process will probably seem a
bit confusing until you’re up and running.
TABLE OF CONTENTS
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 4/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
1 Quick Demo
2 Requirements
(Optional) Set OpenAI Usage Limit
Install Python
Install Git
Install virtualenvwrapper (Optional)
3 Install Auto-GPT
Video Demo Installing Auto-GPT
Download Auto-GPT from Github
4 Configure Auto-GPT API Keys
Run Auto-GPT
Troubleshooting
“Warning: Failed to parse AI output, attempting to fix.” Loop
5 Conclusion
6 Resources & Acknowledgements
## Requirements
To run Auto-GPT, the minimum requirements are:
Pretty much any modern device. Even a low spec laptop or small server.
Python 3.7 or later and Git installed
An OpenAI Account and API Key
Optional: If you want the AI to speak you also need an ElevenLabs.io Account and API
Key
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 5/23
### (Optional) Set OpenAI Usage Limit
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Please keep in mind that your OpenAI API account charges you based on usage. Given that
Auto-GPT aims at being autonomous, it may be tempting to let it do it’s thing without
supervision, however sometimes it may throw errors repeatedly and will use up your funds.
Auto-GPT asks you what you want to do at every step by default, however you can also let it
do it’s thing for a number of steps or you can enable continuous mode, which you should be
careful with.
A good idea is to set usage limits in OpenAI https://platform.openai.com/account/billing/limits.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 6/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
You can set lower limits than mine. Auto-GPT doesn’t use many tokens. I’ve used it multiple
times and I’ve only used $1.59 over the past week.
Python is a versatile programming language that’s user-friendly and widely used for AI
projects like Auto-GPT. Even if you’re not familiar with it, no worries!
You only need to install Python to run Auto-GPT.
To install it use this short tutorial that shows how to install it for Windows/Mac or
Linux https://python.land/installing-python.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 8/23
### Install virtualenvwrapper (Optional)
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
If you encounter the command not found error after installing it, check our related post on how
to fix it Fix Virtualenvwrapper workon/mkvirtualenv: command not found.
Example
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 10/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
$ mkvirtualenv autogpt
## Install Auto-GPT
Assuming you have all the requirements, we can get to installing Auto-GPT.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 11/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Next cd into the newly created Auto-GPT directory and run the following command to install
Auto-GPT’s dependencies. This will take a minute or so.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 12/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 13/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Make sure to keep that key secret because it’s like a password to using GPT from your account. If
someone else has access to it, it’s all they need to use GPT and use up your funds.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 14/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
After, if you open it up it will look something like the code below. Replace
your-openai-api-key with your actual OpenAI API key.
You can ignore all the other values right now, because we just want to get this up and running.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 15/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
PINECONE_API_KEY=your-pinecone-api-key
PINECONE_ENV=your-pinecone-region
OPENAI_API_KEY= your-openai-api-key
ELEVENLABS_API_KEY=your-elevenlabs-api-key
SMART_LLM_MODEL="gpt-4"
FAST_LLM_MODEL="gpt-3.5-turbo"
GOOGLE_API_KEY=
CUSTOM_SEARCH_ENGINE_ID=
USE_AZURE=False
OPENAI_API_BASE=your-base-url-for-azure
OPENAI_API_VERSION=api-version-for-azure
OPENAI_DEPLOYMENT_ID=deployment-id-for-azure
IMAGE_PROVIDER=dalle
HUGGINGFACE_API_TOKEN=
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 16/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
If everything worked you should see a text welcoming you back, and if you’d like to use the
task given to Auto-GPT from the last run.
### Troubleshooting
### “Warning: Failed to parse AI output,
attempting to fix.” Loop
If you encounter this error, at the time of writing and in my experience, it’s best to just hit
Ctrl+Z to stop it and start over.
Error: Invalid JSON
{'thoughts': {'text': '...'}, 'command': {'name': 'browse_website',
'args': {'url': 'https://example.com'}}}
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 17/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
PRODUCT FETCHER THOUGHTS:
REASONING:
CRITICISM:
Warning: Failed to parse AI output, attempting to fix.
If you see this warning frequently, it's likely that your prompt is
confusing the AI. Try changing it up slightly.
Failed to fix ai output, telling the AI.
NEXT ACTION: COMMAND = Error: ARGUMENTS = string indices must be
integers, not 'str'
SYSTEM: Command Error: returned: Unknown command Error:
Warning: Failed to parse AI output, attempting to fix.
If you see this warning frequently, it's likely that your prompt is
confusing the AI. Try changing it up slightly.
Failed to fix ai output, telling the AI.
## Conclusion
Stacking AI models on top of one another in order to complete more complex tasks does not
mean we’re about to see the emergence of artificial general intelligence let systems run
continuously and accomplish tasks with less human intervention and oversight.
These examples don’t even show that GPT-4 is even necessarily “autonomous,” but that with
plug-ins and other techniques, it has greatly improved its ability to self-reflect and self-
critique, and introduces a new stage of prompt engineering that can result in more accurate
responses from the language model.
Hopefully this helped you get started with Auto-GPT. We’ll update this article or post new
ones with more information on how to use it.
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 18/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
If you have any questions or feedback please feel free to let us know in the comments and
we’ll get back to you as soon as we can.
SHARE TWEET
EdXD
Subscribe Login
{} [+]
Email
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 19/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Website
0 COMMENTS
— PREVIOUS ARTICLE
Resolving Git Authentication Issues Despite
Successful 'gh auth login' in GitHub CLI
YOU MAY ALSO LIKE
P — PYTHON
L — LINUX
Fix Virtualenvwrapper
workon/mkvirtualenv:
command not found
by EdXD · Updated April 9, 2023
In this tutorial we’ll cover how to fix the
mkvirtualenv: command not found or workon:
command not founderror…
M — MACHINE LEARNING
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 21/23
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
P — PYTHON
M — MACHINE LEARNING
FEATURED POSTS
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 22/23
Resolving Git
4/12/23, 3:38 AM Getting Started with Auto-GPT for Beginners: Setup & Usage
Authentication Issues
Despite Successful ‘gh
auth login’ in GitHub CLI
Updated April 10, 2023
Motherboards with USB4
Updated April 10, 2023
© 2023 ByteXD.com
Contact Sitemap Privacy Policy Terms and Conditions Affiliate Disclosure
https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ 23/23