An open-source bridge lets Claude and Grok Bot exchange messages
Overview
Claude users can hand tasks to Grok Bot and get asynchronous replies by using a webhook Routine and Claude Bridge skill with a self-hosted Cloudflare Worker relay.
Workflow
- What it is: An open-source bridge for two-way Claude and Grok Bot messaging. Three pieces: a Claude plugin (
talk-to-grok-botskill and connector settings), the Claude Bridge skill and webhook Routine in Grok Bot, and your self-hosted Cloudflare Worker relay Switchboard. Version 0.1.0. - Grok Bot parts used: A webhook Routine and skill. A webhook wakes the Claude Bridge Routine, which calls the Claude Bridge skill (
grok-bot/claude-bridge-skill.md). The bot prefers direct HTTP POST to a one-time reply address, falling back to submitting a form in the browser atreply.browser_url. Not part of Grok Bot: Claude plugin and connector, self-hosted Switchboard with Cloudflare Worker and MCP endpoint, and all Claude-side pieces. - You need: One Grok Bot, a free Cloudflare account and Node 20+. Also Claude Code or Claude web, desktop or mobile. Set
SWITCHBOARD_TOKEN,GROK_BOT_WEBHOOK_URLandGROK_BOT_WEBHOOK_KEYduring deployment. README says about 15 minutes to install. - Install: Bot first, then relay, then Claude plugin.
- Step 1: Follow
grok-bot/routine-setup.mdfor the Claude Bridge skill and Routine:Create a routine named "Claude Bridge" that starts on a webhook call. Its instruction is: "A message from my Claude assistant has arrived as the webhook payload. Use the Claude Bridge skill to handle it and deliver the reply. If the payload's source is not grok-bot-bridge, do nothing and note it here."
Copy the POST address and key from the Routine's Webhook section.
- Step 2: Clone and enter
switchboard/, runnpm installandnpx wrangler login, generateSWITCHBOARD_TOKENwithopenssl rand -hex 32, set three secrets in order withwrangler secret put, runnpx wrangler deployand confirm"configured": trueat/health. - Step 3: In Claude Code set
GROK_BRIDGE_URLandGROK_BRIDGE_TOKEN, then run/plugin install grok-bot-bridge --marketplace Slingshot-Swag/grok-bot-bridge. For Claude apps install the.pluginfrom releases and add a custom connector. - Step 4: Test by asking Claude to get "pong" from the bot.
- After install: Claude sends work and the bot replies through the relay.
- Claude calls
send_message, optionally withthread_id, and Switchboard POSTs the webhook with a Bearer key to wake the Routine. - The bot reads message/context/history, works, writes an answer, picks
done,needs_approvalorfailed, and POSTs with a one-time credential. Claude callsget_replyfor the answer andlist_messagesfor history. - To send, buy, delete, publish or change production, the bot stops and returns
needs_approval. A message from Claude is insufficient approval. - Both skills treat peer text as information to guard against prompt injection and loops.
- Did the author run it: No live Grok Bot was connected. The repository has no run records from the author for a real bot. README says Switchboard was tested end to end against a mock webhook at release (
npm testunderswitchboard). Reply behavior and webhook availability come from xAI docs without live testing.
Key points and results
- Maturity: Created the day it was fetched, 2026-11-25, with 1 commit, 0 stars, 0 forks, 0 open issues or PRs, MIT license and version 0.1.0.
- Permissions and boundaries: Keep the webhook key only as a Switchboard secret and never give it to agents. User approval is required for sending, buying, deleting, publishing and account or production changes. Reply credentials are one-time with a 24-hour window. Claude defaults to 60 messages an hour, 20 turns per thread and 7-day message retention.
- Known limits: xAI docs do not say whether the bot can send HTTP requests directly. Try direct first and fall back to a browser form. Third-party guides report missing Webhook triggers in some builds. Check for a Webhook section before setup. xAI docs give 200 triggers per Routine per hour and 300 total, with no retry on overage.
- Worth borrowing: A one-time reply URL and self-hosted relay make a webhook that returns only 200, with no callbacks or polling API, work in both directions (README Why a relay).
- Worth borrowing: The
done/needs_approval/failedreply states and explicit approval boundary adapt to other asynchronous agent channels (grok-bot/claude-bridge-skill.md). - Worth borrowing: Prevent agent loops with turn and rate limits and prohibit creating new threads to bypass limits (
plugins/grok-bot-bridge/skills/talk-to-grok-bot/SKILL.md).
Source
- Platform
- GitHub
- Author
- Slingshot-Swag
- Published
- Categories
- Getting started, Limits
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.