What Matters
“Self-hosted” does not automatically mean cheaper, private or reliable. It means your team owns more of the operating responsibility. The right deployment depends on uptime, data sensitivity, integrations, hardware needs, support capability and how quickly the agent must recover when a run fails.
DN Evidence Block
Reviewed: 16 November 2026 · Evidence type: current official pricing and platform documentation for Hostinger VPS, DigitalOcean Droplets, Replit and n8n deployment options.
Boundary: Headline infrastructure prices exclude engineering, backups, monitoring, bandwidth, model APIs, databases and human support. Promotional VPS prices can renew at a higher rate.
Four Deployment Models
| Model | Best for | You manage | Main hidden cost |
|---|---|---|---|
| Local machine | Private experiments, development and intermittent agents | Device, network, updates, power and backups | Uptime and remote access |
| Managed agent/cloud platform | Fast launch and teams without operations staff | Application configuration, data and usage | Plan limits, usage charges and lock-in |
| General VPS | Always-on low-to-medium workloads with custom control | OS, runtime, patches, firewall, backups and observability | Maintenance and incident response |
| Cloud infrastructure/serverless | Variable scale, event-driven work and production systems | Architecture, cloud services, cost controls and security | Complexity and usage surprises |
1. Local: Best for Development and Sensitive Experiments
Running an agent on a laptop, workstation or small local server keeps data and credentials close to the operator and avoids a monthly server bill. It is useful for MCP servers, code agents, document analysis and workflows that do not need continuous availability.
Advantages
- Direct access to local files and tools.
- No public server required for many tasks.
- Easy debugging and lower early cost.
- Control over which data leaves the device.
Limits
- The agent stops when the device sleeps, loses power or disconnects.
- Inbound webhooks may require tunnelling or a public endpoint.
- Backups and disk encryption are the owner’s responsibility.
- Personal and production workloads can become mixed.
Use local deployment for development and read-only personal workflows. It is a weak choice for customer-facing automation with an uptime commitment.
2. Managed Platform: Best for Fast Delivery
Managed platforms bundle deployment, upgrades, logs, credentials and common integrations. Examples include n8n Cloud, hosted agent builders and Replit’s development/deployment environment. The operator can focus on the workflow instead of the server.
Advantages
- Fast setup and managed upgrades.
- Built-in authentication, execution history or collaboration.
- Support and predictable entry plans.
- Less Linux and networking work.
Limits
- Execution, credit, storage or concurrency limits.
- Data-processing and regional constraints.
- Vendor-specific workflow formats and migration cost.
- Usage can become expensive at scale.
Managed deployment is often the correct commercial starting point. Portability becomes important only after the workflow proves value.
3. VPS: Best for Control at Modest Scale
A virtual private server provides an always-on Linux environment. Current entry examples include Hostinger’s KVM VPS offers and DigitalOcean Droplets. Promotional prices and renewal prices differ; DigitalOcean bills by usage and publishes resource-based plans.
What you must configure
- SSH keys and disabled password/root login where appropriate.
- Firewall and only required ports.
- TLS certificates and reverse proxy.
- Container/runtime updates.
- Database persistence and backups.
- Secrets outside source code.
- Health checks, logs and alerts.
- Resource and spend limits.
A $6 server is not a $6 production system. Add the value of maintenance hours, backup storage, monitoring and response to failures.
4. Cloud/Serverless: Best for Variable or Complex Workloads
Cloud functions, queues, managed databases, container services and object storage let teams scale components independently. Event-driven agents can run only when triggered, while durable workflows can wait for external events without holding a process open.
The architecture is powerful but easy to overbuild. A single low-volume workflow may need only a VPS or managed platform. Cloud complexity is justified by scale, reliability, isolation, data-residency or integration requirements.
Current Price Signals
| Option | Current entry signal | Important qualifier |
|---|---|---|
| Hostinger VPS | KVM 1 promotional pricing around $6.49/month in the reviewed market | Renewal is higher; region, term and promotion matter |
| DigitalOcean Droplet | Basic examples around $4–$6/month; per-second billing | Backups, databases, bandwidth and other services add cost |
| Replit Core | Current annual-equivalent price around $18/month | Credits, deployment and agent use are plan-governed |
| n8n Cloud Starter | Current annual-equivalent entry around €20/month for 2,500 executions | Completed executions, not raw steps, drive the plan |
| Local machine | No new hosting subscription | Hardware, power, internet, uptime and maintenance are not zero |
These prices are snapshots. Always open the current regional pricing and renewal terms.
Resource Sizing
A text-first agent that waits on external APIs can run on modest compute. Browser automation, local models, vector indexing, image processing and concurrent code execution require more memory and CPU. Start from measured load rather than buying a “GPU server” because the product uses AI.
| Workload | Likely starting profile | Watch |
|---|---|---|
| Webhook + model API + database | 1–2 vCPU, 1–2 GB RAM for a small workload | Concurrent runs and database growth |
| n8n with several integrations | 2 vCPU, 2–4 GB RAM | Execution retention, queueing and binary data |
| Browser automation | 2–4+ vCPU, 4–8 GB RAM per concurrency needs | Memory spikes and orphaned browser processes |
| Local embeddings or small model | Depends on model and quantisation | RAM/VRAM, cold start and throughput |
| Production multi-tenant agent | Separate app, worker, queue, database and storage as load justifies | Isolation, rate limits, observability and cost |
These are starting assumptions, not guarantees. Load-test the exact workflow.
Reference Architectures
Single-process personal agent
A local or VPS process handles the scheduler, model calls and tools, with a small database for state. This is simple and appropriate for a single owner. The main weakness is a shared failure domain: one process crash can interrupt every function.
Workflow platform plus managed APIs
n8n, Make or another workflow platform handles triggers and orchestration while hosted model, database and notification services do the rest. This reduces operations work and makes the workflow visible. It can create usage-based cost and platform-specific dependencies.
Queue-based production agent
A public API accepts work, writes it to a queue and returns a job ID. Workers process tasks, store checkpoints and emit events. A separate service handles credentials and side effects. This architecture supports concurrency and recovery but requires more engineering.
Local model plus cloud control plane
Sensitive content or inference runs locally while scheduling, user access and non-sensitive state run in the cloud. This can improve data control, but the boundary and failure behaviour must be explicit.
Data Residency and Privacy
Self-hosting the orchestrator does not mean data stays on the server. Map every outbound service:
- model provider;
- embedding service;
- vector database;
- analytics and error tracking;
- email, messaging or CRM tools;
- backup destination;
- MCP and third-party APIs.
Record the categories of data sent to each provider, purpose, region, retention and deletion path. A locally hosted n8n instance can still send full customer messages to a model API if the workflow is configured that way.
Backups and Restore
A backup is only useful if it can restore the agent’s state and credentials safely. Include:
- database and workflow definitions;
- encrypted credential store or a documented re-provisioning process;
- files and vector indexes that cannot be regenerated easily;
- environment and version records;
- retention and offsite copy;
- a tested restore run.
Do not place unencrypted secrets in ordinary backups. If a key must be restored from a secret manager, document that dependency in the runbook.
Availability Targets
Define service level from business consequence:
| Workflow | Reasonable starting target | Recovery priority |
|---|---|---|
| Personal research agent | Best effort | Restore when convenient; no silent data loss |
| Daily internal report | Complete within a time window | Retry before the business deadline |
| Customer support triage | High business-hours availability | Fall back to human queue |
| Payment/trading monitor | Continuous monitoring with explicit failover | Pause side effects and alert immediately |
| Regulated record workflow | Defined retention and audit availability | Preserve evidence and chain of custody |
“Always on” is not a requirement until the business defines what happens when the service is off.
Local Model vs Hosted Model API
| Factor | Local model | Hosted API |
|---|---|---|
| Data path | Can remain on controlled hardware | Sent to provider under its terms/configuration |
| Capital cost | Hardware and capacity planning | Usage-based |
| Operations | Model serving, updates and monitoring | Provider operates inference |
| Capability | Bound by selected model/hardware | Access to current managed models |
| Availability | Your infrastructure | Provider plus network dependency |
| Predictable cost | Better at steady high utilisation | Better at low/variable utilisation |
Hybrid designs can route sensitive or routine work locally and harder cases to a hosted model after policy review.
Cost Control
- Set cloud budgets and provider usage alerts.
- Limit agent recursion and maximum tool calls.
- Cache read-only results according to freshness needs.
- Batch work instead of polling unnecessarily.
- Use smaller models for classification or extraction when evaluated.
- Prune execution logs according to retention policy.
- Stop idle browser and code environments.
- Measure cost per accepted outcome.
Vendor Lock-In and Portability
Export workflows, prompts, schemas and test sets in stable formats. Keep business policy separate from platform-specific nodes where possible. Document every proprietary dependency and the minimum migration path. DN’s Agent Runtime Portability Index examines what actually moves between platforms.
Benchmark Before Choosing
Run the same representative workload on two deployment options for a week. Measure:
- successful outcomes;
- p50 and p95 latency;
- direct cost and operating time;
- failure/retry behaviour;
- ease of deployment and rollback;
- data path and auditability;
- time to restore from backup.
A synthetic benchmark that ignores human support and failure recovery will favor the most complex self-hosted setup unfairly.
Migration Checklist
- Freeze material workflow changes.
- Export definitions, prompts, evals and state.
- Inventory credentials and rotate rather than copying when possible.
- Run both environments in shadow mode.
- Compare outputs and external side effects.
- Switch traffic gradually.
- Keep rollback until state and scheduled jobs are reconciled.
- Revoke old credentials and delete retained data according to policy.
DN Agent Hosting TCO Calculator
Compare direct infrastructure with the monthly value of operating work.
Worked Example
A VPS costs $12, backups $5, monitoring $10 and API usage $40. Three maintenance hours at $60 add $180, producing a true monthly operating cost of $247. At 2,000 successful runs, the TCO is about $0.12 per run. A managed platform at $100 may be cheaper if it removes most maintenance and provides the required execution capacity.
Security Baseline
- Use separate development and production credentials.
- Keep secrets in a credential store or environment, not the workflow export.
- Patch the OS, runtime, dependencies and agent framework.
- Restrict inbound ports and authenticate every public endpoint.
- Encrypt transport and sensitive data at rest.
- Limit outbound network access where practical.
- Back up state and test restore.
- Redact sensitive trace data before export.
- Rotate credentials after exposure or personnel changes.
Reliability Baseline
- Health endpoint and process supervision.
- Queue or durable execution for long-running work.
- Idempotency for retried side effects.
- Timeouts and backoff for external tools.
- Disk, memory, CPU and execution-failure alerts.
- Versioned deployments and rollback.
- Runbook for database, model, network and credential failures.
When to Move
- Local to managed/VPS: when webhooks, uptime or shared access become necessary.
- Managed to VPS: when plan limits, privacy or cost justify operating ownership.
- VPS to cloud architecture: when concurrency, availability, isolation or data scale requires independent components.
- Custom back to managed: when infrastructure work no longer differentiates the product.
Frequently Asked Questions
Is self-hosting more private?
It can reduce third-party exposure, but misconfiguration, logs and model API calls can still leak data. Map the complete data path.
Do I need a GPU?
Not when using hosted model APIs. A GPU is relevant for local inference or specific workloads, and may not be economical.
Is a VPS suitable for production?
Yes for many modest workloads, if backups, security, monitoring and recovery are operated properly.
Which option is cheapest?
The one with the lowest total cost for the required reliability, not the lowest server price.
Methodology and Limitations
DN compared deployment ownership and current public entry prices. Price snapshots vary by region, term and promotion. Resource examples are planning assumptions; measured workload is the source of truth.
Affiliate disclosure: DN may earn from Replit. Hostinger, DigitalOcean and n8n are discussed without current DN affiliate links. The recommendation framework is based on operating requirements.
Primary Sources
- Hostinger VPS pricing
- DigitalOcean Droplet pricing
- Replit pricing
- n8n pricing
- n8n self-hosting documentation