autos

How to Install and Use Auto-GPT: An Autonomous AI Tool – Beebom


After the launch of ChatGPT, AI has brought a monumental change in how we perceive computing. You can now train your AI chatbot with your own data and develop apps with natural language. Developers are now working on the next big thing – Autonomous AI Agent – a peek into the beginning of AGI (Artificial General Intelligence). Auto-GPT is one such tool that lets you achieve your goals by allowing LLMs to think, plan, and execute actions autonomously. You no longer need to add any input as the AI can think and take decisions rationally. So if you are interested, follow our tutorial and learn how to install and use Auto-GPT.

Things to Know Before You Use Auto-GPT

1. You don’t need a powerful computer to install and use Auto-GPT. Any decent computer would do the job. The heavy lifting is done by OpenAI API on the cloud.

2. If you have access to the GPT-4 API, Auto-GPT would work best as it’s much better at thinking and coming to a conclusion. It’s also less prone to hallucination. If you do not have access already, you can join the waitlist for GPT-4 API access using the link here. However, you can also use the regular OpenAI API with the GPT-3.5 model.

3. Auto-GPT uses a lot of tokens, so you have to add billing details and set up spending limits once your free credit limit is exhausted.

4. Unlike the free version of ChatGPT, Auto-GPT can connect to the internet and find the latest information on any subject. So you can use it to access any webpage and capture information.

Step 1: Install Python and Pip

1. First off, download the latest version of Python from here for your platform and install it.

How to Install and Use Auto-GPT: An Autonomous AI Tool

2. On Windows, make sure to enable “Add python.exe to PATH” before installing Python. Now, click on “Install Now.” You can check out the in-depth tutorial to install Python and Pip on Windows via the link here.

How to Install and Use Auto-GPT: An Autonomous AI Tool

3. To test Python’s installation, open Windows Terminal and run the below commands. Both commands should return the version number. Linux and macOS users should use python3 and pip3 in these commands.

python --version
pip --version
python

Step 2: Add API Keys to Use Auto-GPT

1. Next, head over to this link to open the latest GitHub release page of Auto-GPT. Here, click on “Source code (zip)” to download the ZIP file.

Add API Keys to Use Auto-GPT

2. Now, double-click to extract the ZIP file and copy the “Auto-GPT” folder.

Add API Keys to Use Auto-GPT

3. Next, simply paste the folder to your choice of location.

folder

4. Now, open the folder to find a “.env.template” file here. Open it using Notepad or any text editor.

Add API Keys to Use Auto-GPT

5. Next, go to OpenAI’s website and get the API key. If you don’t have an account, create a free account and click on “Create a new secret key“. Now, copy the API key.

Add API Keys to Use Auto-GPT

6. After that, move to the text editor and paste the API in the “OPENAI_API_KEY” section. You can refer to the below image to get an idea.

openai api key

7. Next, open pinecone.io (visit) and create a free account. It will allow the LLM to retrieve relevant information from memory for AI applications.

Add API Keys to Use Auto-GPT

8. Here, click “API Keys” in the left sidebar and click on “Create API Key” in the right pane.

Add API Keys to Use Auto-GPT

9. Give a name like “autogpt” and click on “Create Key“.

Add API Keys to Use Auto-GPT

10. Now, copy the “Key Value” by clicking on the button.

Add API Keys to Use Auto-GPT

11. Open the text editor again and paste it next to PINECONE_API_KEY.

Add API Keys to Use Auto-GPT

12. Similarly, copy the value under “Environment“.

Add API Keys to Use Auto-GPT

13. Now, paste it next to PINECONE_ENV.

Add API Keys to Use Auto-GPT

14. Finally, save the “.env.template” file.

Add API Keys to Use Auto-GPT

15. Having done that, rename .env.template to just .env. You are almost done.

Add API Keys to Use Auto-GPT

Step 3: Install Auto-GPT on Windows, macOS, and Linux

1. After adding the API keys, it’s time to run Auto-GPT. Right-click on the “Auto-GPT” folder and choose “Copy as path“.

Install Auto-GPT on Windows, macOS, and Linux

2. Now, open the Terminal and type cd, add a space, and then paste the path you copied above. You can right-click on the Terminal to paste the path quickly. Next, press Enter, and you will move to the Auto-GPT folder. macOS and Linux users can simply right-click and open Terminal inside the folder itself.

