HOW-TO GUIDE
How to have Grok Bot hand coding tasks to a local model through OpenCode
Based on a post by Asher Suter (@araysuter) on X · Nov 27, 2026
You'll end with: A Grok Bot that starts OpenCode sessions on your own machine, has a local model do the coding in Docker, and gets pinged when each task ends.
Why it's worth having: Coding work runs on a free, private local model instead of weekly Grok Bot usage, and the container sees only the folders you mount.
At a glance
WHO IT'S FOR
IT and OT engineers and developers at plants that keep code and data on their own hardware.
LEVEL
Advanced
COST
Free to read; the opencode-webhook plugin is open source. Needs Grok Bot and a machine for the model.
YOU NEED
Grok Bot · OpenCode · Docker · Tailscale · An OpenAI-compatible local model server · opencode-webhook
The method, in short
- 1Point OpenCode at any OpenAI-compatible local server, such as llama.cpp or LM Studio, and set permissions so no session waits on a click.
- 2Run OpenCode in a Docker container that mounts only your project folders, start it at boot with systemd, and keep it on Tailscale.
- 3Install the opencode-webhook plugin and a Grok Bot webhook routine, so a finished, failed, or stalled task pings the bot.
- 4Connect the Tailscale connector in Grok Bot, save the OpenCode password as a secret, and ask for tests and a PR.
Read the full guide from @araysuter on X
The X Article has the seven setup steps, the container start script, and a prompt your bot can run.
Credit: Asher Suter (@araysuter) on X