AI Automation Playbooks

Free VPS for Hosting a Bot or Small App: What Actually Runs 24/7 at $0

31 October 2026 · Updated 28 November 2026 · 12 min read · by Yang Kai

Three honest routes to a free always-on server for a bot or small app — Oracle's Always Free VM, Google's free e2-micro and Render's free services — with card requirements, idle rules and spin-down trade-offs stated plainly.

Table inside: Bot Hosting Decision Table: Always-On VM vs Sleeping Service

Contents
  1. The short version
  2. Route 1: Oracle Cloud Always Free — a real VM that never sleeps
  3. Route 2: Google Cloud's e2-micro — small, permanent, easy to miss
  4. Route 3: Render free services — no card, but the service sleeps
  5. Bot hosting decision table
  6. Match the route to the kind of bot
  7. The routes that do not work
  8. Keeping a free bot alive
  9. How we researched this
  10. Verdict

A bot needs a machine that is awake when a message arrives at 3 a.m. That single requirement divides free hosting into two kinds: always-on virtual machines, and services that sleep when idle and wake on request. Both can cost nothing. They fail in different ways, and picking the wrong one means debugging a “broken bot” that was only ever asleep.

This guide covers the three routes that genuinely work at $0, verified on the providers’ own pages in November 2026: Oracle’s Always Free VM, Google Cloud’s always-free e2-micro, and Render’s free services. It also names the popular suggestions that do not work, because two of them are trial credits wearing a free tier’s clothes. Every figure below matches the corresponding entry in our free tier directory, where each offer carries its verification date.

The short version

Route Awake at 3 a.m.? Card to start The catch
Oracle Cloud Always Free Yes, always on Yes, verification only Idle reclamation; capacity errors in popular regions
Google Cloud Free Tier (e2-micro) Yes, always on Yes Tiny machine: 1 GB RAM, three US regions only
Render Free No — sleeps after 15 idle minutes No ~1 minute wake-up; free Postgres expires in 30 days

Route 1: Oracle Cloud Always Free — a real VM that never sleeps

Oracle’s Always Free tier is the largest permanent free server offer from a major cloud. Oracle states the Arm allowance as 1,500 OCPU hours and 9,000 GB hours per month on the VM.Standard.A1.Flex shape, which it translates for Always Free tenancies as 2 OCPUs and 12 GB of RAM. Alongside it you get up to two tiny AMD micro instances (1/8 OCPU, 1 GB each) and 200 GB of block storage in total, with 10 TB of outbound data a month. There is no expiry date on Always Free resources.

Note: older guides — and older versions of this article’s sources — describe 4 OCPUs and 24 GB. Oracle cut the Always Free Arm allowance in half in June 2026 and enforced the new limit from August 2026. Any guide still quoting the old numbers is out of date (figures checked Nov 2026 against Oracle’s Always Free resources page).

A Telegram or Discord bot, a small API and a database fit on that Arm instance at the same time, with room to spare. Three conditions decide whether this route works for you:

Capacity is the practical annoyance. The Arm shapes in popular home regions regularly return “out of host capacity” errors, and the fix is patience — retry over a few days, or try another availability domain in the region.

Route 2: Google Cloud’s e2-micro — small, permanent, easy to miss

Google Cloud’s Free Tier includes one always-free VM that most people overlook because it sits in the shadow of the $300 trial credit. The Free Tier gives you one non-preemptible e2-micro instance per month — 2 shared vCPUs and 1 GB of RAM — plus 30 GB-months of standard persistent disk and 1 GB of outbound data, in one of three US regions: us-west1 (Oregon), us-central1 (Iowa) or us-east1 (South Carolina). It has no end date, and it is separate from the trial.

Keep the two offers apart, because confusing them is the classic mistake. The $300 Welcome credit lasts 90 days; when it ends or runs out without an upgrade, the trial account closes and its resources stop. The e2-micro allowance is the permanent part. A card is required for the account, and 1 GB of RAM is a real constraint: a lean bot in Python or Node fits; a bot plus a database plus a monitoring stack does not. The 1 GB of monthly outbound data is the second constraint — a text bot will never notice it, but a bot that sends images, files or media replies can spend it quickly, and traffic past the allowance is billed at standard rates on a paid account. For a single-purpose, text-based bot that must simply never sleep, though, this is the lowest-drama route on the list.

Route 3: Render free services — no card, but the service sleeps

Render’s free plan runs real server code — Node, Python, Rails — without any card. A workspace gets 750 free instance hours per month, shared across its free web services, and a free web service has 512 MB of RAM. The trade is explicit in Render’s docs: a free web service spins down after 15 minutes without inbound traffic, and the next request waits about a minute while it spins back up. The filesystem is ephemeral, so anything the bot writes locally is lost on a restart.

For many bots that trade is acceptable. A webhook-driven bot wakes on the first message after a quiet spell; the sender sees one slow response, then normal speed. For a bot that polls an API on a schedule, holds a persistent connection (a Discord gateway bot, for example), or must answer instantly, the sleep model breaks the experience. Render’s free Postgres also expires 30 days after creation, with a 14-day grace period to upgrade before deletion — treat it as scratch space, or keep the bot’s real state somewhere that does not expire, such as a free-tier database elsewhere.

Bot hosting decision table

