Skip to main content
Add a repository to an environment. Each new sandbox then clones it into /home/user/<repository name>.
Repositories need a GitHub connection on your account. If you signed in with Google or an email code, do these steps:
  1. Open Dashboard > Environment.
  2. Under GitHub repositories, click Connect GitHub.
This adds GitHub to the account that you already have. You keep the same way to sign in. Nothing else in boat needs this connection. You can also skip it and use gh with your own token inside the sandbox.
A sandbox clones no repository and runs no setup script when one of these is true:
  • Its environment is safe for third parties.
  • You created it with --no-env.
  • The GitHub repositories toggle of the environment is off.
Check with boat exec <id> 'ls /home/user'.

Add or remove a repository

Each repository has a base branch and an optional setup script.
  • boat clones the base branch as it is. The default is main.
  • boat never creates a branch for you, also not for forks.
  • A repository stays on the base branch until you, or something inside the sandbox, changes it.
The older POST /repos call (selectRepo in the SDKs) changes only the default environment. Use the per-environment calls above instead.

Where repositories land

The SSH user is user and the work directory is /home/user. Each folder has the name of the repository, not the owner/name pair.