Platform Stack
Use this sub-skill for AutoGPT Platform self-hosting, local development,
Docker Compose, environment-file initialization, service health, migrations,
ports, upgrades, and local OpenAI-compatible AutoPilot endpoints.
Start here
- Read workflows for the normal setup, separate
backend/frontend development, migrations, upgrades, and local LLM routes.
- Read configuration before editing
.env files,
changing ports, or switching auth/model transport.
- Read troubleshooting before resetting data,
diagnosing container restarts, or changing an existing installation.
- Run
python scripts/platform_stack_preflight.py --repo <checkout> before
starting services. Add --init-env only when missing local env files should
be created without overwriting existing files.
Safe operating sequence
- Confirm whether the task is a fresh self-host, active local development,
an upgrade, or a production-like deployment. Do not mix these paths.
- From the repository's
autogpt_platform/ directory, verify Docker Compose,
Node/Corepack, disk space, and the three expected default env files.
- Initialize only missing
.env files. Existing files must be diffed against
current defaults; cp -n does not merge newly added variables.
- Start the smallest service set that proves the next step. Use
make start-core
for Postgres, Redis, and RabbitMQ; use full Compose only when the UI or all
services are required.
- Apply migrations and generate Prisma artifacts before exercising backend
features. Confirm
docker compose ps and service logs before debugging UI
symptoms.
Common commands
cd autogpt_platform
make init-env
make start-core
make logs-core
make migrate
make run-backend
make run-frontend
# Full stack, when explicitly wanted:
docker compose up -d --build
docker compose ps
The normal local entry points are frontend 3000, WebSocket 8001, and REST
or execution API 8006, but the active Compose/environment configuration wins.
Routing boundaries
- Backend routes, blocks, Prisma, API schemas, and Python tests belong to
platform-backend.
- Next.js pages, generated hooks, Builder/Copilot UI, and browser tests belong
to platform-frontend.
- Classic
autogpt, Forge, and direct benchmark commands belong to
classic-agents.
Never make a Docker reset, database reset, credentialed provider call, model
pull, or full browser suite a default smoke check. Ask for explicit scope when
those side effects are part of the requested task.
1---2name: platform-stack3description: "Operate and troubleshoot the self-hosted AutoGPT Platform stack,4 Docker services, environment files, migrations, and local LLM setup."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/platform-stack7 disco-role: operating8disable-model-invocation: true9license: NOASSERTION10---1112# Platform Stack1314Use this sub-skill for AutoGPT Platform self-hosting, local development,15Docker Compose, environment-file initialization, service health, migrations,16ports, upgrades, and local OpenAI-compatible AutoPilot endpoints.1718## Start here1920- Read [workflows](references/workflows.md) for the normal setup, separate21 backend/frontend development, migrations, upgrades, and local LLM routes.22- Read [configuration](references/configuration.md) before editing `.env` files,23 changing ports, or switching auth/model transport.24- Read [troubleshooting](references/troubleshooting.md) before resetting data,25 diagnosing container restarts, or changing an existing installation.26- Run `python scripts/platform_stack_preflight.py --repo <checkout>` before27 starting services. Add `--init-env` only when missing local env files should28 be created without overwriting existing files.2930## Safe operating sequence31321. Confirm whether the task is a fresh self-host, active local development,33 an upgrade, or a production-like deployment. Do not mix these paths.342. From the repository's `autogpt_platform/` directory, verify Docker Compose,35 Node/Corepack, disk space, and the three expected default env files.363. Initialize only missing `.env` files. Existing files must be diffed against37 current defaults; `cp -n` does not merge newly added variables.384. Start the smallest service set that proves the next step. Use `make start-core`39 for Postgres, Redis, and RabbitMQ; use full Compose only when the UI or all40 services are required.415. Apply migrations and generate Prisma artifacts before exercising backend42 features. Confirm `docker compose ps` and service logs before debugging UI43 symptoms.4445## Common commands4647```bash48cd autogpt_platform49make init-env50make start-core51make logs-core52make migrate53make run-backend54make run-frontend55# Full stack, when explicitly wanted:56docker compose up -d --build57docker compose ps58```5960The normal local entry points are frontend `3000`, WebSocket `8001`, and REST61or execution API `8006`, but the active Compose/environment configuration wins.6263## Routing boundaries6465- Backend routes, blocks, Prisma, API schemas, and Python tests belong to66 [platform-backend](../platform-backend/SKILL.md).67- Next.js pages, generated hooks, Builder/Copilot UI, and browser tests belong68 to [platform-frontend](../platform-frontend/SKILL.md).69- Classic `autogpt`, Forge, and direct benchmark commands belong to70 [classic-agents](../classic-agents/SKILL.md).7172Never make a Docker reset, database reset, credentialed provider call, model73pull, or full browser suite a default smoke check. Ask for explicit scope when74those side effects are part of the requested task.