Deploy your Astro site to BitHut
BitHut builds a static Astro site from its code and serves the pages at its own address with HTTPS. You can send the code from your AI, from a GitHub or GitLab repository, or as a folder from your computer.
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: Put my Astro site on BitHut
Prerequisites
- An Astro project that builds to static pages: the default, without
output: "server"inastro.config.mjs. - A
buildscript inpackage.json. A new Astro project already has"build": "astro build". - A BitHut account with a plan. Start costs $5 a month; there is no free plan.
How BitHut builds an Astro site
BitHut builds code with Railpack. Railpack sees Astro, runs the build script, and serves the dist folder with the Caddy web server. No adapter and no Dockerfile are needed for a static site.
To serve another folder, set the RAILPACK_SPA_OUTPUT_DIR variable to its name.
Deploy from your AI
- Connect BitHut to Claude, ChatGPT, Codex or Cursor once: connect your AI.
- In the chat where your AI sees the project, write: “Put my Astro site on BitHut”.
- The AI packs the project folder, sends it, and answers with the address, for example
my-site-anna.up.bithut.app.
To publish a change later, ask the AI to deploy again. Each deploy is a new version, and the previous one can be restored.
Deploy from GitHub or GitLab
- In the BitHut cabinet, create a project with a name.
- Choose From GitHub or From GitLab and connect your account.
- Pick the repository and press Connect. BitHut builds its default branch.
Deploy a folder from your computer
- Create a project in the BitHut cabinet.
- Choose From your computer and drop the project folder. The
.envfile is not sent.
Environment variables
Astro puts variables with the PUBLIC_ prefix into the pages at build time. Add them in the project settings in the cabinet, or ask your AI to set them.
Secret values, such as API keys, are entered in the cabinet by you, not sent through the AI chat. Your AI gives you a link to the right field.
Who can open the site
A new site opens with a password. After the first deploy, BitHut asks once whether everyone can open it; until you answer, it stays closed.
Your own domain
Add a domain in the project settings and create the DNS record BitHut shows. HTTPS is issued for the domain automatically.
At its up.bithut.app address a site is hidden from search engines. To appear in Google, connect your own domain.
Limits
- Checked on 25 November 2026 with a static Astro 7.4 site. A site with
output: "server"and the Node adapter has not been checked on BitHut. - Addresses that do not exist return the home page with status 200 instead of your
404.html.
Official resources
- Finished Astro sites on BitHut, with their source code and a prompt to make one like them.
- BitHut prices.
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.