cd path
Install Auto-GPT on Windows, macOS, and Linux

3. Once you are here, run the below command. It will automatically install all the required libraries to run Auto-GPT.

pip install -r requirements.txt
Install Auto-GPT on Windows, macOS, and Linux

4. Next, run the below command, and it will start Auto-GPT on your system.

python -m autogpt
Install Auto-GPT on Windows, macOS, and Linux

Step 4: How to Use Auto-GPT on Your PC

1. On the first run, Auto-GPT will ask you to name the AI. For example – I am creating Shopper-GPT, which can find products on Amazon. If you don’t want to create an AI for a specific use-case, you can leave this field blank and hit Enter. It loads the Entrepreneur-GPT name by default.

How to Use Auto-GPT

2. Next, you need to define the role of the AI.

How to Use Auto-GPT

3. After that, set goals for the autonomous AI one by one. This is where you tell the AI what you want to achieve. You can ask it to save the information in a text or PDF file. You can also ask it to shut down after all the information is retrieved.

How to Use Auto-GPT

4. Now, Auto-GPT will start thinking. During the course of action, it will ask you to authorize actions. Press “y” and hit Enter to confirm. It might connect to websites and gather information.

How to Use Auto-GPT

5. You can read what the AI is thinking, reasoning, and planning. It also provides criticism (kind of negative prompts) so that it comes up with the right kind of information. Finally, it performs the action.

How to Install and Use Auto-GPT: An Autonomous AI Tool

6. If you want to run the AI continuously without requiring user authorization, you can press y -n and hit Enter. Make sure to replace n with a number. If you enter y -5, it means that it will not seek your permission for the next 5 actions. Note that you can use the “Ctrl + C” shortcut to stop any continuous action.

How to Install and Use Auto-GPT: An Autonomous AI Tool

7. Furthermore, Auto-GPT might automatically open Chrome to gather information from the internet, as shown in the image below.

How to Use Auto-GPT

8. As I was using the regular OpenAI API and the GPT-3.5 model, the model kept running in an endless loop. For some reason, Auto-GPT was unable to create the file. But after completion of the task, you should find the final information under the Auto-GPT folder. Once you are here, open “auto_gpt_workspace”.

How to Use Auto-GPT

Auto-GPT Alternative: Automate Tasks With AgentGPT (Easy Solution)

If you don’t want to set up Auto-GPT locally and want an easy-to-use solution to automate and deploy tasks, you can use AgentGPT. It’s built on Auto-GPT, but you can access it directly in a browser. No need to fiddle with the Terminal and commands. Here is how it works.

Readers Also Like:  M25 shut again this weekend: all the details to avoid ‘carmageddon’

1. Open agentgpt.reworkd.ai (visit) and click on “Settings” in the bottom-left corner.

AgentGPT

2. Here, add your OpenAI API key. You can get the API key from here. If you don’t have access to GPT-4 API, select “gpt-3.5-turbo” as the model and click on “Save.”

AgentGPT

3. Next, give a name to your AI agent and set the goal you wish to achieve. Now, click on “Deploy Agent” for the Auto-GPT AI to start thinking about your inputs.

AgentGPT

4. Once the task is completed, you can click “Save” or “Copy” to get the final result.

AgentGPT

5. If you want to stop the AI agent, click on “Stop agent“.

AgentGPT

So this is how you can install and use Auto-GPT to create multi-headed tasks and achieve them with the help of AI. In my testing, Auto-GPT failed to complete many tasks and was in a never-ending loop — most likely because I employed the GPT-3.5 API (ChatGPT API). Auto-GPT is known to work best with the the GPT-4 API. It was frequently making up URLs and was unable to retrieve content since the URLs were made up and they were throwing 404 error.

Nevertheless, Auto-GPT does have a lot of potential, and with more development in the field, users will be able to achieve amazing results. In the meantime, if you want to use Microsoft JARVIS (aka HuggingGPT), follow our tutorial and learn about its insane capabilities. Apart from that, if you want to use ChatGPT-based CodeGPT in VS Code, we have a tutorial ready for you. Finally, if you have any questions, let us know in the comment section below.

Readers Also Like:  New Volkswagen Crafter: first details of updated Ford Transit rival revealed



READ SOURCE

This website uses cookies. By continuing to use this site, you accept our use of cookies.