Skip to main content
A Devbox can check out one or more repositories as it’s created, so your agent doesn’t clone anything itself. Namespace fetches them through your workspace’s GitHub connection, so no token goes into your code, prompts, or spec files. Connect GitHub or Cursor Origin under Code Providers first.

Check out a repository

The repository is cloned with its full history on its default branch, into its own folder in the workspace directory:

Pick a branch, tag, or commit

A commit SHA checks out that commit with a detached HEAD.

Check out several repositories

Unpack a snapshot instead of cloning

Namespace prepares a snapshot of the commit and the Devbox unpacks it, instead of fetching the repository’s history. The checkout has only that commit and branch.

Push changes

Git in the Devbox fetches through your workspace’s GitHub connection. To push as yourself, the command signs gh and Git in the Devbox in with your local GitHub CLI’s token.

Workspace default

When you don’t pass a repository, a new Devbox checks out your workspace’s default repository, if an admin set one. To check out nothing, pass --no_checkout in the CLI, or versionControl: {} in the TS SDK.
Last modified on December 2, 2026