An app you built with Claude Code, Codex or Gemini CLI that runs on your own computer only works at localhost. For anyone else to use it, it has to live on a server that stays on around the clock, with a real address and SSL. There are three practical ways to get it there: let the AI you're already using deploy it over MCP, zip the project and upload it yourself, or push it to GitHub and have the host deploy every push. RoamerHost's Vibe Coding Hosting supports all three, and you can mix them on the same project.
Whichever you pick, the same few things need fixing before launch: the app has to listen on the port the host gives it, secrets move into environment variables, and files and databases that must persist go somewhere permanent. This guide starts from "it works on my machine" and covers what deploying through MCP actually means, which tools we have tested, and where environment variables and databases usually go wrong.
Setup details for Claude Code, Codex and Gemini CLI come from each vendor's official documentation, checked on November 23, 2026. These tools change quickly, so the official pages take precedence.
What's missing between "runs locally" and "live"
AI coding tools run your app on your own machine by default: a dev server, a SQLite file inside the project folder, API keys in a .env file. That's fine locally, and it's exactly what breaks first on a server. Four issues come up again and again.
The first is the port. Local apps often hard-code 3000, 5000 or 8000, while a host tells the app which port to use through the PORT environment variable, and the app must listen on 0.0.0.0; listening only on 127.0.0.1 means nothing outside can reach it. The second is where files get written. On our servers the code folder is read-only while the app runs and is replaced on every deploy, so uploaded images and SQLite files belong in the persistent /data folder. The third is .env, which usually isn't uploaded with the code and shouldn't be; secrets are set on the host separately. The fourth is the database: you need to decide where production data lives and how existing data moves over.
You don't have to make these changes by hand. Tell your AI, which handles this kind of edit well. The decisions that are really yours are which kind of host to use and whether to let the AI deploy for you. For the differences between host types, see where to host a vibe-coded app.
What "let the AI deploy over MCP" actually means
MCP (Model Context Protocol) is a shared standard for connecting AI tools to outside services. The service wraps what it can do into individual tools, and once an AI tool connects, it can call them during a conversation. Vibe Coding Hosting exposes an MCP endpoint with everything a deploy needs: choosing the language and settings (configure_project), creating a database (create_database), uploading code (create_upload), deploying (deploy), checking the result (get_deployment), reading error logs (get_logs), rolling back (rollback) and more.
In practice it looks like this. You tell Claude Code "deploy this project to RoamerHost." It checks whether the project is Next.js or FastAPI, sets the language through a tool, creates a database if needed, packages the code on your machine, uploads it to a one-time URL the platform issues, and triggers the deploy. If the build fails, it reads the deployment log, notices for example that DATABASE_URL is missing, creates the database, adjusts the code and deploys again. The code bundle goes straight to the one-time URL and never passes through the AI model, so a larger project won't burn through your conversation allowance.
One point needs to be clear: none of these tools runs arbitrary commands on the server. The AI never gets a shell on the host and cannot run rm, curl or install packages there at will. Install and start commands run only during deploys and restarts, inside your own project's container, with output going to the deployment log. What the AI can do is exactly what's on the tool list.
Which tools we have actually tested
From our own test records: Claude Code connected successfully; Codex successfully called the tools; Gemini CLI connected successfully, though we only tested the connection and did not have the model call tools. Cursor and Antigravity document support for remote MCP servers with fixed headers, so they should work, but we haven't tested each one. The web versions of ChatGPT and Gemini can't connect to our MCP endpoint. Code they produce can be downloaded and uploaded as a ZIP, or pushed to GitHub.
One more thing about Gemini CLI. According to its official documentation, Gemini CLI was replaced by Antigravity CLI on June 18, 2026 for unpaid-tier and Google One users. The official quota page still lists Gemini CLI usage for paid API keys, Vertex AI and Gemini Code Assist business plans. Check the official pages for which group your account falls into.
How to connect each tool
First create an MCP token (it starts with rhm_) on your Vibe Coding Hosting project page, then add it to your tool. Claude Code takes one command:
claude mcp add --transport http roamerhost https://roamerhost.com/mcp --header "Authorization: Bearer YOUR_TOKEN"
Per Claude Code's documentation, this is stored in your personal config and applies only to the current project by default. Adding --scope project writes it to .mcp.json in the project root, a file meant to be committed and shared with your team, so don't use that scope for a config that contains a token, or the token ends up on GitHub. Run /mcp inside Claude Code to check the connection.
Codex reads ~/.codex/config.toml. OpenAI's documentation says the Codex CLI, the IDE extension and the ChatGPT desktop app share this file:
[mcp_servers.roamerhost]
url = "https://roamerhost.com/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }
If you'd rather not keep the token in the file, the docs also offer bearer_token_env_var to read it from an environment variable on your machine. Gemini CLI, per its documentation, uses ~/.gemini/settings.json, where the field for a Streamable HTTP endpoint is httpUrl (url is for the older SSE transport):
{
"mcpServers": {
"roamerhost": {
"httpUrl": "https://roamerhost.com/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
Once connected, the platform hands the AI its deployment rules first: listen on PORT, store files in /data, keep secrets in environment variables. Most of the time, "deploy this to RoamerHost and fix anything the logs show" is all you need to say.
How much access to grant
Tokens carry three permissions: read, deploy and direct database writes. The first two are on by default; database writes are off until you enable them when creating the token. Tokens expire after 90 days and can be revoked at any time. Be aware that an AI with deploy permission can change code and build commands, delete files in /data (permanently), roll back and change the domain, and read permission is enough to query and export the database. Environment variable tools return names only, never values. Give tokens only to tools you trust, and revoke them when you're done.
What happens on the server during a deploy
Whether the AI calls deploy or you click Deploy in the dashboard, the process is the same. The platform detects the project type (package.json means Node.js, requirements.txt means Python), installs packages from the lockfile, builds, starts the new version alongside the old one, waits for the home page to respond and pass a health check, switches visitors over, and only then stops the old version. If any step fails, the old version stays live and the reason goes into the deployment log.
Successful deploys are kept, and you can return to any of the last 3 with one click. The database is not rolled back with them: if the new version ran a migration that changed tables, the tables stay changed after a rollback. Before schema changes, have the AI call db_snapshot; if you set your migration command as the release command (for example npx prisma migrate deploy or php artisan migrate --force), the platform also takes a snapshot before running it.
Uploaded node_modules and .venv folders are discarded and reinstalled on the server from the lockfile. That's deliberate: native packages compiled on a Mac often fail on a Linux server, and reinstalling avoids the problem. You don't need to clean them out before packaging.
If you'd rather not let the AI deploy: ZIP and GitHub
Some people prefer to press Deploy themselves, and some companies don't allow handing tokens to AI tools. In that case the AI just writes the code and you handle the launch.
A ZIP is the most direct route: zip the project, upload and extract it in the dashboard's file manager, and click Deploy. Leave node_modules out; even if a .env file is in the ZIP, it won't be deployed. For small text changes later, edit files in the file manager and deploy again.
GitHub suits people who already let Claude Code or Codex commit and push. Paste the repository URL on the project page; for a private repo, add the deploy key the platform generates to the repo's Deploy keys without write access. We never need your GitHub password. After that, every push to the chosen branch is pulled and deployed automatically. Add the webhook shown on screen for instant updates; without it, the platform checks every 5 minutes. Once GitHub is connected, GitHub is the source of truth, and files edited directly on the host are overwritten by the next sync. The steps are the same as in deploying a Lovable app from GitHub. Here's how the three compare:
| Method | Best for | How updates go live | Watch out for |
|---|---|---|---|
| AI deploys over MCP | People who already code with Claude Code, Codex or Gemini CLI | Ask the AI to deploy again | The token grants deploy access, so revoke it when done; no remote command execution |
| ZIP upload | Checking every release yourself, or when all you have is a code bundle | Upload again, or edit online and deploy | Leave package folders out; .env is never deployed |
| GitHub auto-deploy | Code already on GitHub, versioned with commits | Push to the linked branch | GitHub wins after connecting; one repo and one branch per project |
Environment variables: the usual reason a site breaks after launch
Your local .env isn't deployed, so the first post-launch error is often "missing key." Set environment variables on the project page or have the AI use set_env. They're stored encrypted and never shown again after saving. Redeploy after changing them so the app picks them up.
One group is the exception: public variables starting with VITE_, NEXT_PUBLIC_, REACT_APP_ and similar are pulled from .env into the build automatically. They're bundled into the frontend by design and visible to anyone with browser dev tools, so OpenAI or Stripe secrets and database passwords must never use those names. AI tools sometimes take a shortcut and call an API from the frontend with a NEXT_PUBLIC_ key; ask yours to check for that before deploying and move the call to the backend.
A few values the platform won't generate for you: Laravel's APP_KEY and APP_ENV=production, Django's SECRET_KEY, Node's NODE_ENV. Server time is UTC, so handle local time in your code or set TZ. Every time the app starts, the platform passes RH_SITE_URL, the site's current public address (your own domain once it's connected). Read it whenever the app needs a full URL instead of hard-coding one.
Databases: SQLite, PostgreSQL or MariaDB
If your app uses SQLite locally and only you or a few people use it, you don't have to switch. Put the database file in /data and it survives every deploy. If you expect many users writing at once, or the code was written for PostgreSQL or MySQL, create a database.
Databases are off by default. Turn one on in the dashboard or have the AI call create_database, choosing PostgreSQL 16 (with pgvector) or MariaDB 11.4 (MySQL-compatible); one per project, and the type can't change afterward. Connection details arrive as DATABASE_URL plus DB_HOST, DB_USERNAME and friends, and the first time you need to redeploy for them to appear. For security, only that project's app can reach the database; you can't connect from your own computer with a database client.
To bring over local test data or production data from another host, use import: the AI calls create_db_import to get a one-time URL and uploads a .sql or .sql.gz file. The platform takes a snapshot first, and the data never passes through the AI model. The limit is 95MB per import over MCP and 32MB through the dashboard; for anything larger, email us and we'll help. Having the AI take or restore snapshots requires the database write permission.
Apps that aren't a good fit
Vibe Coding Hosting accepts apps that are opened by URL and served over HTTP. Programs that only run on a schedule with no web page, or bots like Discord that hold a constant connection, aren't a fit. A LINE bot that receives messages by webhook is fine; see how to deploy a LINE bot. Also unsupported: Dockerfiles and Docker Compose, other languages such as Go, Rust and Java, multiple services in one project, always-on background workers, your own Redis or MongoDB, and GPUs. Each plan hosts one site with at most one custom domain, and multiple subdomains aren't supported. If your project needs any of these, look for a service that offers them.
If what you built with AI is really a company site, a blog or an online store that you'll mostly update with new text and products, WP × Roamer AI will make day-to-day changes much easier.
How to choose
If you already code with Claude Code, Codex or Gemini CLI, can read a deployment error and ask the AI to fix it, and want it to deploy as soon as it's done: choose Vibe Coding Hosting Basic, from NT$299/mo (NT$3,588 billed annually), and connect your AI with a token from the project page. If you'd rather control each release yourself, use ZIP or GitHub on the same plan. If you're not comfortable with this yet and want an AI on the platform to build and change the app for you: choose Vibe Coding Hosting Pro, NT$999/mo on average (billed annually), which adds Roamer AI. New projects use a fixed Laravel and MariaDB stack, and Roamer AI does its best with code you bring in, without guarantees. Both plans include 10GB of storage and a 30-day refund guarantee; see Vibe Coding Hosting plans and pricing.
FAQ
Q: Can Claude Code deploy my app for me?
Yes, as long as it has a host it can connect to. Create a token on your Vibe Coding Hosting project page, add it with claude mcp add, then say "deploy this to RoamerHost." It sets the language, creates a database, uploads and deploys, and reads the logs to fix failures. Claude Code is one of the tools we've confirmed connects successfully.
Q: Will an AI deploying over MCP run random commands on the server?
No. Our MCP endpoint has no remote command tool; the AI can only use the listed tools, such as deploy, read logs and change settings. Install and start commands run only inside your own project's container during deploys. An AI with deploy permission can still change code and delete files in /data, so give tokens only to tools you trust and revoke them afterward.
Q: I use Cursor or Antigravity. Can I connect?
Their official docs support remote MCP servers with fixed headers, so it should work, and setup examples are on the service page. We haven't tested each of them yet. The tools we have tested are Claude Code, Codex and Gemini CLI.
Q: The app works locally but keeps failing the health check after deploy. Why?
Most often it isn't listening on 0.0.0.0 and the PORT environment variable. Next most common: a missing framework secret such as Laravel's APP_KEY, or writing files inside the read-only code folder. Have the AI read the deployment and error logs; the old version stays live in the meantime.
Q: Can the ChatGPT or Claude web app deploy through MCP?
No, the web versions can't connect to our MCP endpoint. Download the code they produce and upload it as a ZIP, or push it to GitHub and connect auto-deploy. To have an AI deploy for you, use Codex or Claude Code instead. If all you have is one HTML file, see how to put a ChatGPT or Claude website online.
Sources
- Anthropic: Connect Claude Code to tools via MCP
- OpenAI: Codex MCP configuration
- Google: MCP servers with the Gemini CLI, Gemini CLI quotas and pricing
- RoamerHost: Vibe Coding Hosting support, MCP permissions and limits