ENGINEERING REFERENCE / AGT / 003

VPS for AI Agents & n8n Sizer

Size a VPS for AI agents or a VPS for n8n: model worker slots, headless browsers, queue services and local inference.

Reference specifications

STATIC / DEFAULTS

Reference profiles distinguish API-first routing, queue mode and local inference.

Workload / hardwareMinimumRecommendedNotes / price
AI agents and n8n2 vCPU / 4 GB RAM / 30 GB disk4 vCPU / 4 GB RAM / 35 GB diskshared CPU · x86_64
API automation without browsers1 vCPU / 2 GB RAM / 20 GB disk1 vCPU / 2 GB RAM / 25 GB diskshared CPU · x86_64
n8n with browser workers8 vCPU / 12 GB RAM / 75 GB disk12 vCPU / 16 GB RAM / 95 GB diskdedicated CPU · x86_64
Local small-model routing6 vCPU / 12 GB RAM / 35 GB disk8 vCPU / 12 GB RAM / 40 GB diskdedicated CPU · x86_64
01 / AUTOMATION SIZING

Size a VPS for AI agents around concurrent work

A VPS for AI agents should be sized around the work that runs at once. Count active agents or worker slots, simultaneous browser sessions and the services used to persist state. Ten workflows saved in a dashboard do not require the same resources as ten Chromium sessions actively rendering pages at the same time.

Recommended CPU and RAM for API agents, default automation, six-browser n8n queue mode and a local 7B model.
Calculator recommendations compare API-only, default, browser-heavy queue and local 7B scenarios.

Reference sizing tiers

Tier Scenario inputs CPU RAM Storage Catalog price Network at price endpoints
Minimum workers=2; browserSlots=1; vectorIndexGb=2; database=sqlite; routing=api; localModelSizeB=3; queueMode=false 2 vCPU · shared x86_64 4 GB 30 GB NVMe/SSD $4.54–$96.00 USD/mo OVHcloud VPS-1 (2027) (Unmetered, 500 Mbps port); Vultr High Frequency 16 GB (5 TB)
Recommended workers=2; browserSlots=1; vectorIndexGb=2; database=sqlite; routing=api; localModelSizeB=3; queueMode=false 4 vCPU · shared x86_64 4 GB 35 GB NVMe/SSD $6.60–$96.00 USD/mo Contabo Cloud VPS 4 (Core VPS) (Unmetered); Vultr High Frequency 16 GB (5 TB)
Comfortable workers=1; browserSlots=0; vectorIndexGb=1; database=sqlite; routing=local; localModelSizeB=7; queueMode=false 8 vCPU · dedicated x86_64 12 GB 40 GB NVMe/SSD $144.00–$144.00 USD/mo Linode G6 Dedicated 16 GB (6 TB)

Use the bandwidth calculator for browser downloads and API traffic, and the VPS CPU benchmark to compare processor options for local inference.

If model inference runs at a remote provider, start with an API-first configuration. The host still needs CPU and memory for orchestration, networking, parsing and retries, but the model weights are not loaded locally. API costs, rate limits and latency are separate from the server estimate.

The calculator reports a minimum and a recommended host. The recommendation adds 25% to the underlying CPU and memory estimate, adds 30% to disk, and rounds up to practical sizes. These allowances cannot predict every workflow: measure the exact browser pages, libraries, dataset and workload you plan to operate.

Browser slots have a real cost

For browser automation, a Playwright or Chromium slot can include a browser process, renderers, tabs, screenshots and temporary files. The estimator budgets per concurrent slot. Complex pages, extensions, large downloads and video may need much more memory than the baseline.

Test the maximum number of simultaneous sessions rather than the total number launched per day. Watch resident memory, CPU saturation, /dev/shm and restart behavior on the host. Limit concurrency and queue additional sessions when the host cannot keep latency or failure rates within your requirements.

Headless does not mean free of graphics work. Rendering pages, executing JavaScript and producing screenshots consume CPU even without a visible desktop. Browser isolation, network policy and safe handling of site credentials remain your responsibility; the sizing result does not validate an automation workflow or its permissions.

VPS for n8n: standalone and queue mode

A small server can run a standalone n8n instance with SQLite when its deployment and concurrency needs are modest. In this calculator, workers represent execution slots in that single instance. Measure workflow run time, execution history growth and memory usage before increasing the number of simultaneous jobs.

For queue mode, select the queue switch. The model includes Postgres and Redis along with the main instance and worker processes. In production, those components can instead run on separate machines; distribute their capacity deliberately rather than assuming the single-host estimate covers a distributed topology.

