Linux 版 Grok Bot:官方应用的非官方移植版(开源)
Grok Bot for Linux: Unofficial port of the official app (open source)

原始链接: https://github.com/jakob-bu/grok-bot-linux-unofficial

本仓库提供 Grok Bot 桌面应用的非官方 Linux 版本(原版仅限 macOS 和 Windows)。本项目通过适配官方 Windows 安装程序(使用 Electron 并替换原生插件),在无需 Wine 的情况下实现了原生的 Linux 体验。 **主要功能:** * **完整功能:** 与官方应用一样访问您的机器人、云端计算机及 Cursor 账户。 * **安装选项:** 支持 `.deb` 包、`AppImage` 及独立压缩包,兼容 Ubuntu 22.04+ (x86_64)。 * **社区维护:** 本项目并非 xAI 或 Cursor 的官方产品;当有新版本发布时,用户需通过重新运行构建脚本来手动更新。 * **可自定义:** 支持通过 `electron-flags.conf` 配置 Electron 标志(例如解决 NVIDIA 相关的渲染问题)。 **要求:** * 有效的 Cursor/SuperGrok 账户。 * 构建依赖:Node.js 20+、Python 3、`p7zip-full` 以及标准开发工具。 *注:本仓库仅包含构建脚本和 Linux 原生封装程序;所有二进制文件均在您的本地机器上通过官方源生成。*

Hacker News 新闻 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Grok Bot for Linux:官方应用的非官方移植版(开源) (github.com/jakob-bu) 17 点积分,由 j-bu 发布于 44 分钟前 | 隐藏 | 过往 | 收藏 | 2 条评论 帮助 maxlin 37 分钟前 [–] 做得好!官方版本只发布 Windows/Mac 系统确实有点奇怪,除非他们已经在开发类似的东西了 回复 j-bu 26 分钟前 | 父评论 [–] 确实——考虑到 Cursor 桌面版都提供了原生的 Linux 构建版本,这让人尤其感到意外 回复 指导原则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Unofficial Ubuntu/Linux build of the Grok Bot desktop app.

Cursor ships Grok Bot for macOS and Windows only. This repo does the same thing the Codex Mac-to-Linux port did: take the official Electron app, put it on a Linux Electron runtime, and replace the Windows-only native addons.

It is not an xAI or Cursor product. Linux is unsupported by them.

The official Grok Bot UI — bots, the shared computer, sign-in with your Cursor account — running as a native Linux app. No Wine.

Current target: Grok Bot 0.29.0 on Electron 42.1.0 (x86_64).

sudo apt install p7zip-full curl unzip build-essential python3 \
  libfuse2 fakeroot
# Node.js 20+ (Ubuntu 24.04: sudo apt install nodejs npm  is too old;
# use https://github.com/nvm-sh/nvm or NodeSource)

git clone <this-repo> grok-bot-linux
cd grok-bot-linux
make build
sudo dpkg -i dist/grok-bot_*_amd64.deb
sudo apt-get install -f -y   # if dpkg reports missing GTK/NSS libs

grok-bot

Or skip the package and run the tree directly:

make build
./dist/Grok_Bot_0.29.0_linux_x64/grok-bot --no-sandbox --ozone-platform-hint=auto

AppImage (needs FUSE 2):

chmod +x dist/Grok_Bot_*_x86_64.AppImage
./dist/Grok_Bot_*_x86_64.AppImage

Sign in with the same Cursor / SuperGrok account you use on the Mac app. Bots live on the cloud computer; this build is the remote control.

The tarball in dist/ is a self-contained Electron tree. On Fedora / Arch, install GTK3, NSS, ALSA, and Mesa, then:

tar -xzf dist/Grok_Bot_*_linux_x64.tar.gz
./Grok_Bot_*_linux_x64/grok-bot --no-sandbox --ozone-platform-hint=auto
Command Result
make detect Newest official Windows version on Cursor's CDN
make build Tarball + .deb + AppImage in dist/
./scripts/build.sh 0.29.0 Pin a specific upstream version
./scripts/build.sh --exe ~/Downloads/Grok_Bot_0.29.0_Setup.exe Use an installer you already downloaded
make install-deb Build if needed and dpkg -i

If Chromium's sandbox cannot take setuid (containers, some Ubuntu defaults), the /usr/bin/grok-bot wrapper adds --no-sandbox. Extra Electron flags go in ~/.config/grok-bot/electron-flags.conf, one per line.

NVIDIA + black window: add --ozone-platform=x11 to that file.

The in-app updater talks to Windows/macOS feeds and will not install a Linux build. When Cursor ships a new version:

make detect
make build
sudo dpkg -i dist/grok-bot_*_amd64.deb

How this compares to the Mac app

Official Mac app This Linux build
UI / bots / cloud computer yes same app.asar
Sign-in Cursor account same
Native addons Mach-O rebuilt or replaced for Linux
Auto-update official rebuild from the new Windows installer
Support Cursor none (community)

The Mac .dmg is not used here. Extracting it on Linux is awkward, and its native modules are still the wrong ABI. The Windows NSIS installer unpacks with 7z and is the source every working community port uses. Details: docs/how-it-works.md.

  • x86_64 Linux, glibc 2.34+ (Ubuntu 22.04 or newer)
  • Eligible Grok Bot plan (same as the official apps)
  • Build machine: p7zip-full, curl, unzip, g++, python3, Node 20+

This repository never commits the official installer, app.asar, or built binaries. Those are produced on your machine.

Scripts and Linux-native sources in this repo: MIT.

Grok Bot belongs to xAI / Cursor. Electron belongs to the Electron project. See NOTICE.md.

联系我们 contact @ memedata.com