{"id":100967,"date":"2023-12-22T07:30:55","date_gmt":"2023-12-22T07:30:55","guid":{"rendered":"\/tutorials\/?p=100967"},"modified":"2026-05-21T04:24:16","modified_gmt":"2026-05-21T04:24:16","slug":"how-to-install-auto-gpt","status":"publish","type":"post","link":"\/in\/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 <a href=\"\/in\/tutorials\/how-to-use-github-copilot\/\">GitHub Copilot<\/a>. 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 <a href=\"\/in\/tutorials\/what-is-vps-hosting\/\">virtual private server<\/a> (VPS) and share its best practices.<\/p><p>\n\n\n<div class=\"protip\"><div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                   What Is Auto-GPT?\n                <\/p>\n            <\/div>\n            <p class=\"protip__content\">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><\/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=\"\/in\/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=\"\/in\/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=\"\/in\/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=\"\/in\/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><div class=\"wp-block-cover\" style=\"min-height:185px;aspect-ratio:unset;\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-100 has-background-dim has-background-gradient\" style=\"background:linear-gradient(180deg,rgb(140,133,255) 9%,rgb(197,205,233) 92%)\"><\/span><div class=\"wp-block-cover__inner-container is-layout-constrained wp-block-cover-is-layout-constrained\">\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color has-medium-font-size wp-elements-e3e1d35f07120cb8b88732ad469171c6\">Run projects with more power and control<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50 hgr-tutorials-cta hgr-tutorials-in-cta-vps-hosting-testing\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color has-medium-font-size has-custom-font-size wp-element-button\" href=\"\/in\/vps-hosting\" style=\"border-radius:15px;background-color:#673de6\">Get VPS hosting<\/a><\/div>\n<\/div>\n<\/div><\/div><div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div><p>After purchasing and setting up a VPS plan from Hostinger, connect <a href=\"\/in\/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 class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <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.\n            <\/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=\"\/in\/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=\"\/in\/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\":\"6a58ffdd02985\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd02985\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/python-pip-and-git-version-on-terminal.png\/w=1024,h=1024,fit=scale-down\" alt=\"Python PIP and Git version on Terminal\" class=\"wp-image-120182\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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\/52\/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\/52\/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\/52\/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\/52\/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--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>\n<\/div><p>Now, let&rsquo;s <a href=\"\/in\/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\":\"6a58ffdd03eb6\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd03eb6\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/the-download-zip-button-on-a-github-repository.png\/w=1024,h=1024,fit=scale-down\" alt=\"The Download ZIP button on a GitHub repository\" class=\"wp-image-120183\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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\/52\/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\/52\/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\/52\/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\/52\/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--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>\n<\/div><p>Upload the archive file from your local computer to the remote VPS. For simplicity, we will <a href=\"\/in\/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\":\"6a58ffdd055d0\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd055d0\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=1024,h=1024,fit=scale-down\" alt=\"FileZilla new site configuration menu\" class=\"wp-image-120184\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/filezilla-new-site-configuration-menu.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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--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>\n<\/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=\"\/in\/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 class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <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.\n            <\/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=\"\/in\/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\":\"6a58ffdd06dca\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd06dca\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/openai-api-key-generation-page.png\/w=1024,h=1024,fit=scale-down\" alt=\"OpenAI API key generation page\" class=\"wp-image-120185\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/openai-api-key-generation-page.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/openai-api-key-generation-page.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/openai-api-key-generation-page.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/openai-api-key-generation-page.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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--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>\n<\/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=\"\/in\/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\":\"6a58ffdd09014\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd09014\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/autogpt-running-in-terminal.png\/w=1024,h=1024,fit=scale-down\" alt=\"AutoGPT running in terminal\" class=\"wp-image-120186\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/autogpt-running-in-terminal.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/autogpt-running-in-terminal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/autogpt-running-in-terminal.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2023\/12\/autogpt-running-in-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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--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>\n<\/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=\"\/in\/tutorials\/how-to-install-and-use-linux-screen\/\">Linux Screen<\/a>.<\/p><p>After <a href=\"\/in\/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\":\"6a58ffdd0a5ad\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58ffdd0a5ad\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/03\/Docker-runs-Auto-GPT.png\/w=1024,h=1024,fit=scale-down\" alt=\"Docker runs AutoGPT\" class=\"wp-image-106635\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/03\/Docker-runs-Auto-GPT.png\/w=1148,fit=scale-down 1148w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/03\/Docker-runs-Auto-GPT.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/03\/Docker-runs-Auto-GPT.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/03\/Docker-runs-Auto-GPT.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/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--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>\n<\/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=\"\/in\/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=\"\/in\/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=\"\/in\/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    <div class=\"announcement-block announcement-block--warning\">\n        <span class=\"announcement-block__heading\">\n            <svg width=\"24\" height=\"26\" viewBox=\"0 0 24 26\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                d=\"M12 23.5C17.799 23.5 22.5 18.799 22.5 13C22.5 7.20101 17.799 2.5 12 2.5C6.20101 2.5 1.5 7.20101 1.5 13C1.5 18.799 6.20101 23.5 12 23.5ZM13.637 8.65198C13.637 7.74791 12.9041 7.01501 12 7.01501C11.0959 7.01501 10.363 7.74791 10.363 8.65198C10.5335 10.5375 10.875 14.383 10.875 14.383C10.875 15.0043 11.3787 15.508 12 15.508C12.6213 15.508 13.125 15.0043 13.125 14.383V14.38L13.637 8.65198ZM11.9927 16.714C11.3714 16.714 10.8677 17.2177 10.8677 17.839C10.8677 18.4603 11.3714 18.964 11.9927 18.964H12.0073C12.6286 18.964 13.1323 18.4603 13.1323 17.839C13.1323 17.2177 12.6286 16.714 12.0073 16.714H11.9927Z\"\n                fill=\"#BE1025\"\/>\n            <\/svg>\n            Warning        <\/span>\n        <p class=\"announcement-block__content\">\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    <\/div>\n\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=\"\/in\/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=\"\/in\/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 one of many tools utilizing the technology. 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 [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/how-to-install-auto-gpt\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":133408,"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":[22640],"tags":[],"class_list":["post-100967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-auto-gpt\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-installer-auto-gpt\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/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-GB","link":"https:\/\/www.hostinger.com\/uk\/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\/in\/tutorials\/wp-json\/wp\/v2\/posts\/100967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=100967"}],"version-history":[{"count":20,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/100967\/revisions"}],"predecessor-version":[{"id":133574,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/100967\/revisions\/133574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media\/133408"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=100967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=100967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=100967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}