Question Oracle Always Free Google e2-micro Render Free
Awake at 3 a.m.? Yes, always on Yes, always on Sleeps after 15 idle minutes
Credit card to start Yes (verification only) Yes No
What you get A full Linux VM, 2 OCPU / 12 GB RAM Arm A full Linux VM, 1 GB RAM A managed web service from a repo
Setup effort You administer the server You administer the server Push a repo, pick Free
Database included Run your own on the VM Run your own, within 1 GB RAM Free Postgres, expires in 30 days
Main failure mode Idle reclamation; capacity errors at setup Out of memory; US regions only Cold-start delay; 750-hour monthly cap
Best for Bots that must answer instantly, with room to grow One small bot, set up once Demos, webhooks, low-traffic bots

Match the route to the kind of bot

The table above is the summary; the deciding factor underneath it is how your bot receives work. Webhook bots — a Telegram bot is the standard example — sit idle until the platform calls your URL. They tolerate Render’s sleep, because the incoming webhook is also the wake-up call. Polling bots check a source on a timer: an RSS watcher, a price alert, a queue processor. They need a machine that is awake on their schedule, not someone else’s, which rules the sleeping route out. Connection bots hold a live connection open — a Discord gateway bot, a chat client, anything on a persistent WebSocket. Sleep kills the connection, and hosts that restart services at will break it too; these belong on a VM from day one.

RAM follows the same logic. A webhook bot that formats a reply and calls an API lives happily in 512 MB. Add a headless browser, an image pipeline or an in-process database and the e2-micro’s 1 GB goes quickly — that is the point where Oracle’s headroom stops being a luxury and becomes the reason the bot stays up.

The routes that do not work

Four popular suggestions fail the 24/7 test, for four different reasons:

Keeping a free bot alive

Whichever route you choose, three habits keep it running. Keep the bot’s state exportable — a database or file you can copy out — so a reclaimed VM or an expired free database is an inconvenience, not a loss. Add an external uptime ping to a health endpoint; on Oracle it also keeps the instance visibly active, while on Render it can reduce how often the service sleeps, at the cost of instance hours. And protect the bot’s credentials the way you would any automation’s: tokens in environment variables, never in the repo — the full discipline is in automation workflow security.

On a VM you administer, two setup chores decide whether the bot survives its first month. Keep the system updated — an unpatched free server is still a server on the public internet — and open your bot’s ports in both places Oracle makes you manage: the cloud console’s security rules and the operating system’s own firewall. Mismatched firewall layers are the most common reason a correctly deployed bot on Oracle never answers. Set the process to restart on boot and on crash (a systemd service is enough); a VM that reboots for maintenance should bring the bot back without you.

Write down, in the repo, which free tier the bot lives on and what its limits are. Free tiers change — Oracle halved its Arm allowance in 2026 with a few months of enforcement notice — and the note tells future-you what to check first when something stops.

How we researched this

Desk research, November 2026. Every limit above comes from the provider’s own documentation or pricing pages: Oracle’s Always Free resources page, Google Cloud’s Free Program documentation, Render’s free-tier docs, and AWS’s Free Tier pages for the post-July-2025 plan (all checked Nov 2026). No provider paid for placement, and no figure here rests on a third-party roundup where the vendor’s own page states the number.

Verdict

If the bot must answer instantly and you have a card, start on Oracle — the setup work transfers unchanged to a paid VPS later, which is the real value of starting on a real server. If 1 GB is enough and you want the quietest possible setup, take Google’s e2-micro. If you have no card, Render works, provided your bot can tolerate a one-minute wake-up. Whichever route you pick, decide using the failure mode you can live with — reclamation, a memory ceiling, or a cold start — because at $0 the choice is never between a good option and a bad one; it is between three different ways of being woken up by a problem. Students should also check free VPS for students, and the same always-on thinking applied to agent infrastructure is covered in hosting MCP servers.

FAQ

Is Oracle’s free VPS really free forever? The Always Free resources have no time limit — Oracle’s own page says they are available for an unlimited period. The conditions are the card check at sign-up, the home-region rule and idle reclamation, all covered above. The allowance itself can shrink, as it did in June 2026, so “forever” applies to the programme, not to any specific size of machine.

Can I host a Discord or Telegram bot on Render free? A webhook-driven Telegram bot, yes, with the spin-down caveat: after 15 quiet minutes the service sleeps, and the next message takes about a minute to answer while it wakes. A Discord bot that holds a persistent gateway connection is a poor fit, because the connection dies every time the service spins down.

Why does a “free” VPS need my credit card? Identity verification. Oracle and Google use the card to confirm a real person and enforce one free account per person, and both state that Always Free / Free Tier usage within the limits is not charged. If the card is a hard blocker, Render free needs no card at all.

How much RAM does a small bot actually need? Most single-purpose bots run comfortably in 512 MB–1 GB, which is why both the e2-micro and a Render free service can hold one. Oracle’s 12 GB is far beyond bot scale; the constraint there is rarely the hardware. The fuller picture of student and starter credits is in free cloud credits for students and startups.

What happens when my bot outgrows free? Move it to a small paid VPS. If you started on Oracle or the e2-micro, the bot already runs on a plain Linux server, so the move is a copy, not a rewrite — which is the strongest argument for starting on a real VM rather than a sleeping service.

Category: AI Automation Playbooks · Tags: #free-tier #hosting #automation

Next step: this article is part of Automation guides, which covers the full topic from first setup to advanced use.

Related guides