Code and files
Save to GitHub
GitHub is a website where developers store code and keep its history. The builder can save every version of your project there, and bring in changes that someone makes on GitHub.
Who this is for
Most people never need this. Your versions are already kept in the builder's own version history. Saving to GitHub is useful when you work with a developer, or when you want a second copy of your code on a service you control.
It needs a paid Puter plan and a free GitHub account. The feature is in beta, so details may change.
Set it up
Open the GitHub panel
Press the More button (three dots) next to Publish and choose GitHub. A panel called GitHub integration opens.
Connect your GitHub account
For now you connect with a token, which is a long password that GitHub makes for one app. Press Create a token on GitHub. GitHub opens a form with the name already filled in. Choose all repositories, set Administration, Contents and Workflows to read and write, and create the token. Copy it, paste it into the panel and press Connect. You do this once, and it works for all your projects.
Start saving
Check the Repository name. A repository is the folder on GitHub that holds one project. Leave Private ticked if only you and people you invite should see the code. Then press Start saving.

What happens after that
- Every version is saved for you. Each time the builder finishes a change, that version goes to GitHub. The panel shows Saved to GitHub when it is there.
- Changes on GitHub come back. If someone edits the code on GitHub, the builder brings the change in as a new version and reloads the preview. Your earlier version stays in the version history.
- The same file changed in both places. The builder keeps your project's copy, so your preview does not change, and shows a card with Use GitHub's copy and Keep this copy.
- GitHub shows the same files as the code view. A few files stay out, such as files over 50 MB. The panel lists them under Files kept out of GitHub.
Stop saving or disconnect
- Stop saving this project to GitHub ends it for one project. The repository and its history stay on GitHub, and your project stays in the builder. If you start again later, the builder creates a new repository.
- Disconnect GitHub removes your token from the builder. Projects stop saving until you connect again. Your versions are kept in the builder in the meantime.
Limits
- The builder always creates a new repository for a project. It cannot save into a repository you already have.
- If your paid plan ends, saving to GitHub pauses. Your repository and everything in it stay as they are.
- If your project uses an API key, give it to the builder in the chat so it is stored privately. A key typed into a file would be saved to GitHub with that file. See Backends and API keys.