{"id":100967,"date":"2023-12-22T07:30:55","date_gmt":"2023-12-22T07:30:55","guid":{"rendered":"\/tutorials\/?p=100967"},"modified":"2025-09-22T11:11:02","modified_gmt":"2025-09-22T11:11:02","slug":"how-to-install-auto-gpt","status":"publish","type":"post","link":"\/tutorials\/how-to-install-auto-gpt","title":{"rendered":"How to install Auto-GPT: Best practices and how to use it"},"content":{"rendered":"<p>OpenAI&rsquo;s Generative Pre-trained Transformer (GPT) language model helps simplify various tasks, including assisting application development like GitHub Copilot. Auto-GPT is one of many tools utilizing the technology.<\/p><p>Auto-GPT is a general-purpose, autonomous Artificial General Intelligence (AGI). Unlike ChatGPT, it automatically breaks down tasks and gives follow-up prompts until the goal is achieved with minimal human intervention.<\/p><p>To use the tool, users must configure it using Git and an API. This tutorial will explain how to install Auto-GPT on a virtual private server (VPS) and share its best practices.<\/p><p>\n\n\n\n\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Is Auto-GPT?<\/h2>\n                    <p>Auto-GPT is a general-purpose, autonomous AI agent based on OpenAI&rsquo;s GPT large language model. Unlike other AI models, it can automatically generate follow-up prompts to complete tasks with minimal human interaction. Auto-GPT helps simplify various tasks, including application development and data analysis. To use the tool, users must clone the Git repository and integrate the OpenAI API.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites-for-installing-auto-gpt\">Prerequisites for installing Auto-GPT<\/h2><p>You need a VPS hosting plan to host and run Auto-GPT in a production environment. The tool doesn&rsquo;t require much computing power, but your server must be compatible with various software, like:<\/p><ul class=\"wp-block-list\">\n<li><strong>Python<\/strong> and<strong> pip<\/strong>. The programming language lets your system run Auto-GPT code, while the package manager allows you to install and manage the dependencies.<\/li>\n\n\n\n<li><a href=\"\/tutorials\/git-tutorial\"><strong>Git<\/strong><\/a>. This version control system fetches the Auto-GPT files and code from the repository during installation.<\/li>\n\n\n\n<li><a href=\"\/tutorials\/what-is-docker\"><strong>Docker<\/strong><\/a>. This tool packages Auto-GPT with its dependencies and libraries as a container, which helps simplify the testing and deployment process.<\/li>\n<\/ul><p>In addition to supporting all the required software, Hostinger&rsquo;s <a href=\"\/vps-hosting\">VPS hosting service<\/a> offers full root access to avoid permission-related issues during installation and configuration.<\/p><p>We also provide <strong>Kodee<\/strong>, an AI assistant that answers all your VPS-related questions, diagnoses issues on your server, provides step-by-step instructions tailored to your setup, and even generates <a href=\"\/tutorials\/linux-commands\">Linux commands<\/a> that you can run remotely on your server using our <strong>browser terminal<\/strong>.<\/p><p>What&rsquo;s more, we offer <a href=\"https:\/\/support.hostinger.com\/en\/articles\/4965922-how-to-change-the-operating-system-of-vps?_gl=1*amcstb*_gcl_au*MjA0ODEwMDA4NC4xNzI2NjU0MzU3\" target=\"_blank\" rel=\"noopener\">templates to install various Linux distributions<\/a> and applications in one click.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>After purchasing and setting up a VPS plan from Hostinger, connect <a href=\"\/tutorials\/how-to-use-putty-ssh\">using an SSH client like PuTTY<\/a>, Terminal, or our Browser terminal. Find the login credentials in the <strong>SSH access<\/strong> tab of your<strong> VPS overview<\/strong> menu in hPanel.<\/p><p>Once connected, update your system&rsquo;s package manager. The command differs depending on your operating system. For Debian, Ubuntu, and other derivatives, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update &amp;&amp; sudo apt upgrade<\/pre><p>For CentOS, AlmaLinux, and other Red Hat Enterprise Linux (RHEL) derivatives, use the following command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo yum update &amp;&amp; sudo yum upgrade<\/pre><p>\n\n\n<div><p class=\"important\"><strong>Important!<\/strong> To deploy Auto-GPT on Windows, you can install the required software using executable files or Command Prompt. We recommend configuring a code editor like VSCode for local computers to modify the file easily.<\/p><\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-auto-gpt\">How to install Auto-GPT<\/h2><p>After preparing your server, follow these steps to install Auto-GPT on your VPS. Since we will use <strong>Ubuntu 22.04<\/strong>, modify the commands as necessary according to your operating system.<\/p><h3 class=\"wp-block-heading\">1. Install Python and Git<\/h3><p>Run the following command to <a href=\"\/tutorials\/install-pip-in-ubuntu\/\">install the Python programming language, pip package manager<\/a>, the Python virtual environment, and <strong>Poetry <\/strong>dependency manager:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install python3 python3-pip python3-venv python3-poetry<\/pre><p>Check whether Python and pip are configured correctly in your computer using this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 --version&amp;<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip3 &ndash;-version<\/pre><p>Ensure you install Python version <strong>3.8 <\/strong>or later to meet the minimum requirement. Otherwise, you can download the package manually from the <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python release page<\/a>.<\/p><p><a href=\"\/tutorials\/how-to-install-git-on-ubuntu\">Install the Git version system<\/a> to fetch the Auto-GPT repository. Here&rsquo;s the command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install git<\/pre><p>Verify the Git installation with this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git --version<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d7c136\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"133\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/public\" alt=\"Python PIP and Git version on Terminal\" class=\"wp-image-120182\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Now, let&rsquo;s <a href=\"\/tutorials\/how-to-create-a-python-virtual-environment\">create and activate a Python environment<\/a> to ensure you can configure the modules required for Auto-GPT. To do so, run the following commands one at a time:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir myproject<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd myproject<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 -m venv myenv<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">source myenv\/bin\/activate<\/pre><h3 class=\"wp-block-heading\">2. Get the Auto-GPT repository<\/h3><p>You can fetch the Auto-GPT files and code from the repository using Git or manually. We will explain both so you can choose based on your preferences.<\/p><p><strong>Cloning the repository via Git<\/strong><\/p><p>Download Auto-GPT by cloning the repository content using the git command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo git clone https:\/\/github.com\/Significant-Gravitas\/AutoGPT.git<\/pre><p>It will automatically create the AutoGPT folder containing all the retrieved files in your current directory.<\/p><p><strong>Downloading the repository as a ZIP file<\/strong><\/p><p>If you want to upload the files manually, open the <a href=\"https:\/\/github.com\/Significant-Gravitas\/AutoGPT\" target=\"_blank\" rel=\"noreferrer noopener\">Auto-GPT official repository<\/a> on your web browser. Click the Code button and select Download ZIP.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d7da47\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"713\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/public\" alt=\"The Download ZIP button on a GitHub repository\" class=\"wp-image-120183\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Upload the archive file from your local computer to the remote VPS. For simplicity, we will <a href=\"\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/\">use the secure file transfer protocol<\/a> (SFTP). Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>Download and install the <strong>FileZilla<\/strong> client.<\/li>\n\n\n\n<li>Open the application, then go to <strong>Files &rarr; Site Manager &rarr; New Site<\/strong>.<\/li>\n\n\n\n<li>Choose <strong>SFTP<\/strong> as the protocol and enter all the required information. Click <strong>Connect<\/strong>.<\/li>\n\n\n\n<li>Locate the archive file in your local computer&rsquo;s download directory. Drag and drop it to the right-hand window.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d7f13a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"802\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/public\" alt=\"FileZilla new site configuration menu\" class=\"wp-image-120184\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>You can unpack the repository file on your local computer before moving it to the VPS or extract it using the <a href=\"\/tutorials\/how-to-unzip-files-linux\/\">Linux unzip command<\/a> in the remote server. We recommend the latter since transferring <strong>ZIP<\/strong> is more efficient.<\/p><h3 class=\"wp-block-heading\">3. Install the required packages<\/h3><p>Auto-GPT requirements include various Python packages. Instead of installing them individually, call the requirements.txt file to configure all dependencies automatically.<\/p><p>Before doing so, make sure to change your working directory to <strong>\/AutoGPT<\/strong> by running <strong>cd<\/strong> <strong>AutoGPT<\/strong>. Then enter the following to start the installation:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install -r docs\/requirements.txt<\/pre><p>If you encounter permission issues, run the command as <strong>sudo<\/strong> and add the<strong> &ndash;user<\/strong> option:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo pip install --user -r docs\/requirements.txt<\/pre><p>\n\n\n<div><p class=\"important\"><strong>Important!<\/strong> You can add the <strong>&ndash;break-system-packages<\/strong> option if it still doesn&rsquo;t work. However, we don&rsquo;t recommend doing so because it might break your system.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-4-configure-the-openai-api-key\">4. Configure the OpenAI API Key<\/h3><p>Use the OpenAI <strong>API key <\/strong>to connect Auto-GPT with the GPT <a href=\"\/tutorials\/large-language-models\">large language model<\/a> (LLM). Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Make a new account on the OpenAI login page. Skip this step if you have one already.<\/li>\n\n\n\n<li>Go to the OpenAI <a href=\"https:\/\/platform.openai.com\/api-keys\" target=\"_blank\" rel=\"noreferrer noopener\">API key generation page<\/a>. Click <strong>Create new secret key<\/strong>.<\/li>\n\n\n\n<li>Enter a name and select your project. Click <strong>Create secret key<\/strong>.<\/li>\n\n\n\n<li>Copy the secret key and store it in a safe location since you won&rsquo;t be able to view it again. Click <strong>Done<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d809d0\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"511\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/public\" alt=\"OpenAI API key generation page\" class=\"wp-image-120185\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/openai-api-key-generation-page.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Navigate to <strong>AutoGPT\/classic\/original_autogpt<\/strong> and follow these steps to put the API key in Auto-GPT&rsquo;s <strong>.env <\/strong>file:<\/p><ol class=\"wp-block-list\">\n<li>Rename the <strong>.env.template<\/strong> file to activate it:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mv .env.template .env<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Open the file <a href=\"\/tutorials\/how-to-install-and-use-nano-text-editor\">using a text editor like nano<\/a>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano .env<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Remove the hash (<strong>#<\/strong>) symbol and enter your API key in the <strong>OPENAI_API_KEY<\/strong> variable. It will look like this:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">OPENAI_API_KEY=abcdef12345<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Press <strong>Ctrl + X<\/strong>, <strong>Y<\/strong>, and <strong>Enter<\/strong> to save the changes.<\/li>\n<\/ol><p>You can also determine the LLM model for different tasks. To do so, change the <strong>SMART_LLM <\/strong>and <strong>FAST_LLM <\/strong>values to <strong>GPT 3.5 <\/strong>or <strong>4<\/strong> in the .<strong>env<\/strong> file.<\/p><h3 class=\"wp-block-heading\">5. Start Auto-GPT<\/h3><p>To start the AI tool, navigate to <strong>AutoGPT\/classic\/original_autogpt <\/strong>and enter this command in your command-line interface:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python -m autogpt<\/pre><p>Once you see the welcome message, press<strong> Enter<\/strong> to start using the tool.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d81fd7\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"719\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/public\" alt=\"AutoGPT running in terminal\" class=\"wp-image-120186\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/autogpt-running-in-terminal.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h3 class=\"wp-block-heading\">6. Setup Docker (optional)<\/h3><p>Use Docker to install Auto-GPT in an isolated, portable environment. It provides a more reliable way to run the tool in the background than a multiplexer like <a href=\"\/tutorials\/how-to-install-and-use-linux-screen\/\">Linux Screen<\/a>.<\/p><p>After <a href=\"\/tutorials\/how-to-install-docker-on-ubuntu\">installing Docker on your Ubuntu system<\/a>, build a Docker image for your project using this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker build -t autogpt .<\/pre><p>Run the Auto-GPT container using the command below:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -it --env-file=.\/.env -v $PWD\/auto_gpt_workspace:\/app\/auto_gpt_workspace autogpt<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e15d1d83400\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1148\" height=\"159\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/public\" alt=\"Docker runs AutoGPT\" class=\"wp-image-106635\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/w=1148,fit=scale-down 1148w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/Docker-runs-Auto-GPT.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1148px) 100vw, 1148px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Alternatively, use these commands if you have already installed Docker Compose:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker-compose build auto-gpt<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker-compose run --build --rm auto-gpt<\/pre><h2 class=\"wp-block-heading\" id=\"h-troubleshooting-auto-gpt-installation-issues\">Troubleshooting Auto-GPT installation issues<\/h2><p>In this section, we will explore several common Auto-GPT installation issues and their solutions.<\/p><p><strong>Missing modules<\/strong><\/p><p>If you can&rsquo;t run Auto-GPT and Terminal shows a missing module, check whether you are in the correct directory. You must run the command within the <strong>AutoGPT\/classic\/original_autogpt <\/strong>source code folder.<\/p><p>In addition, it might occur when you misconfigure the dependencies. To resolve it, reinstall the required packages using the <strong>pip install -r requirements<\/strong> command.<\/p><p>If other modules are missing, install them using <strong>Poetry<\/strong>. After navigating to the <strong>AutoGPT\/classic\/original_autogpt <\/strong>folder, run the following commands:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">poetry install<\/pre><p>Rerun the autogpt python module and the issue should resolve. If the error persists, use <strong>pip<\/strong> to install all the missing modules manually. For example, if Terminal shows Auto-GPT missing a plugin template, enter:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install auto_gpt_plugin_template<\/pre><p>Meanwhile, if you encounter a missing Git module error, run this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install gitpython<\/pre><p><strong>Missing auto-gpt.json<\/strong><\/p><p>The Auto-GPT installation process should automatically create an <strong>auto-gpt.json<\/strong> file. However, if it doesn&rsquo;t exist, your command-line interface will return an error as the tool fails to store data.<\/p><p>The simplest way to fix it is by creating the file manually within the Auto-GPT root folder <a href=\"\/tutorials\/linux-touch-command\">using the Linux touch command<\/a>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo touch auto-gpt.json<\/pre><p><strong>API connection errors<\/strong><\/p><p>A misconfigured API key might cause <strong>Bad Gateway<\/strong> errors. If you don&rsquo;t have free tokens, ensure you have set up a payment method and billing details in OpenAPI. Otherwise, Auto-GPT can&rsquo;t connect to the GPT LLM, preventing it from processing your prompts.<\/p><p>If you encounter an invalid key error despite properly configuring the API in <strong>.env<\/strong>, try to put the key within Auto-GPT&rsquo;s configuration file. To do so, enter the key directly into the<strong> config.py<\/strong> file within the <strong>Auto-GPT\/autogpt\/config <\/strong>path.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-use-auto-gpt\">How to use Auto-GPT<\/h2><p>Once Auto-GPT runs, describe your task, and the tool will assign an AI agent with specific roles and goals.<\/p><p>For example, if you ask Auto-GPT to &ldquo;write content for an article about AI,&rdquo; it will assign <strong>EditorGPT,<\/strong> whose role is to help writers create high-quality content. You can also enter various <a href=\"\/tutorials\/ai-prompts-for-vps-management\">AI prompts for VPS management<\/a> to generate instructions for server administration.<\/p><p>Enter follow-up or confirmation inputs based on the instructions, which might differ depending on the agent. For a new Auto-GPT user, we recommend reading our <a href=\"\/tutorials\/ai-prompt-engineering\">AI prompt engineering tutorial<\/a>.<\/p><p>For specific tasks, you can add the following options to the <strong>python <\/strong>command to run Auto-GPT:<\/p><ul class=\"wp-block-list\">\n<li><strong>&ndash;speak<\/strong>. The agent will provide an audio output using text-to-speech.<\/li>\n\n\n\n<li><strong>&ndash;continous<\/strong>. Auto-GPT will run the task autonomously without user authorization.<\/li>\n\n\n\n<li><strong>&ndash;self-feedback<\/strong>. The tool will automatically provide feedback by verifying its actions based on the task.<\/li>\n<\/ul><p>\n\n\n    <p class=\"warning\">\n        <strong>Warning!<\/strong> Auto-GPT doesn&rsquo;t recommend using the <strong>--continuous<\/strong> and <strong>--self-feedback<\/strong> options as they can lead to unexpected behavior.    <\/p>\n    \n\n\n\n<\/p><p>Moreover, you must configure additional API keys for tasks beyond text generation. For example, integrate Dall-E to create images and ElevenLabs for text-to-speech functionality.<\/p><h2 class=\"wp-block-heading\" id=\"h-auto-gpt-best-practices\">Auto-GPT best practices<\/h2><p>In this section, we will explain Auto-GPT best practices to help you understand how to efficiently <a href=\"\/tutorials\/ai-for-websites\/\">use AI technology in your website<\/a> or application development.<\/p><p><strong>Configure Auto-GPT for specific tasks<\/strong><\/p><p>Customizing Auto-GPT settings lets you configure the tool specifically for your task. You can do so by determining the agent&rsquo;s role, name, and goal in a <strong>YAML <\/strong>file.<\/p><p>This file lets you consistently run the AI tool for specific tasks without repeatedly specifying the roles and purpose. For example, we will create a writing agent configuration:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nano writer_ai_settings.yaml<\/pre><p>Enter the AI name, role, and goal. These vary depending on your tasks. Here&rsquo;s an example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ai_name: WriterGPT\nai_role: An AI assistant designed to research and write an engaging article to draw readers.\nai_goals:\n     - Research the article content to ensure validity.\n     - Create article structure. \n     - Write engaging written content for a website to draw readers.<\/pre><p>To apply the configurations, call the file using the <strong>&ndash;ai-settings <\/strong>option when running Auto-GPT:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python -m autogpt --ai-settings writer_ai_settings.yaml<\/pre><p>To set the file as default, enter its name in the <strong>.env<\/strong> file&rsquo;s <strong>AI_SETTINGS_FILE <\/strong>variable. You can also set prompt configurations by creating a similar file and calling it in your command using the <strong>&ndash;prompt-setting <\/strong>option.<\/p><p><strong>Use custom scripting for enhanced functionality<\/strong><\/p><p>Expand Auto-GPT features and data sources using custom scripts called plugins. For example, you can install the <a href=\"https:\/\/github.com\/Significant-Gravitas\/Auto-GPT-Plugins\/tree\/master\/src\/autogpt_plugins\/wikipedia_search\" target=\"_blank\" rel=\"noreferrer noopener\">Wikipedia plugin<\/a> to enable the tool to retrieve data from the website.<\/p><p>It&rsquo;s possible to create your own using the <strong>_init_.py<\/strong> template or install <a href=\"https:\/\/github.com\/Significant-Gravitas\/Auto-GPT-Plugins\" target=\"_blank\" rel=\"noreferrer noopener\">pre-configured plugins<\/a> from their repositories. Since the configuration steps slightly differ depending on the plugin, ensure to check the instruction manual.<\/p><p>Typically, you must extract the files into Auto-GPT&rsquo;s <strong>plugin<\/strong> folder and add the plugin to the <strong>.env <\/strong>file.<\/p><p><strong>Optimize memory usage for handling large datasets<\/strong><\/p><p>Users can cache historical Auto-GPT interactions to optimize data handling and enable adaptive prompt creation based on context. For low-performance systems, it helps the AI tool run optimally when conducting complicated tasks.<\/p><p>A popular way to do this is to set up the <a href=\"https:\/\/www.pinecone.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pinecone vector database<\/a> using API. Alternatively, you can use <a href=\"\/tutorials\/how-to-install-and-setup-redis-on-ubuntu\/\">Redis<\/a>, which is included with Auto-GPT if you install the tool using Docker Compose.<\/p><p>To set it up, run this command to create a Redis container:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -d --name redis-stack-server -p 6379:6379 redis\/redis-stack-server:latest<\/pre><p>Enter the following settings in the <strong>.env <\/strong>file. Replace the password with your own:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">MEMORY_BACKEND=redis\nMEMORY_BACKEND=redis\nREDIS_HOST=localhost\nREDIS_PORT=6379\nREDIS_PASSWORD=\"PASSWORD\"<\/pre><p><strong>Integrate Auto-GPT with other APIs<\/strong><\/p><p>Integrating Auto-GPT with other platforms lets you expand the tool&rsquo;s functionalities. For example, you can enable image generation in the AI tool using <strong>Dall-E <\/strong>or <strong>Stable Diffusion<\/strong>.<\/p><p>Meanwhile, use <strong>ElevenLabs<\/strong> or <strong>Microsoft Azure Text-to-speech<\/strong> API to enable voice output. For automatic speech transcription, use <strong>Hugging Face<\/strong>.<\/p><p>If you want to simplify AI application development, integrate Auto-GPT with <strong>LangChain<\/strong>. To use these tools, retrieve their API keys from the respective websites and put them in the <strong>.env f<\/strong>ile.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Auto-GPT is a general-purpose, autonomous AI agent for various tasks like application development and data analysis.<\/p><p>In this Auto-GPT installation guide, we have explained the steps to set up the tool in a VPS environment:<\/p><ol class=\"wp-block-list\">\n<li><strong>Install Python and Git<\/strong>. Download the latest version of Python and Git using your operating system&rsquo;s package manager command, like<strong> apt<\/strong> or<strong> yum<\/strong>.<\/li>\n\n\n\n<li><strong>Download the Auto-GPT repository<\/strong>. Duplicate the official Auto-GPT repository using the<strong> git clone<\/strong> command or by uploading the ZIP file via SFTP.<\/li>\n\n\n\n<li><strong>Install the dependencies<\/strong>. Run the <strong>pip install <\/strong>command to download and install the packages listed in the <strong>requirements.txt<\/strong> file.<\/li>\n\n\n\n<li><strong>Set up the OpenAI AP<\/strong>I. Create a new OpenAI account and generate an API key. Rename the <strong>.env.template<\/strong> file and enter your secret key using a text editor.<\/li>\n\n\n\n<li><strong>Start Auto-GPT<\/strong>. Enter the <strong>python -m autogpt<\/strong> command to launch Auto-GPT.<\/li>\n\n\n\n<li><strong>Set up Docker<\/strong>. Install Docker, create a Docker image, and run the Auto-GPT service container.<\/li>\n<\/ol><p>If you encounter an error, ensure you have the <strong>auto-gpt.json<\/strong> file and all dependencies. Also, check whether the <strong>python<\/strong> command runs within the root Auto-GPT folder.<\/p><p>To use the tool efficiently, store the agent configuration in a<strong> YAML<\/strong> file, integrate other tools with API keys, and install plugins according to your tasks. Also, configure <strong>Pinecone<\/strong> or <strong>Redis<\/strong> for Auto-GPT performance optimization.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-auto-gpt-faq\">How to install Auto-GPT FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1703229552203\"><h3 class=\"schema-faq-question\">Can you use Auto-GPT for free?<\/h3> <p class=\"schema-faq-answer\">While Auto-GPT is free and open-source, OpenAPI charges you for each API call and inputted word. For example, the <strong>GPT 3.5 Turbo<\/strong> input costs <strong>$0.0010 <\/strong>for 1,000 tokens or around 750 words. For more information, refer to the <a href=\"https:\/\/openai.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI pricing page<\/a>. <\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1703229569769\"><h3 class=\"schema-faq-question\">What are the limitations of Auto-GPT?<\/h3> <p class=\"schema-faq-answer\">Auto-GPT can&rsquo;t convert a series of actions into reusable functions. It results in inefficiency when the user wants to restart their task from the beginning.<br><br>It also inherits the GPT LLM limitations. For example, GPT 3.5 is prone to produce misinformation and can only gather information up to January 2022.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1703229591603\"><h3 class=\"schema-faq-question\">What are the future trends for Auto-GPT?<\/h3> <p class=\"schema-faq-answer\">Auto-GPT API integration and learning capabilities make the tool versatile, allowing you to automate tasks from start to finish.<br><br>In the future, it could develop another AI application with the LangChain framework. Also, it may help users resolve live support calls by providing solutions in text-to-speech.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenAI&rsquo;s Generative Pre-trained Transformer (GPT) language model helps simplify various tasks, including assisting application development like GitHub Copilot. Auto-GPT is [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-install-auto-gpt\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":103711,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Install Auto-GPT in %currentyear%","rank_math_description":"Check this article to learn how to install Auto-GPT: 1. Install Python or Git 2. Get the Auto-GPT repository 3. Install the packages + more.","rank_math_focus_keyword":"how to install auto-gpt","footnotes":""},"categories":[22646,22644],"tags":[],"class_list":["post-100967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-installer-auto-gpt","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-auto-gpt","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-auto-gpt","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/100967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=100967"}],"version-history":[{"count":20,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/100967\/revisions"}],"predecessor-version":[{"id":134799,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/100967\/revisions\/134799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/103711"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=100967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=100967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=100967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}