BUN HOSTING
Bun Hosting Deployed From Git
Bun hosting on xCloud runs your Bun app straight from its Git repository. xCloud spots bun.lock, builds the app in a Bun container on an NGINX server, and puts your domain and free SSL in front of it. It suits Hono, Elysia and other Bun APIs. Managed servers start at $5/month; your own first server is free.
Deploy a Bun app- Bun detected from your repo
- No Dockerfile to write
- Your server or ours
- Free SSL and staging domains

WHAT HAPPENS ON DEPLOY
How Does xCloud Run a Bun App?
xCloud reads the files at the root of your repository and does four things, with no Dockerfile from you.
Detects Bun
A bun.lock, bun.lockb or bunfig.toml file at the root tells xCloud the app uses Bun. It shows Bun, or Elysia, as the detected framework.
Installs Packages
With bun.lock it runs bun install --frozen-lockfile, so you get the exact versions you tested. Without one it runs bun install.
Builds If Needed
If package.json has a build script, xCloud runs bun run build. No build script, no build step.
Starts the App
It runs your start script. With none, it runs main or module from package.json, then index.ts, then src/index.ts.
STARTER REPOS
What Does a Bun Repo Need for xCloud?
A lockfile and an entry point. Your app listens on port 3000, the port xCloud routes your domain to.
Hono on Bun
bun.lockpackage.jsonsrc/index.ts
src/index.ts
import { Hono } from "hono"; const app = new Hono(); app.get("/", (c) => c.text("Hello from Bun on xCloud")); export default app; // Bun serves it on port 3000No start script needed: xCloud runs src/index.ts. Keep Hono's Node.js adapter (@hono/node-server) out, so the app runs on Bun.
Elysia on Bun
bun.lockpackage.jsonsrc/index.ts
package.json (scripts)
"scripts": { "start": "bun src/index.ts" } // src/index.ts import { Elysia } from "elysia"; new Elysia().get("/", () => "Hello from Elysia").listen(3000);Elysia is built for Bun, so xCloud always uses the Bun container for it. A start script makes the entry point explicit.
BUN RUNTIME OR PACKAGE MANAGER
Does My App Run on Bun or Node.js?
A Bun lockfile can mean two things. xCloud checks which one your app needs and deploys it that way.
| Deploys as Node.js, installs with bun | Runs on Bun, in the Bun container |
|---|---|
| Next.js, Nuxt, Vite and other Node.js framework apps that only use bun to install packages. | Apps whose start script runs bun, Elysia apps, and Hono apps without the Node.js adapter. |
| A start script that runs node, for example node server.js. | Server apps such as Express or Fastify with no start script, so xCloud can't tell how to start them with Node.js. |
| Node.js version, PM2 and the usual Node.js settings under Advance. The form shows Package manager: bun (found in the repository). | The official Bun image (oven/bun:1), a generated Dockerfile and folders kept between deploys. See how each case deploys |
FRAMEWORKS
Which Bun Frameworks Can I Host?
Anything that starts from a script or an entry file. These are the ones xCloud recognises by name.
Hono
Starts from src/index.ts or your start script. The default export is served on port 3000.
Elysia
Detected by name and always run on Bun. Listen on port 3000.
Express, Fastify, Koa, Hapi
With a start script that runs node they deploy as Node.js apps. With no start script, and nothing else that tells xCloud how to start them with Node.js, they run on Bun from the entry file.
NestJS
With its usual start script it deploys as a Node.js app and installs with bun. A start script that runs bun puts it on Bun.
Next.js, Nuxt and Vite
Deploy as Node.js apps, with bun installing the packages.
Plain Bun
A Bun.serve app in index.ts or src/index.ts, with no framework at all.
HOW TO DEPLOY
How Do You Deploy a Bun App on xCloud?
Four steps in the dashboard, on any NGINX server in your account.
Open Deploy via Git
Open your server, click New Site, then the Deploy via Git tab. Paste a public repo URL or pick a private one.
Check the Detected Stack
Docker container is selected with Bun or Elysia as the framework. The branch and port are filled in for you.
Add Your Domain and .env
Start on a free staging domain or add your own. Paste your .env values. Don't add PORT: xCloud sets it.
Click Deploy
xCloud clones the branch, builds the container and starts it. For a connected repo, tick Enable push-to-deploy (webhook) to redeploy on every push.
YOUR SERVER OR OURS
What Does Bun Hosting Cost on xCloud?
Run as many Bun apps on a server as it has room for. You pay for the server, not per app.
xCloud Managed
We supply the server, set it up and keep it patched. From $5/month, with backups and 24/7 support.
Self-managed
Connect a VPS from any provider. Your first server is free for up to 10 sites, then $5 a server a month.
GOOD TO KNOW
What Should You Know Before You Deploy?
Bun apps run in a container on your server. These are the rules that come with that.
NGINX Servers Only
OpenLiteSpeed servers can't run containers. Docker is installed on the first deploy if needed.
Port 3000
The Bun container listens on port 3000. Bun and Hono use it by default; set it in .listen() for Elysia.
Keep Data in /app/data
Files outside the kept folders can be lost on rebuild. Add up to 5 folders before you create the site.
Not Every Package Runs on Bun
Bun aims for Node.js compatibility, but some npm packages, such as native add-ons, may not work. Test your app on a free xCloud staging domain before you point your live domain at it.
Hear what people are saying about us
See why agencies, developers, startups, and growing businesses choose xCloud to power their projects.
I've been very happy with xCloud. It means flexibility of servers. Great tech stack.... because, like others, sites I move over pretty much always speed up compared to prior host. And, the speed of development of the xcloud software is also great. Sometimes, other hosts feel stagnant.
David RisleyCame from cloudways then to runcloud then to xcloud. Looks like I'm staying here.
Gerson ElI used to manage my own servers, but got tired of that and moved to Cloudways, which was okay (better than doing it all myself.) I got the lifetime launch deal when xCloud was first available, and have since moved all of my sites and servers over here. It didn't do much when they first launched; basically just WordPress. Since then, there have been regular and frequent updates with new features, bug fixes, and security hardening. They are very responsive to feedback. My sites all sped up considerably even on the same hardware when I moved from Cloudways to xCloud, which granted was a few years ago now. I currently run 1 Litespeed server, 1 NGINX server, 1 Docker server, and 1 test server that I use for whatever I want to be testing without messing with one of my production servers.
Blaine MooreI had 150 sites on cloudways and am in the process of moving them to xcloud. Much faster and better priced.
Dan SpinozaI've recently taken all of my Vultr-hosted sites and gotten rid of cPanel for them to substitute it with xCloud. I have to say, I'm really impressed with xCloud so far! The interface is definitely the standout feature for me.
Tony LewisI too have moved over to xCloud. It's pretty sweet. One click n8n and uptime Kuma apps
John ApertureThanks to the xCloud team for lining up and rolling out all of the PHP updates. Fantastic response.
David McCanI’ve been with them since their first month or so. I’ve been hosting websites since their 1990s and I have used many companies. My last move was from Cloudways and for high traffic sites, Rocket net. Wow, huge improvement in speed. And,in the last year amazing features have been added. I really could compliment them all day.
Jerry GapinskiHow Advanced Web Strategies Saved Over $2,000 & Recovered 56 Hours per Month Managing 70+ Client Websites
Gary MoodyI switched to xcloud from a lifetime deal on gridpane that I could have used for free forever.. and I am super happy I did
Brandon NollHow Newman Web Solutions Ensured Perfect Uptime and Seamless Scaling For 120+ WordPress Sites with xCloud
Lori Newmanxcloud is doing things the right way. has all the tools i needed and more im yet to discover!
Alexios GiannatosCame from runcloud. Tried xcloud and never came back.
Karl FanegaI love that I’m able to install one-click apps on my servers alongside Wordpress sites and other websites as well. 🙂 xCloud has come a long way!
Luigi DelicanoxCloud gave me what no other hosting platform could: the flexibility of a VPS with the convenience of managed WordPress. As a solo founder running an entire business on one server, that combination is an important unfair advantage.
Jorge de los Reyes MartínezSuper happy with xCloud. Highly recommend it from experience. 🙌
Mustapha MarbouhxCloud is like having an expert server team on call — without the big agency costs. It's given me back my time and given my clients peace of mind. Highly recommended for freelancers and small teams who want reliable performance and security.
Dumitru ButucelI came from Cloudways and won't go back. Highly impressed with xCloud. Glad I gave them a chance.
Jared McDowellI too switched to xcloud from a lifetime gridpane plan. Best decision ever. So much control. I was even able to build my own site management system too using their api.
Donald McGuinnYou can rest assured that xcloud offers excellent support and has a long lifespan. I find their growth rate truly amazing.
Quynh Nhu Nguyen ThiHow Kevin Heinrichs Cut Hosting Costs by 84% While Running WooCommerce & Node.js Sites Efficiently
Kevin HeinrichsI've been with runcloud for the last 3 years. However, after trying xcloud for the last month, I'm switching over. They are on a roll with their setup.
Kevin PinedaBun Hosting
Feel free to contact us with any questions or concerns you may have
Can I host a Bun app on xCloud?
Yes. Push a repository with bun.lock, bun.lockb or bunfig.toml and deploy it from the Deploy via Git tab on an NGINX server. xCloud detects Bun, builds the app in a Bun container and serves it on your domain with free SSL.
Does xCloud support bun.lock?
Yes. With bun.lock, xCloud installs packages with bun install --frozen-lockfile, so production gets the versions in your lockfile. The older binary bun.lockb and bunfig.toml are detected too; without bun.lock, xCloud runs bun install.
Do I need a Dockerfile to host a Bun app?
No. xCloud generates the Dockerfile from the official Bun image. If your repository has its own Dockerfile or compose file, xCloud builds from yours instead.
What is the difference between Bun and Node.js hosting on xCloud?
A Bun app runs on the Bun runtime in a container on port 3000. A Node.js app runs natively with PM2 and a Node.js version you choose. If your Next.js, Nuxt or Vite app only uses bun to install packages, xCloud deploys it as a Node.js app and installs with bun.
Can I use Hono or Elysia?
Yes. A Hono app that exports its app from src/index.ts starts with no extra setup. Elysia is detected by name and always runs on Bun; add a start script such as bun src/index.ts and listen on port 3000.
Is Bun open source?
Yes. Bun is open source under the MIT licence (github.com/oven-sh/bun, as of December 2026).
How much does Bun hosting cost?
xCloud Managed servers start at $5/month, server included. On your own VPS, the first server is free for up to 10 sites, then $5 a server a month; you pay your provider for the VPS. Run as many Bun apps on a server as it fits.
Why does my deploy say it cannot find a Bun entry point?
xCloud found no start script, no main or module in package.json, and no index.ts or src/index.ts. Add one of them, push, and deploy again.