Guide 13

Let a coding agent set up a full VPS stack

With the right access and clear boundaries, a coding agent can help install dependencies, configure a database, web server, process manager, and publish the application.

What does stack mean?

An application stack is the combination of everything needed to run the app: runtime, dependencies, database, environment configuration, reverse proxy or web server, process management, SSL, and deployment routine.

What can the agent do?

  • Check the operating system, runtime, and available tools.
  • Install required dependencies after approval.
  • Create or configure a database and migrations.
  • Set up a web server or reverse proxy.
  • Configure a process manager, container, or service.
  • Build the app, start it, and test that it responds.
  • Create a simple runbook for future deployments.

Safe order of work

  1. Inspect the server and project requirements without changing anything.
  2. Create a plan: dependencies, database, web server, environment variables, and verification.
  3. Get approval before installation, database changes, firewall changes, and production deployment.
  4. Install and configure one piece at a time.
  5. Build and start the application.
  6. Verify the live URL, service status, and any health checks.
  7. Document commands, locations, and the future deployment routine without storing secrets.

Good prompt

"Set up this app on a new VPS. Start by inspecting the environment and writing a plan before installing anything. Do not print secrets. Ask for approval before database creation, firewall changes, or production deployment. When the app runs, verify the live URL and write a short runbook."

Important: the agent can do a lot of technical work, but the customer should still control access, domain, DNS, backups, security, and production approval.

What should be documented afterward?

  • How the app is started, stopped, and deployed.
  • Which services are running.
  • How database migrations and backups work.
  • How to verify that the app is healthy.
  • Which steps require manual approval.