AutoGPT - Self-Hosting
This page walks you through running the AutoGPT Platform locally with Docker. There are two paths: a one-line installer that does everything for you, and a manual clone-and-compose setup that gives you full control. Both end with the Agent Builder reachable at http://localhost:3000. New to the platform? Read the overview first.
The steps below follow the official self-hosting guide at agpt.co/docs/platform/self-hosting/getting-started and the repository (autogpt_platform/docker-compose.yml, .env.default), reviewed June 25, 2026. Self-hosting is a genuinely technical process; if you'd rather have something managed, AutoGPT also offers a cloud-hosted beta (waitlist).
1. System requirementsโ
Hardwareโ
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 8 GB | 16 GB |
| Storage | 10 GB free | more, the Docker images are large |
The full stack runs ~15 containers (backend services + Supabase + queue + cache + antivirus), so a 4-core / 16 GB machine is realistic for comfortable local development.
Softwareโ
| Software | Minimum version |
|---|---|
| Docker Engine | 20.10.0 |
| Docker Compose | 2.0.0 |
| Git | 2.30 |
| Node.js | 16.x |
| npm | 8.x |
| Editor | VSCode 1.60+ or equivalent |
Supported operating systems: Linux (Ubuntu 20.04+), macOS (10.15+), Windows 10/11 with WSL2.
Verify your toolchain before you start:
node -v
npm -v
docker -v
docker compose -v
git --version
On Windows, run the whole setup inside a WSL2 distribution. The Supabase containers are known to misbehave under the Hyper-V backend. Install Docker Desktop with the WSL2 backend enabled and clone the repo into your Linux home directory, not a /mnt/c/... path.
2. Option A โ one-line installer (recommended)โ
The fastest path. The script installs dependencies, configures Docker and launches a local instance.
macOS / Linux:
curl -fsSL https://setup.agpt.co/install.sh -o install.sh && bash install.sh
Windows (PowerShell):
powershell -c "iwr https://setup.agpt.co/install.bat -o install.bat; ./install.bat"
Piping a remote script into a shell runs whatever that URL serves. If you'd rather see what it does first, download install.sh and read it before executing โ the command above already saves it to disk (-o install.sh) rather than piping straight into bash, so just open the file before the second step.
When it finishes, jump to ยง5 to open the app.
3. Option B โ manual setupโ
Full control, and what you'll use day-to-day as a contributor.
1. Clone the repository and enter the platform folder:
git clone https://github.com/Significant-Gravitas/AutoGPT.git
cd AutoGPT/autogpt_platform
2. Create your environment file from the provided template:
cp .env.default .env
There is also a backend/.env.default; copy it the same way if you intend to change backend settings (see ยง4).
3. Build and start the whole stack in the background:
docker compose up -d --build
The first build pulls and builds many images and can take a while. Subsequent starts are fast.
4. Follow the logs (optional) to watch services come up:
docker compose logs -f
Makefile shortcutsโ
The platform also ships a Makefile with convenience targets that wrap the Docker and dev-server commands. Common ones:
make start-core # start the core backend services
make run-backend # run the backend
make run-frontend # run the frontend dev server
If a target name has changed, run make help (or open the Makefile) to see what's available in your checkout โ the canonical commands are always the docker compose ones above.
4. Environment configurationโ
The .env file you created from .env.default holds the configuration for the stack. For a quick local run the defaults work as-is. Two things are worth knowing:
- Encryption key โ the backend uses an encryption key (in the
backend.env) to protect stored credentials. The default value is fine for throwaway local use, but change it before exposing the instance to anyone else. - Provider credentials โ to use blocks that call external services (OpenAI, Anthropic, GitHub, โฆ) you add API keys either through the UI at run time or via environment variables. You do not need any of these to start the platform; you only need them for the specific blocks you run.
.env.env contains secrets (encryption keys, API keys). It is git-ignored by default โ keep it that way. Do not paste real provider keys into screenshots, issues or shared logs.
5. Accessing the platformโ
Once the containers are healthy, the services are reachable on these local ports:
| Service | Port | URL |
|---|---|---|
| Frontend UI (Agent Builder) | 3000 | http://localhost:3000 |
| Backend websocket | 8001 | ws://localhost:8001 |
| Backend REST / execution API | 8006 | http://localhost:8006 |
Open http://localhost:3000 in your browser, create a local account, and you're in the Agent Builder.
3000 for the frontend is stable and the one you'll use. The backend port mappings are defined in docker-compose.yml (and the base compose file it extends); if 8001/8006 don't respond, check the actual ports: mappings in your checkout or the official getting-started guide, since they can change between releases.
6. Day-to-day operationsโ
# stop the stack (keeps data)
docker compose down
# stop and wipe volumes (fresh start โ deletes the local DB!)
docker compose down -v
# rebuild after pulling new code
git pull
docker compose up -d --build
# check what's running / unhealthy
docker compose ps
7. Troubleshootingโ
| Symptom | Likely cause & fix |
|---|---|
localhost:3000 won't load | Frontend container still building/starting. Check docker compose ps and docker compose logs -f frontend. |
| Supabase / auth / db containers crash-loop on Windows | You're on the Hyper-V backend. Switch Docker Desktop to WSL2 and clone into the Linux filesystem (ยง1). |
| Port already in use | Another process holds 3000/8006/5432. Stop it, or change the host-side port mapping in docker-compose.yml. |
| Build runs out of disk / memory | Free up space (images are large) and raise Docker's RAM allocation; the stack wants ~8 GB+. |
| Blocks that call external APIs fail | Missing/invalid provider credentials. Add the API key for that provider (ยง4). |
| Stale state after an upgrade | docker compose down -v then docker compose up -d --build for a clean slate (this wipes local data). |
8. Next stepsโ
- Build something: open the Agent Builder and connect a few blocks into an agent.
- Extend the platform: Building Blocks shows how to add your own block to the library.
- Background on the architecture and concepts: the overview.
9. Sourcesโ
- AutoGPT self-hosting guide โ agpt.co/docs/platform/self-hosting/getting-started
- Significant-Gravitas/AutoGPT โ
README.md,autogpt_platform/docker-compose.yml,autogpt_platform/.env.default(devbranch, reviewed 2026-06-25)