Skip to main content
Deploy a Lousho agent to a real VPS: agent/ is an agent directory for a small ops assistant (vps-ops), and deploy.mjs builds it with lousho build --target=docker, ships the context over SSH, and runs the container on a Hostinger virtual machine.

What it deploys

vps-ops answers operator questions about the host it runs on: host_status (OS, uptime, load, memory) is live facts, and a small scratchpad (write_note/read_note/list_notes) persists operator notes — writes ask for approval, reads are always allowed. The model is openrouter/openai/gpt-4o-mini.

Run it

The script verifies the VM is running, builds the docker target locally, copies the context to /opt/lousho-agent, builds and (re)starts the lousho-agent container on port 3000, then polls /health and sends one /chat round-trip. It only touches the lousho-agent container — VM provisioning, recreates and billing ops are intentionally out of scope (use the Hostinger API/console for those). After deploy:
Port 3000 is plain HTTP — put Traefik (installed on the VPS template) or another TLS terminator in front for anything real, per the deployment docs.