RWX quickstart with Grok Origin

If you're not already familiar with RWX, start with the general getting started guide. Eligible new accounts receive $100 in trial credits.

Install the Grok Origin app

Visit your RWX organization's VCS integrations page and connect Grok Origin, then follow the instructions to install the RWX Grok Origin app.

This gives RWX access to read your repository contents, which is necessary to read the run definitions in your .rwx directory. It also gives RWX access to a few other permissions which are necessary to trigger your runs via webhooks and report statuses.

Testing the Grok Origin integration

Run definition

To test the Grok Origin integration, create a file named .rwx/push.yml, commit, and push it to your repository.

on:
  origin:
    push:

base:
  image: ubuntu:26.04
  config: rwx/base 1.2.2

tasks:
  - key: hello-world
    run: echo hello world

Grok Origin status check

Take a look at the commit you just pushed in the Grok Origin UI. It should show a commit status for the RWX run. Click the status to open the RWX UI and see the hello-world task.

Cloning repositories

Installing the Grok Origin app also provides a way to clone your repositories.

You can use the token in the format origin.token with the git/clone package to clone your repository.

To test cloning, update .rwx/push.yml to contain the following, and then commit and push:

on:
  origin:
    push:
      init:
        commit-sha: ${{ event.git.sha }}

base:
  image: ubuntu:26.04
  config: rwx/base 1.2.2

tasks:
  - key: code
    call: git/clone 2.4.1
    with:
      repository: https://origin.cursor.com/YOUR_ORG/YOUR_REPO.git
      ref: ${{ init.commit-sha }}
      github-token: ${{ origin.token }}

Next steps

For continuing to build a graph of tasks on top of your code task, see the CI reference workflow guide.

For triggering runs on pull requests as well as pushes, see Grok Origin Triggers.