AutoGPT Install & Use Guide
In this article
AutoGPT is an open-source AI agent that can break a large goal into smaller tasks and work through them on its own, using tools like web search, file writing, and code execution. This guide walks you through installing AutoGPT on Windows, macOS, or Linux, and shows you how to run your first autonomous task safely.
What You'll Need
- A computer with at least 8 GB of RAM (16 GB recommended)
- Python 3.10 or newer installed (check with
python --version) - Git installed (check with
git --version) - An OpenAI API key (from platform.openai.com) — AutoGPT uses GPT-4 or GPT-3.5 to make decisions
- Optional: a Pinecone API key if you want long-term memory for large projects
Step-by-Step
- Install Python and Git – If you don't have them, download Python from python.org and Git from git-scm.com. During Python installation on Windows, check “Add Python to PATH”.
- Clone the AutoGPT repository – Open a terminal (Command Prompt on Windows, Terminal on macOS/Linux) and run:
git clone https://github.com/Significant-Gravitas/AutoGPT.git
This creates a folder namedAutoGPT. - Navigate into the folder – Run
cd AutoGPT. - Set up a Python virtual environment – Run
python -m venv .venvthen activate it:
Windows:.venv\Scripts\activate
macOS/Linux:source .venv/bin/activate - Install dependencies – Run
pip install -r requirements.txt(orpip install -e .if you're using the latest version). This may take a few minutes. - Configure your API key – In the AutoGPT folder, copy the file
.env.templateto a new file named.env. Open.envin a text editor and fill in:OPENAI_API_KEY=your-key-here
If you have a Pinecone key, also setPINECONE_API_KEYandPINECONE_ENV. - Run AutoGPT – In the terminal, run
python -m autogpt. The first time, it may ask you to choose an AI provider (select OpenAI) and a model (GPT-4 is best, but GPT-3.5 is cheaper). - Give it a goal – When prompted “Enter your goal”, type a clear, specific objective. For example: “Research the top 5 project management tools in 2025 and write a summary to a file.”
- Watch it work – AutoGPT will list tasks, execute them, and ask for permission before using certain tools. You can type
yto approve,nto deny, ory -Nto auto-approve the next N actions. - Stop when done – When the goal is complete, type
exitor press Ctrl+C. Your results are usually saved in theautogpt/workspacefolder.
Common Mistakes
- Not adding Python to PATH – Windows users often miss this, causing “python not found”. Reinstall Python and check the box.
- Using the wrong Python version – AutoGPT requires 3.10+. Check with
python --version; if you have an older version, install a newer one. - Forgetting to activate the virtual environment – If you see “No module named autogpt”, you probably skipped step 4.
- Sharing your API key – Never commit
.envto a public repo. It contains your secret key. - Giving vague goals – “Do something useful” leads to aimless loops. Be specific about the output you want.
Tips
- Start with a small, low-cost task to test the setup. A simple research task with GPT-3.5 costs a few cents.
- Use the
--continuousflag only when you trust the task; otherwise, keep the permission prompts on. - Set a budget limit in your OpenAI account to avoid unexpected charges.
- Read the
README.mdin the repo for advanced options like custom tools or plugins. - If you're on Windows, use PowerShell or the Command Prompt, not the old Command.com.
Troubleshooting
- “python is not recognized” – Reinstall Python and check “Add to PATH”. Restart your terminal.
- “ModuleNotFoundError: No module named 'autogpt'” – Activate your virtual environment and reinstall dependencies.
- API key errors – Make sure your
.envfile has no spaces around the equals sign, and that the key is active. - Rate limit errors – You're hitting OpenAI's rate limit. Wait a minute or switch to a model with a higher limit.
- Out of memory – Close other programs, or increase your system's swap file. AutoGPT can be memory-hungry.
- It gets stuck in a loop – Type
nto stop a specific action, orexitto quit. Then refine your goal to be more constrained.
Frequently Asked Questions
Is AutoGPT free?
The software is free and open-source, but you need an OpenAI API key, which is paid. Costs depend on usage; a simple task might cost under $1.
Can I run AutoGPT without coding experience?
Yes, but you need to be comfortable with command-line basics. The steps above are copy-paste, but troubleshooting may require reading error messages.
What is the difference between AutoGPT and ChatGPT?
ChatGPT is a chat interface you interact with directly. AutoGPT is an agent that breaks your goal into subtasks and executes them automatically, using ChatGPT-like models under the hood.
Does AutoGPT work offline?
No. It requires an internet connection to call OpenAI's API and to search the web for information.
Can I use AutoGPT with other AI models?
Yes, the latest versions support local models like Llama or Mistral, but setup is more complex. The default is OpenAI.
Is it safe to let AutoGPT run on its own?
It's safer to keep permission prompts on. AutoGPT can execute code and write files, so always review actions that affect your system.