Origin
Clone, push & pull
Origin is currently released in early beta. You can create repos, push and pull with git, mirror from GitHub, browse and search code, open and merge pull requests, and share with your Grok Build team.
Origin works with standard git. Open a repo at cursor.com/codebase, select the green Code dropdown, and copy the clone URL.
Clone with HTTPS
The Code menu includes an HTTPS tab:
Text
https://origin.cursor.com/{owner}/{repo}.git
Example:
Bash
git clone https://origin.cursor.com/acme/checkout.git
Clone with SSH
The SSH tab shows the SSH clone URL:
Text
[email protected]:{owner}/{repo}.git
Example:
Bash
git clone [email protected]:acme/checkout.git
SSH authenticates with a public key registered on your Origin account. Add one with the Origin CLI:
Bash
origin ssh-key add ~/.ssh/id_ed25519.pub -t work-laptop
The first connection to origin.cursor.com prints the server's host key fingerprint and asks whether to continue. Compare it with Origin's SSH host key fingerprints before you type yes.
SSH host key fingerprints
Your SSH client shows a prompt like this the first time it connects to Origin:
Text
The authenticity of host 'origin.cursor.com (...)' can't be established.
ED25519 key fingerprint is SHA256:EgIVKsf8fXGd7oj12nE0juHrGGPU8QLVfpGM3ymunGM.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Origin serves one host key, ED25519. Check the fingerprint in the prompt against these before you answer yes:
SHA256:EgIVKsf8fXGd7oj12nE0juHrGGPU8QLVfpGM3ymunGM(ED25519)MD5:15:84:8d:05:5f:4f:cd:3b:37:19:3b:19:c5:02:30:6f(ED25519)
OpenSSH prints the SHA256 form by default. Older clients, and ssh -o FingerprintHash=md5, print the MD5 form. If the prompt shows a fingerprint not listed here, answer no. The connection isn't reaching Origin.
To skip the prompt, add Origin's public host key to ~/.ssh/known_hosts. The same line works in the known_hosts file of a CI runner:
Text
origin.cursor.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaMKo6HCtmngBwlSH2ATs8+A6eTr+cCON5RKZX/3/MO
Origin also publishes its host key in known_hosts format at https://origin.cursor.com/.well-known/ssh-known-hosts. To have OpenSSH fetch it on each connection, add this to ~/.ssh/config:
Text
Host origin.cursor.com
CheckHostIP no
KnownHostsCommand /usr/bin/curl -fsS https://origin.cursor.com/.well-known/ssh-known-hosts
Grok Build announces host key rotations ahead of time in the changelog and updates this page when a key changes. A REMOTE HOST IDENTIFICATION HAS CHANGED warning from your SSH client with no announced rotation means the connection is not reaching Origin; stop and don't update known_hosts.
Clone with the Origin CLI
The same menu has an Origin CLI tab with CLI-oriented setup. Install and sign in first:
Bash
curl -fsSL https://downloads.cursor.com/origin/install.sh | sh
origin auth login
Authenticate
Sign in with the Origin CLI before the first git operation over HTTPS if you have not already:
Bash
origin auth login
Then clone, fetch, pull, or push with git. Over SSH, the key registered on your account authenticates instead.
Add a remote to an existing repo
Bash
git remote add origin https://origin.cursor.com/{owner}/{repo}.git
git push -u origin main
To keep GitHub and Origin in parallel while you evaluate:
Bash
git remote set-url --add --push origin https://github.com/acme/checkout.git
git remote set-url --add --push origin https://origin.cursor.com/acme/checkout.git
For a full history copy from GitHub into Origin, prefer mirroring.
Mirrored GitHub repositories
A repo mirrored from GitHub uses the same HTTPS clone URL:
Text
https://origin.cursor.com/{owner}/{repo}.git
GitHub stays the source of truth. git push to this remote goes to GitHub. Origin updates after GitHub accepts the push.
When GitHub is unavailable, keep working on the Origin copy with origin/* branches and origin push local. Reads of an already-synced repo may still work over the same HTTPS clone URL. Git LFS batch does not fail over. /local is the supported write path while GitHub is down.
Forge-local branches on mirrored repos
On a mirrored repo, origin/* branches are your workspace on the Origin copy. Use them to keep working when GitHub is unavailable, or for any other git state you want only on Origin. Those refs stay on Origin. They never sync from GitHub and never sync to GitHub.
Origin does not sync GitHub branches named origin or origin/.... That is deliberate, so a GitHub branch with that name cannot overwrite what you pushed with origin push local. Feature branches that should become GitHub pull requests still use a normal git push origin.
origin push local
origin push local writes those Origin-only branches. It is not a substitute for git push origin.
git push origin <branch> uses the clone URL and, on an inbound mirror, lands on GitHub. origin push local does this instead:
- Confirms the checkout's
originremote is an inbound-mirrored Origin repo - Creates or updates a git remote named
origin-localathttps://origin.cursor.com/{owner}/{repo}.git/local - Scopes that remote's fetch and push refspecs to
refs/heads/origin/* - Pushes every local
origin/*branch to/local
Origin does not rewrite the name. origin/my-state is stored as refs/heads/origin/my-state.
Bash
git branch origin/my-state HEAD
origin push local
After the first run, git remote -v includes:
Text
origin-local https://origin.cursor.com/{owner}/{repo}.git/local (fetch)
origin-local https://origin.cursor.com/{owner}/{repo}.git/local (push)
git push origin-local and git fetch origin-local use the same scoped refspec. origin push local --dry-run prints the push without sending it. --remote <name> picks a different remote name. Do not pass --remote origin or --remote github; those remotes stay the GitHub-backed upstream.
The origin remote must already point at Origin:
Text
https://origin.cursor.com/{owner}/{repo}.git
/local exists only on inbound mirrors. On a repo created directly on Origin, push any branch to origin.
/local is enabled per repository. If git reports the repository as not found, the endpoint is not enabled for that repo yet. Per-ref remote rejected messages mean the server refused a ref outside origin/.
Branch names that start with origin/
Matching is a path segment after origin/. A branch named exactly origin is reserved and is not pushable to /local. A name such as original/backup is also outside the namespace.
On inbound mirrors:
- Push to
/local. Onlyorigin/<name>refs are accepted. Everything else is rejected with a message to push that ref to the upstream remote. - Fetch from GitHub. Inbound sync skips
originandorigin/*. That is deliberate: a GitHub branch with that name cannot overwrite what you pushed withorigin push local. - Push to the clone URL.
git push origin origin/my-statestill sendsorigin/my-stateto GitHub. Origin will not import that GitHub branch on the next sync. - Pull requests. Cloud agents on a mirrored repo open GitHub pull requests from ordinary branches you push to GitHub. An
origin/*branch is not on GitHub, so it cannot be the head of a GitHub pull request.
Git also uses origin/ for remote-tracking refs: origin/main means branch main on the origin remote. Create the local branch with an explicit name (git branch origin/my-state HEAD or git switch -c origin/my-state) so you do not check out the remote-tracking branch by mistake.
When should I use origin push local?
When GitHub is unavailable, or whenever you want git state only on the Origin copy. Create an origin/... branch and run origin push local. For work you want on GitHub, including pull requests, run git push origin.
Does Origin rename origin/ branches?
No. The branch name on Origin is the same local name. git fetch origin-local tracks them as origin-local/origin/<name> because that is how git names remote-tracking refs, not because Origin strips or rewrites the prefix.
What if GitHub already has a branch named origin/something?
Origin does not import it. Sync skips GitHub branches named origin or origin/... so they cannot overwrite what you pushed with origin push local.
Pull latest
Bash
git pull origin main
Troubleshooting
If clone or push fails over HTTPS, confirm you are signed in with origin auth login. See Install the Origin CLI.
If clone or push fails over SSH, confirm the key you're using is on your account with origin ssh-key list, and check the host key fingerprint if the connection was refused at the host key prompt.
If your shell says command not found: origin after install, add ~/.local/bin to your PATH (for zsh: append export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc, then source ~/.zshrc). Details are on the CLI page.
Last updated: November 23, 2026