Skip to main content
A coding agent usually needs a working copy of a repo, a place to run commands, and a way to hand its work back. With Git hosting and persistent sandboxes, your code clones the repo into a sandbox with a short-lived token, the agent works in the sandbox, and your code pushes the result. The token is passed only to the git commands that need it, so it never lands in .git/config and the agent’s own commands never see it.

Clone, work, push

Any image with git works; alpine/git is a small one. Pushing to a branch per run, such as agent/run-1, leaves main for you to merge into after review. A push webhook tells your backend when the branch arrives. If the agent should push by itself, pass a write token in the environment of the agent’s commands instead, or set it for the whole sandbox when you create it. Keep the lifetime short, and give the token only the repos the agent needs.

Network access

The sandbox reaches your git endpoint over HTTPS. If you set a firewall policy on the sandbox, allow your git endpoint’s hostname. On the Free plan, sandboxes reach only a managed allowlist, which doesn’t list Git hosting endpoints.