Getting your code in
From GitHub
If your code is on GitHub, BitHut can download it from there. This also works for code from Lovable, Bolt or Replit that you saved to GitHub. There are two ways: choose the repository in the cabinet, or ask your AI.
In the cabinet
On a new project’s page, under Bring the code, choose From GitHub.
- Connect GitHub, once. BitHut asks you to sign in with GitHub. Then GitHub asks which repositories BitHut may read: all of them or only the ones you pick. Access is read only: BitHut never changes your code.
- Choose a repository. You see your repositories, the most recently changed first. Search by name filters the list.
- Press Connect. BitHut downloads the repository’s default branch, builds it and opens the project’s Versions tab.
A repository not in the list? Press Give BitHut access to it on GitHub and add it there. You can add or remove repositories on GitHub any time.
Through your AI
Say to your AI: “Put my GitHub repository owner/name on BitHut.” BitHut downloads the code itself, so nothing needs to be on your computer. The AI can also name:
- a branch, tag or commit, if not the default branch;
- a folder inside the repository, when it holds several projects.
Public repositories need nothing more.
Private repositories need a read-only token, once. Your AI explains the steps: you create a fine-grained token on GitHub with access to only those repositories and Contents: read-only, and put it in a file on your computer. The AI then runs a command that sends the token straight to BitHut, not through the chat. To remove the saved token, ask your AI to forget it.
Things to know
- No deploy on push. A new commit on GitHub does not update the project by itself. To put a new version online, ask your AI to deploy again.
- Build settings. Values a site needs at build time, like
VITE_orNEXT_PUBLIC_settings, are set before the deploy. Your AI does it. - Keys. Keys are never read from the repository’s
.env; you paste them in the cabinet. - Size. The repository archive can be up to 100 MB.