Claude Code hands tasks to Grok Bot
Instead of a webhook that kept returning 400, Claude Code sends tasks to Grok Bot through 4 API calls with one stdlib Python script and no daemon. The article covers the setup, three traps and two safety rules.
Best for Developers who want Claude Code to delegate tasks to Grok Bot
I use Claude Code for coding and Grok Bot for jobs that run on a schedule or use my connected apps, so handing work from one to the other is handy. @mikan77_aoi first tried a webhook, kept getting 400 errors, and switched to something simpler: Claude Code sends tasks to Grok Bot through 4 API calls, using one stdlib Python script and no daemon.
The prompt asks for that script: send a task from Claude Code to Grok Bot through its API and return the result, with no webhook or daemon. The article walks through the setup, three traps and two safety rules.
My tip: read the traps and safety rules before you run the script on real work. For the reverse direction, Locum lets Grok Bot hand coding work to the Claude Code and Codex CLIs on your own machine.
Not on the marketplace yet
Install it with its prompt: 1. copy the prompt below, 2. paste it into a new chat with your Grok Bot. It sets the job up from there.
Write a small stdlib Python script that sends a task from Claude Code to Grok Bot through its API and returns the result, with no webhook or daemon.
Questions
Can Claude Code send tasks to Grok Bot?
Yes. In this setup by @mikan77_aoi, Claude Code sends tasks to Grok Bot through 4 API calls with one stdlib Python script and no daemon.
Why not use a webhook to connect Claude Code and Grok Bot?
The author's webhook kept returning 400 errors, which led to the switch to direct API calls. The script approach also needs no daemon running in the background.
How do I get started with the Claude Code to Grok Bot script?
Copy the prompt into a new Grok Bot chat to get the script written. Then check it against the article's three traps and two safety rules before you rely on it.