Measure queue age as well as CPU use. If incoming work arrives faster than workers finish, increasing concurrency can make memory pressure worse without improving throughput. Set retries and execution retention to suit the workflow, preserve encryption keys securely, and keep recoverable backups of the database and configuration.

Docker Compose, n8n and Chromium OOM checklist

  • Docker normally gives a container 64 MB of /dev/shm; Chromium may crash under that limit. Set shm_size: '1gb' on the browser service, or use Chromium's --disable-dev-shm-usage flag when appropriate and account for its temporary-disk use.
  • Set a measured mem_limit for each service and init: true to reap child processes. Leave host memory for the OS, database and overlapping containers; a limit that is too low can itself trigger an OOM kill.
  • For a properly configured n8n queue deployment, use EXECUTIONS_MODE=queue with Redis, Postgres and appropriately limited workers. Enable EXECUTIONS_DATA_PRUNE=true and set retention for execution history.
  • Close each Playwright browser context after the job, bound concurrent browsers, and measure real peaks with docker stats; inspect dmesg | grep -i oom on the host for OOM kills when permissions allow.

Vector storage and local models

A vector index on the same automation server consumes disk and some working memory. Enable the vector store and enter its estimated stored size. The approximation does not promise that a large index fits in RAM; the database engine, dimensionality, index type and query rate can change the footprint substantially.

A local model adds inference to the host's orchestration work. Select the local small LLM option and enter parameter size for a rough quantized CPU-model allowance. Throughput can be too low even when the model fits in memory. Benchmark the actual model, quantization and token rate under concurrent load.

For GPU inference, use the separate RTX 4090 VPS VRAM calculator to compare device memory, weights, context cache and runtime overhead. It does not assume that a CPU-oriented agent server automatically includes a GPU or that the memory of multiple GPUs can be pooled without sharding support.

Run a representative acceptance test

Before ordering a VPS for AI agents, write down the busiest expected period, worker count, browser count, data volume and acceptable delay. Execute the same flows with representative input. Measure p95 completion time, queue depth, memory high-water mark, CPU utilization and disk growth, including execution history and logs.

Shared CPU can suit intermittent demand when observed latency remains acceptable. Sustained browser or local inference load may justify dedicated CPU. The tool automatically recommends dedicated scheduling at its workload thresholds even if Shared was selected as a preference.

Separate external limits from host limits

Record time spent waiting for model APIs, browser navigation, database operations and local processing separately. A slow third-party endpoint can inflate workflow duration while the processor is mostly idle. More cores will not remove an upstream rate limit; a queue, backoff policy or a change in the allowed request rate may address the actual constraint.

Consider how jobs recover after an interruption. A retry can perform the same action twice unless the workflow is designed for idempotency. Save state at meaningful boundaries and avoid holding large browser artifacts in memory longer than necessary. If sessions download files, budget temporary storage and remove completed artifacts according to your retention policy.

Security and operational work consume capacity too. Leave room for system updates, monitoring agents and encrypted backups, and restrict access to administration endpoints. The calculator models compute and storage, not security configuration or service availability. A single machine can fail, so recovery time and redundancy should be planned separately from the resource recommendation.

If the browser, database or vector index is provided by another service, do not include its local footprint as though it were running on the host. Account for connection latency, network transfer and the external service's own charges instead. Compare measurements over several representative runs: brief peaks and retries often matter more than an idle dashboard screenshot.

Provider rates are reference prices, excluding taxes and VAT; check the current region, transfer allowance, extras and inventory before ordering. Review our methodology and affiliate disclosure, compare the Docker sizer for a containerized stack, or use the VPS specs calculator for other workloads.

Estimate worker and dataset memory with the RAM calculator when the host has additional services.

FIELD NOTES / FAQ

VPS for AI agents: frequently asked questions

How many browser slots should I enter?

Enter the maximum number of Chromium sessions expected to run at once, then test their memory and CPU use on representative pages.

Does API-first inference need model weights on the VPS?

No. API-first inference runs remotely, though orchestration, browser work and API latency still affect the system.

What does a VPS for n8n in queue mode include?

The estimate includes Postgres and Redis along with the main instance and workers. A distributed deployment requires separate resource accounting.

Does a vector index fit entirely in memory?

Not necessarily. The estimate is approximate; index type, dimensions, data volume and query pattern change its working set.

Can this estimate local LLM throughput?

It estimates host resources for a small quantized CPU model but does not predict tokens per second. Benchmark the actual model and runtime.

When is dedicated CPU useful for agents?

Sustained CPU work, several active browsers or a consistently busy queue can benefit. Test throughput and latency for your own deployment.