#### Origin

# Install the CLI

> [!NOTE]
>
> 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.

> [!NOTE]
>
> The Origin CLI (`origin`) is separate from `grok`, the [Grok Build TUI](/build/overview).

## macOS, Linux and Windows (WSL)

Install the Origin CLI with a single command:

```bash
curl -fsSL https://downloads.cursor.com/origin/install.sh | sh
```

The installer puts the binary at `~/.local/bin/origin`. If your shell says `command not found: origin` (for example `zsh: command not found: origin`), add that directory to your `PATH`.

For zsh:

```bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
```

For bash:

```bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```

## Windows

In PowerShell (native Windows, not WSL):

```powershell
irm https://downloads.cursor.com/origin/install.ps1 | iex
```

The installer puts `origin.exe` in `%LOCALAPPDATA%\cursor\bin` and adds that directory to your user `PATH`. Open a new terminal to pick it up.

## Verification

After installation, verify that the Origin CLI is working correctly:

```bash
origin --version
```

## Sign in

Sign in to your Grok Build account:

```bash
origin auth login
```

Complete the browser flow with the Grok Build account that has Origin access.

Signing in also sets up the git credential helper, so `git push` and `git pull` against Origin remotes work without further setup.

## Manage repositories

The CLI can create and delete Origin repositories, so you do not have to open the web UI:

```bash
origin repo create my-project
origin repo delete acme/my-project
```

`origin repo create` without a slash creates the repository in your account's namespace. `origin repo delete` always takes the full `org/name`.

Grok Build agents can drive the same commands. Ask the agent to store a project on Origin and it can install the CLI, sign in, create the repo, set the remote, and push. To teach another coding agent the CLI, run `origin agent setup`. It installs a skill that tells the agent to read `origin agent prompt`, a usage guide written for your installed version.

For every command and flag, see the [command reference](/build/agents-window/origin/cli/reference/commands), [pull request commands](/build/agents-window/origin/cli/reference/pull-requests), and [stack commands](/build/agents-window/origin/cli/reference/stacks).

## Updates

To update the Origin CLI to the current release:

```bash
origin update
```

## Next steps

* [Commands](/build/agents-window/origin/cli/reference/commands)
* [Pull request commands](/build/agents-window/origin/cli/reference/pull-requests)
* [Stack commands](/build/agents-window/origin/cli/reference/stacks)
* [Create a repository](/build/agents-window/origin/create-repository)
* [Clone, Push & Pull](/build/agents-window/origin/git)
* [Mirror a GitHub repo](/build/agents-window/origin/mirror-github)
* [Browse & Search](/build/agents-window/origin/browse)
* [Agents and automations](/build/agents-window/origin/agents)
