Skip to content
KurrentDB

grok-bot

Terminal window
kcap config set grok_bot.record true
kcap grok-bot status
kcap grok-bot watch [--once] [--dry-run] [--gateway <path>] [--gateway-cmd <command>] [--desktop <dir>] [--interval <seconds>]

Storing Grok Bot chats is off until you turn grok_bot.record on for the profile; setup asks once on a computer with the Grok Bot desktop app. While it is on, the daemon runs the watcher itself, so storing starts with the daemon and needs no terminal. watch runs the same watcher by hand. One watcher runs per computer

Every chat is stored: each Bot’s own thread and every new chat. A session starts after a chat has been quiet for 120 minutes and ends once that long passes with no new message. Only the conversation is stored: your messages, the Bot’s messages and the choices made on its questions, not tool calls. Sessions are always private to you

The watcher reads from one of two places and produces the same sessions from either, so a chat read in both is stored once. On a Grok Bot cloud computer it polls the computer’s local gateway and keeps going with your own computer off. On a computer with the desktop app it reads the app’s own copy of each chat; a long chat whose beginning the app no longer holds is stored from its next quiet gap on

status says whether a watcher is running on this computer, which server and profile it posts to, and how its last cycle went: an accepted delivery, nothing to send, or the server’s refusal. A watcher keeps the server and profile it started with. A failed cycle is retried with a doubling wait of up to five minutes, and nothing is skipped: a fixed sign-in catches up

OptionMeaning
--onceRun one polling cycle and exit, with 1 if it failed
--dry-runLog the calls it would make; send and save nothing. --gap-minutes <n> then shows the sessions another quiet gap would cut
--gateway <path>The gateway descriptor to read; default ~/sand-data/gateway.json
--gateway-cmd <command>Read the gateway descriptor from this command’s output, for a cloud computer that keeps the file from the Bot’s own user. Run directly, with no shell
--desktop <dir>Read the desktop app’s chat store in this directory
--interval <seconds>Polling interval; default 5

To set up a Grok Bot cloud computer, give the Bot the connect-kcap skill and say Connect kcap with your workspace address. Grok Bot has the prompt to give it and what happens next