From Heroku, dynos and all
Tell your AI “Move my Heroku app to BitHut”. It brings the config vars, the Postgres data and the code, checks the app here, and only then do you turn Heroku off.
Try it on your own project
Choose AI Claude CodeCodexGoogle AntigravityCursorVS CodeAnother AI
Claude Code can add BitHut by itself. Paste this into it:
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
Then restart Claude Code, type /mcp, pick bithut and sign in: sign in to BitHut in your browser and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the command yourself
Run this command in a terminal.
claude mcp add --transport http bithut https://api.bithut.app/mcp
Start Claude Code, type /mcp, pick bithut and sign in. Sign in to BitHut in your browser and press Allow.
Already added BitHut in Claude, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code.
Codex can connect BitHut by itself. Paste this into it:
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
A page opens in your browser: sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the commands yourself
Run these two commands.
codex mcp add bithut --url https://api.bithut.app/mcp codex mcp login bithut
The second one opens a page in your browser. Sign in to BitHut and press Allow.
Antigravity can add BitHut by itself. Paste this into its agent:
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
When Antigravity asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.
Under “mcpServers”, add this line and save the file.
"bithut": {"serverUrl": "https://api.bithut.app/mcp"}
When Antigravity asks, sign in to BitHut and press Allow.
Cursor can add BitHut by itself. Paste this into its chat:
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
Then open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.
"bithut": {"url": "https://api.bithut.app/mcp"}
Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.
Choose HTTP, paste this address and name the server bithut.
https://api.bithut.app/mcp
When VS Code asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
Add a remote (HTTP) server with this address.
https://api.bithut.app/mcp
If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”
Copy the prompt into it: Move my Heroku app to BitHut
After the move
- Config vars6 saved
- Heroku Postgres tables14 copied
- Scheduler jobdaily 07:00 UTC
- Runs twiceno
How the move goes
- Step 1
Connect BitHut once
Add BitHut to Claude Code, Codex or Cursor, in the folder of your app.
- Step 2
Config vars into a file
Your AI runs heroku config -s, which writes the app's config vars as a .env file on your computer.
- Step 3
Code, keys, database
The code comes from GitHub or your folder, the keys from the file, the Postgres data straight from Heroku. The app waits here, paused.
- Step 4
You switch over
Scale the Heroku dynos to zero and turn the Scheduler job off. Your AI resumes the app on BitHut and checks it works.
What your AI takes from Heroku
- Config vars.
heroku config -sprints them asKEY=valuelines for a.envfile, and from there they go straight into BitHut’s secret storage. - Heroku Postgres. It is reachable from outside (not on Private and Shield plans) and needs SSL. The address changes when credentials rotate, so your AI takes a fresh one with
heroku pg:credentials:urlright before the copy. - The code. If the app deploys from GitHub, BitHut deploys from the same repository. If you pushed with git from your computer, the code is in your folder.
- The dynos. A web dyno becomes a site, a worker dyno a project that runs all the time, a Heroku Scheduler job a script on a schedule.
No files to bring
Heroku’s file system is wiped on every restart, so there is nothing on a disk to move. On BitHut a project has a disk that keeps its files.
If something goes wrong
The database copy starts with a restore point of the project’s own database, and the data from before stays for 7 days. Keep the Heroku app at zero dynos, not deleted, for at least 3 days.
Templates to start from
-
Telegram bot
A bot in Telegram that does what you ask: answers customers, takes bookings, reminds, looks things up. It stays online even when your laptop is closed.
Always on -
Daily report
Every morning it takes yesterday's numbers and sends a short summary to your team chat, your e-mail or both.
On a schedule -
Lead form
A form for your clients. Every request is saved and reaches you where you work: e-mail, Telegram, Slack and more.
Receives data
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.