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?

Working together

Previews and working on one project

Once a project is online, a new change does not replace the site straight away. It goes to your own preview first. You open it, check it, and only then put it on the site. This page explains how previews work and how two people change one project without losing each other’s work.

Your preview

  • Its own address. For example lead-form--anna-acme.up.bithut.app. Each person has one preview per project.
  • Closed. It asks for the site’s password and is hidden from search engines. Your AI gives you a link to the page in the cabinet where the password is shown. The password is never put in the chat.
  • Its own copy of the data. Files in /data and the Postgres database are copied from the site when the preview starts. What you do in the preview does not change the site’s data. To get fresh data from the site later, ask your AI to refresh the preview’s data. The site does not stop for that.
  • Your keys. Owners and editors get the site’s keys in their preview, so it works like the site. Keys reach outside services, so a payment or a letter sent from a preview is real. If that matters, give the preview its own test values: in the Keys tab, or ask your AI to set a key for previews. A person with Preview only gets no secret keys of the site, only their preview values.
  • It goes away on its own. A preview nobody deployed to for 7 days is removed. You can remove it yourself on the project’s overview, under My preview.

The preview runs inside your plan’s memory and disk. If there is no room for it, the deploy stops and says what is taken. Remove a preview nobody needs or choose a bigger plan. An owner or editor can also put that change straight on the site.

Putting a change on the site

  1. Tell your AI what to change, as usual. It deploys, and the change appears on your preview.
  2. Open the preview and check it.
  3. Say “Put it on the site”. Your AI publishes it. In the cabinet, the same is Publish under My preview on the project’s overview, or in the version’s panel.

Publishing does not build the project again: the site starts the exact version you checked. If someone else changed the site while you worked, BitHut combines both changes first (see below).

The first version of a project that does not run yet goes straight online: there is nothing to break.

Straight to the site, without a preview

  • Once. Tell your AI “put it straight on the site”. It deploys with the setting for that. Your AI does this only when you say so.
  • Always for one project. An owner can turn on Deploy straight to the site in the project’s Settings, under Previews. New versions from owners and editors then skip the preview. People with Preview only still use their preview.

The Versions tab marks such versions “deployed without a preview”.

Bots and scheduled scripts

A second copy of a bot or a script on the same keys would clash with the running one: a Telegram bot would share its messages, a script would act on live data twice. So a bot or a script gets a preview only when each of its secret keys has a preview value. Otherwise your AI asks you: add test keys for previews, or put the change straight on the live project.

Two people on one project

Anna and Boris both change the same site with their own AI. Each works in their own preview. When one of them publishes, BitHut compares three versions: the one they started from, the one online, and theirs.

  • Different files, or different lines of one file. BitHut combines both changes. The version then shows “Combined with” and the number of the other version.
  • The same lines. Nothing changes on the site and nobody’s work is overwritten. Your AI gets the list of files, downloads the current code, makes the change there and asks you only where the two changes disagree.

For this, a change must start from the code that runs now. Your AI downloads it before the first change (get_source). The folder holds a small hidden file, .bithut/base, with the number of the version it started from. Keep it.

Projects that deploy from GitHub or GitLab are not combined by BitHut: Git does that there.

Preview only

An owner of a project can give a person the role Preview only in the project’s Settings, under People of the project. Such a person changes the project like an editor, but their versions stay on their preview. Owners and editors publish them. Rollback, pause or resume, restoring data and the site’s keys also stay with owners and editors. A Preview only person can set preview values for keys and refresh their preview’s data.

What to know

  • The code download works once and only for 30 minutes. Ask your AI again for a new one.
  • BitHut keeps the code of the last 20 versions.
  • Downloading needs an AI that can run commands on your computer, such as Claude Code, Codex or Cursor.
  • Keys are not in the downloaded code. They stay in the BitHut cabinet.

For your AI

  • get_source downloads the live code; deploy afterwards with get_upload_command from the downloaded folder.
  • A deploy to a running project goes to the person’s preview. The result has the preview’s url and ask_person: ask before publishing.
  • publish puts a preview’s version on the site without rebuilding, only after the person says yes.
  • to_main=true on a deploy puts it straight on the site, only when the person asks for that.
  • refresh_preview_data copies fresh /data and Postgres from the site into the preview without stopping the site.
  • set_secret with preview=true gives a link to paste a test key for previews only.