Connect GitHub Repo from Phone: Authorize Grok Bot to Edit Code
Open Grok Bot on phone → authorize GitHub repo → describe feature in natural language → Cursor cloud agent writes on a branch and opens PR → confirm to deploy
- Who
- Developers with GitHub repos who want to quickly edit code from their phone
- You get
- Complete repo connection, feature development, PR creation, and deployment from mobile without a home computer running
- You need
- Grok Bot
Constraints
Requires: Grok Bot app, GitHub account, existing code repository. No need to leave a home computer on. Actual coding is done by Cursor cloud agent in the cloud, submitted via PR, and requires manual confirmation before merge. Authorization flow depends on Grok Bot's popup at the time of use.
What they did
Author ChrisDunlopnz, while waiting at a hospital, opened Grok Bot on his phone and asked if it could access his bookstats repo. After authorizing GitHub through a popup, he requested a cricket stats page. Grok Bot invoked a Cursor cloud agent, and after a few minutes, created a PR. The author confirmed and deployed it.
How it went
Author reports: the entire feature was built while sitting in the waiting room, and was live on his website minutes later. Subsequent adjustments were easy, and multiple new features were added, such as a chart showing the most pages read at certain hours of the day. (author_report, not tested by this site)
Worth knowing
1. No need to leave a home computer running, unlike ChatGPT desktop app. 2. Actual coding is done by Cursor cloud agent; Grok Bot does not write code directly. 3. Code is written on an isolated branch and submitted via PR; nothing touches your main branch until you confirm. 4. The author creates a new bot per repo as a personal habit, but is unsure if this is optimal. 5. Grok Bot can search Twitter/X for inspiration and supports recurring tasks, but specific configuration details were not provided in the source. 6. Authorization popup UI may change with product updates.
Steps
Open Grok Bot and ask about your repo
Open the Grok Bot app on your phone and ask in natural language whether it can see your target repo. For example, ask about your bookstats repository.
Authorize GitHub repo connection
Grok Bot will show an authorization popup. Complete the GitHub authorization as prompted. Once authorized, Grok Bot can access the repository.
Describe the feature and wait for generation
Describe the desired feature in natural language. Grok Bot invokes a Cursor cloud agent, reads the entire repo, and writes code on an isolated branch. After a few minutes, you will receive a PR link.
Review PR and confirm deployment
Click the PR link to review the code changes. Merge the branch after confirming it's correct, and the code will deploy to your site automatically. For adjustments, continue requesting changes in natural language.
Prompt you can copy
Reference prompt · Editorial suggestion。Confirm the destination, input variables and output format before use.
This block is the prompt. Ads are never placed here.
No prompt needed — just follow the steps.
Source
手机连 GitHub 仓库:医院场景用 Grok Bot 弹窗授权后改 book stats 页 · ChrisDunlopnz · X · 2026-10-27T07:37:14.000Z
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.