# Merging PRs in Origin with Grok Bot

**URL:** <https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592>\
**Category:** Help\
**Tags:** origin, grok-bot\
**Created:** [September 22, 2026, 5:25am UTC](https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592 "2026-09-22T05:25:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachariah](https://avatars.discourse-cdn.com/v4/letter/z/c4cdca/32.png) [@Zachariah](https://forum.cursor.com/u/Zachariah)\
**Post date:** [September 22, 2026, 5:25am UTC](https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592/1 "2026-09-22T05:25:00Z")

</div>

Grok Bot told me it had no API way to undraft and merge xAI Origin PRs, so it’s currently using browser use to complete those tasks. Am I missing something? Does Origin not have a connection to Grok Bot to do this programmatically?

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [September 22, 2026, 5:25pm UTC](https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592/6 "2026-09-22T17:25:19Z")

</div>

Hi @Zachariah Thanks for the post! Glad to see you making great use of Grok Bot.

Grok Bot does have a connection to Origin: its computer gets an authenticated `origin` CLI, which is what it uses to look up your repos, pull requests, diffs, and checks. Right now, that connection is intentionally read-only. Actions that change a PR, like marking it ready for review or merging it, are not done directly from Grok Bot yet, so when you ask for them, it falls back to doing it in the browser. Merging is a deliberate human step for now.

Here’s two options that might make this smoother in the meantime:

1. Skip the draft step entirely. When you ask Grok Bot to hand work to a cloud agent, add “open the pull request ready for review, not as a draft”. PRs default to draft unless you say otherwise.
2. For a PR that is already a draft, ask Grok Bot to have the cloud agent that opened it mark it ready for review. The cloud agent’s own PR tool can do that on Origin, no browser needed.

For the merge itself, the fastest paths are the Merge button on the PR page at [cursor.com/codebase](http://cursor.com/codebase), or `origin pr merge <number>` (or `--auto` to merge when checks pass) from your own machine with the Origin CLI.

We are working on expanding what Grok Bot can do directly on Origin, and I have passed your request along.

---

<div class="post-metadata">

**Author:** ![Zachariah](https://avatars.discourse-cdn.com/v4/letter/z/c4cdca/32.png) [@Zachariah](https://forum.cursor.com/u/Zachariah)\
**Post date:** [September 22, 2026, 10:12pm UTC](https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592/7 "2026-09-22T22:12:23Z")

</div>

it’s been doing great at my specific workflow - highly specific experts for each part of each workflow. I haven’t had a reason not to trust the merge. The work-around is computer use from the repo specialist “RepoMan” 🤣 . But I’d rather not burn tokens for computer use. Cheers to all the team(s) have accomplished; it’s really joy to use.

---

<div class="post-metadata">

**Author:** ![RyotaMurakami](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ryotamurakami/32/625_2.png) [@RyotaMurakami](https://forum.cursor.com/u/RyotaMurakami)\
**Post date:** [October 29, 2026, 2:01pm UTC](https://forum.cursor.com/t/merging-prs-in-origin-with-grok-bot/172592/10 "2026-10-29T14:01:30Z")

</div>

+1, and I’d like this as a feature request. My Grok Bot’s cloud agents open Origin PRs, the Vercel check passes, and the merge fails with “Origin token is not scoped”. The workaround is pushing straight to `main`, which skips the PR entirely. An opt-in merge scope for agent tokens, a merge tool in Grok Bot, and merges only when required checks pass would fix this. Feature request: [Let cloud agents and Grok Bot merge Origin PRs once checks pass (merge scope)](https://forum.cursor.com/t/let-cloud-agents-and-grok-bot-merge-origin-prs-once-checks-pass-merge-scope/176643)
