Skip to main content

Command Palette

Search for a command to run...

Origin

Clone, Push & Pull

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:

https://origin.cursor.com/{owner}/{repo}.git

Example:

git clone https://origin.cursor.com/acme/checkout.git

Clone with the Origin CLI

The same menu has an Origin CLI tab with CLI-oriented setup. Install and sign in first:

curl -fsSL https://downloads.cursor.com/origin/install.sh | shorigin auth login

See Install the Origin CLI.

Authenticate

Sign in with the Origin CLI before the first git operation if you have not already:

origin auth login

Then clone, fetch, pull, or push with git.

Add a remote to an existing repo

git remote add origin https://origin.cursor.com/{owner}/{repo}.gitgit push -u origin main

To keep GitHub and Origin in parallel while you evaluate:

git remote set-url --add --push origin git@github.com:acme/checkout.gitgit remote set-url --add --push origin https://origin.cursor.com/acme/checkout.git

For a full history copy from GitHub into Origin, prefer mirroring.

Pull latest

git pull origin main

Troubleshooting

If clone or push fails, confirm you are signed in with origin auth login. See Install the Origin CLI.

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.