How do I host the app Claude Code built?
The short answer
You need a host that runs the server part of your app, not just its pages, plus a database and a safe place for your keys. Pick a host, give it the code, set the keys and the database address, and run the production build. With Rehome you say “deploy” in Claude and it does those steps for you.
When Claude Code builds an app on your computer, it usually has three parts: the pages people see, a server that does the work, and a database that remembers things. Running npm run dev starts all of that on your machine. Hosting means starting the same parts on a computer that is always on and reachable at a web address.
What your app needs online
- Somewhere to run the server. If your app only has pages and no backend, any static host works. If it has an API, sign-in or a database, the host has to run your server code too.
- A database. If your app saves anything, it needs a database the server can reach. A file-based database such as SQLite on your laptop won’t come along on most hosts.
- Your keys, stored safely. API keys and passwords live in environment variables (“env vars”). They must be set on the host, never committed to your code.
- A production build. The dev server is for your machine. Online, the host runs the build command and then the start command.
Steps on any host
- Check what Claude built. Ask Claude: “What framework is this, what’s the build command, what’s the start command, and which environment variables does it read?” Write the answers down.
- Make sure it builds. Run the build command locally. If it fails on your machine, it will fail online too.
- Choose a host that fits. Static pages: almost any host. A server plus a database: a host that runs servers and gives you Postgres, or a server host plus a separate database provider.
- Create the database and copy its connection address (usually called
DATABASE_URL). - Upload the code. Most hosts pull from a GitHub repository. Some take an upload from a command-line tool.
- Set the environment variables in the host’s settings: the database address and every key from step 1.
- Deploy and open the address. If something breaks, read the build log first, then the app’s output. Our guide on apps that work locally but not online covers the usual causes.
How Rehome does it
Rehome is built for this exact moment. Add the Rehome plugin to Claude Code once:
claude plugin install rehome --marketplace getrehome/claude-plugins
Then say “deploy my app”. The first time, Claude sends you a link to sign in to Rehome.
- Claude uploads the project from your conversation. No GitHub or terminal needed.
- Rehome works out how to build and run it, whether it’s Next.js, Vite, Express, Django, FastAPI, Go or a static site, and checks that it starts. If it can’t tell, it asks Claude to add a Dockerfile, which runs any language.
- If your code uses a database, Rehome creates Postgres and connects it for you.
- If your app needs keys, Claude sends you a link with the key names already filled in. You paste the values on Rehome’s page, not in the chat.
- Claude replies with the live address and a plain-English summary.
In a real deploy, going from “put this online” to a live address took about 15 seconds. Changes can go to a preview address first, and production changes only when you tell Claude to ship it.
The free plan covers 1 full-stack app and 10 static sites, and allows commercial use. See pricing for the paid plans.
Questions
Can Claude Code deploy my app by itself?
Claude Code can run the commands for any host whose command-line tool or MCP server it has. You still need an account with that host and somewhere for your keys. With the Rehome plugin installed, Claude calls the deploy tool directly and replies with the live address.
Do I need GitHub to host my app?
Not with every host. Many hosts deploy from a GitHub repository, so you would push your code there first. Rehome uploads the project straight from your conversation with Claude, so GitHub is optional.
Is there a free way to host a Claude Code app that has a database?
Yes. Rehome's free plan covers 1 full-stack app with a 500 MB Postgres database and 1 GB of files, plus 10 static sites, and allows commercial use. Some other free tiers ban commercial use or pause the database when nobody visits.