A Claude Code–Grok Bot bridge requires personal approval for each conversation
Source read in fullRead first
Overview
For macOS users who want local Claude Code and cloud Grok Bot to discuss or pass questions both ways, a background Mac service and relay link the two.
Workflow
- What it is: An open-source bidirectional bridge for local Claude Code and Grok Bot (MIT, first public v0.1.0, macOS only). Both sides can initiate. Every chat or extension of rounds needs human approval in Claude Code's native permissions dialog. AI can trigger it and cannot answer. The README states no affiliation with xAI, Cursor or Anthropic and only uses public features on both ends.
- Grok Bot parts used: A bot you own, official webhook, Routines and a connector. Each bot gets an Inbox from agentbridge Routine. Each delivery makes a Bearer-authenticated POST of ≤3,500 characters and triggers one Grok run, which also posts a short brief in Grok chat. Long messages are fetched through the connector. Grok approval cards are optional and not relied on for security. Self-limit to 60 deliveries per bot hourly, below Grok's 200 per Routine per hour. Not part of Grok Bot: local Node.js bridge, Claude Code plugin and hooks, launchd login item, Touch ID helper and public relay
relay.musi.liveon free Vercel/Upstash, with self-hosting available. - You need: macOS, Claude Code ≥2.1.330, Node.js ≥24, a Grok Bot account with a bot, and Touch ID or macOS password. Grok Bot uses Cursor sign-in. The public relay is free with no guarantee, or self-host on your own Vercel/Upstash. No additional plan or separate API key. The webhook and secret are generated while connecting the bot.
- Install: Global npm or source build, both using
agentbridge init.- Step 1:
npm install -g @musi27/agentbridge. If the npm package is unpublished, the README says build from source (git clone, thennpm ci && npm run buildand alias the CLI entry). - Step 2:
agentbridge init(README says under 10 minutes excluding Grok). Checks Claude Code and Node, installs a user plugin (restart open sessions to load), writes deny rules, confirmscrossSessionInboundis accept, verifies the Touch ID helper, creates an identity key in macOS Keychain and registers with the relay, chooses an approval mode (defaultper_conversation), installs launchd and runsdoctor. - Step 3: Follow
docs/setup-grok.mdand runagentbridge add grok. The author says it took about 5 minutes and the round-trip check passed in 18 seconds. - Step 4: Try it in a Claude Code session in default permission mode with the original instruction:
discuss with grok:<your-bot-name> whether this README is clear; stop after 4 turns
- After install: The agents can initiate chats in both directions with human approval each time.
- From Claude ask to discuss with grok:bot-name. From Grok say ask claude:name … in chat. The local prompt appears in about a minute.
- Each conversation opens native
bridge_confirmwith type, peer, direction, topic and round cap. It expires after 10 minutes. The CLI offers Yes/No with no never ask again. - Messages go both ways round by round. Each Grok reply is a fresh Routine run (about 20 seconds) and posts a brief in Grok chat. Both ends keep a closing summary.
- Long messages for Grok initially send roughly the first 4000 characters and fetch the rest through the connector.
- Privileged commands (
approve,show,config set,identity rotateand others) require Touch ID or password.
- Did the author run it: There are no separate run records, and all figures are README claims, not reproduced. Grok setup about 5 minutes, round trip 18 seconds, replies about 20 seconds (16–23), and four tampering test commands in auto mode ran without prompting. The support matrix marks Claude Code CLI, Claude desktop Code tab and Grok Bot app verified, and VS Code/JetBrains untested. The two opening transcripts are illustrative, with no captured output.
Key points and results
- Maturity: At fetch on 2026-11-23 it was under 1 day old (created 2026-11-22T23:10:11Z), with 4 commits, 0 stars, 0 forks, 0 open issues or PRs and MIT. README calls v0.1.0 the first public release. Commands and names may change before 1.0.
- Permissions and boundaries: Each chat and extension requires Claude Code's native
bridge_confirm. README says this was verified in 2.1.330 with default/acceptEdits/auto/bypass, subagents and after tool search. Allow rules and PreToolUse hooks cannot bypass it. dontAsk and headless deny. Privileged commands require Touch ID/password. Policy changes stop chats. The README says deliberate tampering by local programs remains possible, including direct bridge socket access, changing~/.agentbridgeor hosting Claude with Agent SDK. Deny rules do not cover invocations such assh -candnode. Sending messages is ungated, so a manipulated remote agent may induce a local one to disclose files or keys. - Known limits: v1 macOS only, with Linux/WSL 2/Windows planned. At about 20 seconds per Grok round, 30 rounds take about 10 minutes on the Grok side alone. Grok initiation takes around 60 seconds to reach approval. Grok cards expire in around 20 minutes and unanswered replies drop without retry. Each delivery carries roughly the first 4000 characters. Two participants only, no attachments or GUI, one identity per machine, and a free-tier public relay. Upstream product changes can affect behavior.
- Worth borrowing: Use host-native approvals.
bridge_confirmrequires user interaction that modes and rules cannot bypass (README How approvals work). - Worth borrowing: Document data flows. The relay sees plaintext on Grok→bridge before encrypting at rest and can forge Grok Bot calls if malicious. Cursor is absent from xAI's public subprocessors list. The README offers self-hosting (Data and privacy).
- Worth borrowing: Self-limit below the upstream cap. Deliver at most 60 per bot per hour, below Grok's 200 per Routine (README Data and privacy and
adapters/grok-bot/README.mdCap backstop).
Source
- Platform
- GitHub
- Author
- musi27
- Published
- Categories
- Code and repos, 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.