grok-bot-linux-headless

grok-bot-linux-headless is a skill for Claude Code, Codex from magic3007/dotfiles. It costs 157 tokens per session (1,426 once invoked), scanned B, original, MIT.

A Linux server troubleshooting guide for keeping the Grok Bot desktop client running without a display or graphics processor. It focuses on version, network, and configuration problems that can make the machine appear offline.

In plain words
What is it for?
Use it to compare client versions, investigate failed online status, check duplicate registrations, and diagnose a blank Electron window.
Why use it?
It helps distinguish a stale client or broken runtime setup from a login problem when the application is blank, stuck, or repeatedly registers the same host.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to compare client versions, investigate failed online status, check duplicate registrations, and diagnose a blank Electron window.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magic3007/dotfiles/grok-bot-linux-headless
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add magic3007/dotfiles --skill grok-bot-linux-headless
Clone the repo
git clone --depth 1 https://github.com/magic3007/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grok-bot-linux-headless

README.md
[![agentmods](https://agentmods.dev/badge/skills/magic3007/dotfiles/grok-bot-linux-headless/github.svg)](https://agentmods.dev/skills/magic3007/dotfiles/grok-bot-linux-headless)
Your own site
<a href="https://agentmods.dev/skills/magic3007/dotfiles/grok-bot-linux-headless"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/grok-bot-linux-headless/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grok-bot-linux-headless

Your own site · 80×15
<a href="https://agentmods.dev/skills/magic3007/dotfiles/grok-bot-linux-headless"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/grok-bot-linux-headless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.01426
Opus 5.5 $0.00063 $0.00570
Sonnet 5.5 $0.00031 $0.00285
Haiku 4.5 $0.00016 $0.00143

Measured 18d ago against content hash de57939c57d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

grok-bot-linux-headless scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y ./grok-bot_<ver>_amd64.deb

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://api2.cursor.sh/updates/api/download/stable/linux-x64/sand \
skills/grok-bot-linux-headless/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Grok Bot headless on Linux

Problem

A headless Grok Bot (Electron) on a Linux dev box looks logged in but never comes online. Several different causes stack up and mask each other: the client version is too old, the network path is half proxied, and something else keeps restarting the app or wiping its config.

Context / Trigger Conditions

  • The machine list shows the host as connected: false, sometimes with 3 or 4 entries for the same hostname.
  • The renderer is blank. document.getElementById("root").childElementCount === 0 and there are no console errors.
  • After a forced re-import of the bundle, the UI shows "Setting up Grok Bot's computer" and stays there.
  • desktop.cursorAccount.getStatus() returns kind: "logged-in" anyway, so login is not the problem.

Solution

  1. Check the version first. This was the real root cause. Compare dpkg -l grok-bot with a client that works, such as the Mac's ~/Library/Application Support/Grok Bot/desktop-status.json appVersion. The .deb build does not self-update (unsupported-platform). An old client (0.24.0 against 0.79.x) renders blank or sticks on "Setting up" forever. Upgrade from the official feed:
    curl -s https://api2.cursor.sh/updates/api/download/stable/linux-x64/sand \
      | python3 -c 'import json,sys;d=json.load(sys.stdin);print(d["version"],d["debUrl"])'
    curl -fLO "<debUrl>"
    systemctl --user stop grok-bot
    sudo apt-get install -y ./grok-bot_<ver>_amd64.deb
    systemctl --user start grok-bot
    
    The deb adds an apt source, so later upgrades are sudo apt install --only-upgrade grok-bot.
  2. Make sure only one instance owns the config dir. Another SSH session or script that restarts the app or recreates ~/.config/Grok Bot creates a new machine registration each time. Kill it and keep only the systemd unit.
  3. Run it as a user service (with loginctl enable-linger $USER):
    [Unit]
    After=network-online.target mihomo.service
    Wants=network-online.target mihomo.service
    [Service]
    ExecStartPre=/bin/sh -c 'rm -f "$HOME/.config/Grok Bot"/Singleton*'
    ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1600x1000x24" %h/.local/bin/grok-bot-x11 \
      --password-store=basic --remote-debugging-port=9223
    Restart=always
    RestartSec=5
    [Install]
    WantedBy=default.target
    
    grok-bot-x11 is exec /usr/local/bin/grok-bot --disable-gpu "$@". On Ubuntu 22.04 the wrapper also has to add a newer libstdc++ to LD_LIBRARY_PATH (tree-sitter needs GLIBCXX_3.4.31).
  4. Proxy the whole process tree, not only Chromium. --proxy-server only covers renderer and Chromium networking. The Node main process connected directly to api2.cursor.sh and the gateway. Env vars (HTTPS_PROXY, NODE_USE_ENV_PROXY=1) only partly helped. The reliable fix is a system-wide TUN proxy (see mihomo-tun-user-systemd).
  5. When restarting, kill leftovers first. If the old Electron process still holds 9223, the new one logs bind() failed: Address already in use and has no DevTools: systemctl --user stop grok-bot; pkill -u $USER -f "^/opt/Grok B[o]t/grok-bot". Use the [o] bracket trick so pkill -f doesn't match and kill its own shell.

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 108 lines · 157 tokens per session scan B de57939c57d3

Subscribe to this mod's changes

grok-bot-linux-headless is a skill published in the GitHub repository magic3007/dotfiles (11 stars, last pushed 5d ago), licensed MIT. It adds 157 tokens to every session and 1,426 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

grok-bot-linux-headless compared with skills from other repositories

grok-bot-linux-headless next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-bot-linux-headlessmagic3007/dotfilesSkill115d agoMITB157Claude Code, Codex
assess-qualityurmzd/dotfilesSkill64d agoApache-2.0A120Claude Code
create-oss-skillurmzd/dotfilesSkill64d agoApache-2.0A63Claude Code
extend-oss-skills-to-claudeurmzd/dotfilesSkill64d agoApache-2.0A74Claude Code
scaffold-nodeurmzd/dotfilesSkill64d agoApache-2.0A119Claude Code
test-codeurmzd/dotfilesSkill64d agoApache-2.0A101Claude Code
scaffold-docsurmzd/dotfilesSkill64d agoApache-2.0A196Claude Code