# Your first deploy

This page shows what happens when you ask your AI to put a project online for the first time. You need an account, a plan and a [connected AI](/docs/start/connect-ai).

## What to say

Open your AI where the project is: the folder in Claude Code, Codex or Cursor, or the chat where the AI wrote the code. Then say:

> Put this project on BitHut.

You can name the project: “Put this project on BitHut as lead-form.” A name uses small Latin letters, digits and dashes. It becomes the first part of the address.

## What happens

1. **The AI sends the code.** An AI that can run commands uploads the project folder with one command. An AI in a chat passes the files directly, or gives you a link to a page where you drop the folder. The `.env` file stays on your computer. See [From your AI](/docs/code/from-ai).
2. **BitHut reads the code.** It works out what kind of project it is, how it starts and which keys it needs.
3. **BitHut builds it and tries it.** The new version starts once as a trial. If it does not start, the version that worked before stays online.
4. **The AI reads the result.** It waits up to 4 minutes. If the build takes longer, it checks again later.

## What the AI tells you

- **The address**, for a site: `lead-form-anna.up.bithut.app`.
- **Findings**: what BitHut noticed, why it matters and what to change. The AI usually fixes these itself and deploys again.
- **What it needs from you.** If the project needs an API key or token, the AI gives you a link to the cabinet. You paste the key there, never in the chat.
- **Where the password is.** A new site opens only with a password. The AI does not see it; it gives you a link to the project's Settings, where you see it after signing in.

## Who can open the site

After the first successful deploy of a site, BitHut asks one question: should everyone be able to open it, or only people with the password?

- **In the chat**, your AI asks you and records your answer. It does not open the site to everyone unless you say so.
- **In the cabinet**, the project page shows **Your site is online. Who can open it?** with **Only people with the password** and **Everyone**.

Until you answer, the site keeps its password. You can change the answer later in the project's Settings, or by telling your AI.

## If it did not work

Tell your AI: “Check what went wrong on BitHut.” It reads the logs and the findings and fixes the code. You can see the same in the cabinet, on the project's **Versions** and **Logs** tabs.
