Deploy a Claude Code app to a live HTTPS URL
Deploy a Claude Code app to a live HTTPS URL: describe it, ask for a preview to review, then make it live. Works with Cursor and Codex too.
Tell Claude Code what you want, and it builds the app and puts it on xhostd. Ask for a preview address to review it, and when it looks right, tell Claude Code to make it live on HTTPS.
The same steps work with Cursor, Codex, and other AI coding agents that connect to xhostd.
Who this guide is for
You use Claude Code, and you want your app online at a real address. For example:
- a booking app for a hair salon, where customers pick a time and the app saves it in Postgres
- a portfolio site that you want on your own domain
- a small API that your mobile app calls
What you need
- An xhostd account. The free plan needs no payment method, and your agent can also open an account for you.
- Claude Code, or another supported agent, connected to xhostd once.
You don't need a server, a certificate, or the app's runtime on your computer.
How it works
- Tell Claude what you want. Describe the app in your own words: who uses it, what it does, and what it needs to remember.
- Claude builds it. Claude Code writes the code and chooses how the app runs.
- Ask for a preview. Ask Claude Code to deploy the app to a preview channel first. xhostd gives the preview its own URL. A channel is one running copy of your app, with its own address and database, so a preview doesn't affect production. Read Preview and staging environments on xhostd.
- You review. Open the preview URL and try the app. Ask Claude Code for changes until it looks right.
- Tell Claude to make it live. Claude Code deploys the same version to the
prodchannel, your production environment, on an HTTPS address.
To use your own domain, ask Claude Code to attach it. You add two DNS records at your domain registrar, and xhostd sets up HTTPS for it.
What happens behind the scenes
xhostd gives your agent what a running app needs: hosting that keeps the app up, HTTPS with certificates that xhostd renews, a Postgres database when the app needs one, storage for uploaded files, and separate channels for production and previews. Before xhostd sends visitors to a new version, it checks that the version answers.
If something goes wrong
- A release breaks something. Claude Code can deploy an earlier version again. That rolls back the code, not the data in your database. Read Postgres backups and recovery on xhostd to learn what xhostd saves before each deploy.
- A deploy fails. Ask Claude Code to read the logs and fix the cause.
Next step
When you're ready, connect Claude Code to xhostd. Check the pricing page for what each plan includes.