How I Have Claude Code Control Grok Bot (There Is No API)
Grok Bot is xAI's desktop app for AI "bots": named teammates that share one persistent Linux computer in the cloud, with a browser, a terminal, and your logins, and that keep working after you close the lid. Claude Code is where my real engineering happens: repos, tests, git. The two are good at different things, so I wanted Claude Code to hand a task to a bot and get the answer back. The…
Claude Code is xAI's desktop app for AI bots, a shared persistent Linux computer in the cloud with a browser, terminal, and logins. Claude Code is where engineering happens, dealing with repos, tests, and git. Grok Bot is the app's bot, but there's no public API to drive it. The only documented way to start a bot run is through a Webhook trigger.
This guide builds around that one door, requiring a return channel, a sender that never sends the same request twice, and a UI lane for configuration. The code is public, with 670 lines of dependency-free Python and 56 unit tests. The setup involves creating a dedicated Grok Bot, a routine to handle webhook tasks, and storing the webhook key securely in a secret manager.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.