Depot Code is in private beta. Functionality and capabilities could change, and documentation might be out of date. Request access to enable it for your organization.
Create a Git repository hosted on Depot's diskless Git server, then clone, push, and fetch with regular git commands. Once your code is in Depot, you can trigger Depot CI workflows against it.
Create a repository from the Depot dashboard.
Repository names can include letters, numbers, dots, underscores, and hyphens, and can be namespaced with slashes, for example team/service.
Depot Code authenticates Git over HTTPS using a Depot access token as the password, with x-token as the username.
Copy the repository's clone URL from the dashboard. It has the form https://<org-id>.code.depot.dev/<repository>, where your organization ID is the subdomain.
Clone a repository:
git clone https://x-token@<org-id>.code.depot.dev/<repository>Or add Depot as a remote on an existing local repository and push:
git remote add depot https://x-token@<org-id>.code.depot.dev/<repository>
git push -u depot mainThe x-token username tells Git to prompt only for a password. Paste your access token when prompted. To avoid re-entering it on every fetch and push, configure a Git credential helper.
Pushing to the Depot remote for a GitHub mirror repository also pushes those changes to GitHub. If you want Depot-only writes, create a standalone repository.
To trial Depot Code alongside GitHub, keep GitHub as your origin remote and add Depot as a second remote. Run git remote -v to list the remotes configured for the repository.
Depot Code repositories work with Depot CI. To run CI, add a workflow file to .depot/workflows/ in your repository, for example .depot/workflows/ci.yml, using GitHub Actions YAML syntax, then commit and push it.
Depot Code workflows support the push trigger only. When you push, Depot CI runs every workflow with an on: push trigger against the pushed commit.
Note: Depot CI triggers are currently disabled by default for standalone repos. Many workflow scripts contain subtle dependencies on GitHub and require workarounds. Please reach out to opt-in to Depot CI triggers for standalone repos.
For workflow syntax and supported features, see the Depot CI quickstart and compatibility reference.