Sign in to BitHut

Your projects, their status and secrets, and how to connect your AI.

Continue with Google Continue with GitHub Continue with email

If you are new, BitHut creates your account on the first sign-in.

New to BitHut? Already have an account?

From Railway, with the database

Tell your AI “Move my Railway project to BitHut”. It brings the code, the variables and the Postgres data, checks the project here, and only then do you turn Railway off.

Updated 2 min read

Try it on your own project

Connect BitHut to your AI Pick the AI you useOnce, about a minute
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
  1. Run this command in a terminal.

    claude mcp add --transport http bithut https://api.bithut.app/mcp

  2. 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
  1. Run these two commands.

    codex mcp add bithut --url https://api.bithut.app/mcp
    codex mcp login bithut
  2. 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
  1. In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.

  2. Under “mcpServers”, add this line and save the file.

    "bithut": {"serverUrl": "https://api.bithut.app/mcp"}

  3. 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
  1. In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.

    "bithut": {"url": "https://api.bithut.app/mcp"}

  2. Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.

  1. Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.

  2. Choose HTTP, paste this address and name the server bithut.

    https://api.bithut.app/mcp

  3. When VS Code asks, sign in to BitHut and press Allow.

  4. Ask it: “Show my BitHut projects.” If it answers, you are connected.

  1. Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.

  2. Add a remote (HTTP) server with this address.

    https://api.bithut.app/mcp

  3. If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.

  4. 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?”

Then give it the task Opens once your AI is connectedOne copy, it does the rest

Copy the prompt into it: Move my Railway project to BitHut

Example · what you will see
orders-bot moved

After the move

  • Variables from Railway7 saved
  • Postgres tables12 copied
  • Points at railway.internal1 to fix
  • Runs twiceno

How the move goes

  1. Step 1

    Connect BitHut once

    Add BitHut to Claude Code, Codex or Cursor, in the folder of your project.

  2. Step 2

    Variables into a file

    Your AI runs Railway's own command to save the service's variables into a .env file on your computer.

  3. Step 3

    Code, keys, database

    The code comes from GitHub or your folder, the keys from the file, the Postgres data straight from Railway. The project waits here, paused.

  4. Step 4

    You switch over

    Turn the Railway service off. Your AI resumes the project on BitHut and checks it works.

What your AI takes from Railway

  • Variables. railway variables --kv prints them as KEY=VALUE lines, which go into a .env file on your computer and from there straight into BitHut’s secret storage. Railway never shows the values of sealed variables, so you type those in again.
  • The database. Inside Railway the address is DATABASE_URL on railway.internal, which nothing outside can reach. BitHut needs DATABASE_PUBLIC_URL, which appears once Public Access is turned on for the database. Railway counts that copy as outgoing traffic.
  • The code. Usually it is on GitHub, and BitHut deploys it from there. If you deployed with railway up, the code is in your folder.
  • Files on a volume. railway volume files download saves them to your computer, and they go onto the project’s disk here.

Nothing runs twice

A bot answering from two places, or a cron job firing twice, is the usual mess after a move. While the project is paused on BitHut it does not run. You turn the Railway service off, then resume here.

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 Railway service for at least 3 days after the switch.

Templates to start from

Read next

Put it online today

Tell your AI “put it on BitHut”, then open the address it gives you.