AI Agent Hosting Under Five Dollars

Enter a monthly budget, fixed charges, compute rate, workload minutes and number of runs. Find the maximum affordable run count.

Price a month of actual runtime

E2B charges for the time a sandbox is running. The published Hobby defaults are two vCPUs at $0.000028 per second and 4 GiB of memory at $0.000018 per second, for a combined $0.000046 per second. Count the time the sandbox waits for work as well as the time spent executing it. Treat the one-time usage credit separately when estimating a recurring bill.

In an illustrative month with 30 jobs that each keep a sandbox running for 30 minutes, 54,000 seconds of compute and memory cost about $2.48 before credits and separate model charges. The same rates applied to 730 hours would imply $120.89. That second calculation shows the cost of continuous usage at those unit rates. Hobby sessions are capped at one hour, so they cannot provide one uninterrupted session for the month.

A low advertised compute rate does not establish the total monthly bill. Put fixed fees and idle billed time into the appropriate inputs.

Pricing | E2B — The AI Agent Cloud

Measure what happens after idle time

Railway Free is documented at $0 per month with $1 of monthly usage credits and a limit of 0.5 GB of RAM per service. Its Free services sleep after a few minutes without outbound traffic and wake on the next request. Consider it for a small request-driven service. For Railway Hobby, get the current base fee and overage units from the pricing page or checkout before treating the included usage credits as evidence that your total fits under $5.

Deploy the same small worker on each candidate. Write a test checkpoint, let the service go idle, then send a request and see whether it reads the checkpoint and finishes within your deadline. If the real job must start on a timer, test that path independently. A successful HTTP wake-up only establishes that an incoming request can start the service.

Short, frequent jobs and long-lived listeners have different cost units. Record the billing clock that actually stops when your work finishes.

Pricing | Railway

Put a price on VPS ownership

Compare DigitalOcean Droplets and Hetzner Cloud at the same RAM, storage, region, and backup requirements you used for the hosted candidate. Hetzner's published Regular Performance entry price is €5.49 per month excluding VAT. For a US-dollar cap, use a checkout quote that reflects the selected instance, applicable tax, and payment currency. Obtain the equivalent quote for DigitalOcean directly and add any storage or backup charges your recovery test requires.

Track hands-on work separately from the hosting bill. In an illustrative month, a $4.20 server plus $0.60 for backups totals $4.80 in hosting. Twenty minutes of operator time at an assumed $30 per hour adds $10 in labor. If nobody can restore the worker and its checkpoint from backup within your recovery window, the VPS fails the operating test even when its invoice fits.

Cloud-hosting provider for developers & teams

Sources