# How BitHut works

BitHut keeps small projects online: sites, bots, scheduled scripts and tools you build with Claude, ChatGPT, Codex or Cursor. You do not set up a server. Your AI sends the code to BitHut, BitHut builds it, checks that it starts, and gives you an address.

## The path of your code

1. **Your AI sends the code.** Once BitHut is connected to your AI, you say “Put this on BitHut”. The AI packs the project folder and uploads it. The code can also come from a GitHub or GitLab repository, or from a folder you drop in the BitHut cabinet. The `.env` file is never uploaded.
2. **BitHut reads the code.** Before building, BitHut looks at what kind of project it is, which keys it needs and how it starts. What it finds comes back as plain findings: what is wrong, why, and what to change.
3. **BitHut builds it.** A project with a Dockerfile is built from it. Without one, BitHut recognises the language and framework and builds it the usual way for them, for example `npm run build` for a site.
4. **BitHut tries it.** The new version starts once as a trial. If it does not start or stops at once, the version that worked before stays online and you see the reason in the logs.
5. **You get the result.** A site gets an address with HTTPS, like `my-site-anna.up.bithut.app`. A bot keeps running. A scheduled script runs at its times.

## Three kinds of projects

| Kind | What it is | Examples |
|---|---|---|
| Site | Answers requests at an address | A landing page, a dashboard, a form, an API, a webhook |
| Background process | Runs all the time without an address | A Telegram or Discord bot, a queue worker |
| Scheduled script | Starts at set times, does its job and stops | A morning report, a price check every hour |

BitHut usually works out the kind from the code. When it cannot, your AI tells it.

## Closed until you decide

A new site opens only with a password. After the first deploy BitHut asks once whether everyone can open it. At its BitHut address a site is hidden from search engines; to be found in Google, connect your own domain.

## Keys stay out of the chat

API keys, tokens and passwords are never typed into the chat with your AI. When a project needs a key, your AI gives you a link to the BitHut cabinet, and you paste the value there.

## Every version is kept

Each deploy is a new version. You can return to an earlier one, and BitHut keeps the code of the last 20 versions, so your AI can download the code that runs now before it changes it.

## One price for all your projects

A plan is a shared amount of memory, processor and disk for all your projects, not a number of projects. Visits and traffic cost nothing extra. A new project is measured during its trial run, and if it does not fit what is left on your plan, BitHut says so and names the plan that fits. See [Plans and billing](/docs/billing).

## Where to go next

- [Connect your AI](/docs/start/connect-ai) and make your first deploy.
- [Getting your code in](/docs/code): every way code reaches BitHut.
- [Templates](/docs/templates): ready projects your AI adapts for you.
