Grok Bot
Grok Bot is not a coding agent, and kcap records it differently. A Bot writes no transcript file and its hooks carry no chat id, so instead a watcher, kcap grok-bot watch, reads each chat and stores it as kcap sessions, always private to you. It can read from either of two places:
- The cloud computer your Bots run on. Install kcap there once per account, not once per Bot, and every Bot’s chats are recorded, with your own computer off
- The Grok Bot desktop app on your own computer. Nothing is installed in the cloud; chats are recorded while that computer is on and the app holds them
Doing both is safe: the two read the same chats and cut them into the same sessions under the same ids, so a chat recorded from both places is stored once
Your workspace must know Grok Bot sessions: a workspace that does not refuses what the watcher sends, and kcap grok-bot status says so. An older kcap CLI has no kcap grok-bot command; kcap update brings it
What is recorded
Section titled “What is recorded”- Every chat of every Bot on the account (or every chat the desktop app holds), including the history from before you turned recording on
- The conversation only: your messages, the Bot’s messages, the questions a Bot asks with the answer you chose, and the name of a file a Bot shares, not its content. Tool calls and computer use are not recorded
- Sessions cut at two hours of quiet: a Bot has one endless thread, so a new session starts at the first message after two hours with none
- Private to you, whatever your profile’s default visibility. Secrets in a message are replaced before it leaves the computer, as for every other agent
A question a Bot asks is held until you answer or skip it, or send another message; an answer given after that, or more than two hours after the question, is not recorded. A message one Bot sends another is recorded in both chats
On the Grok Bot cloud computer
Section titled “On the Grok Bot cloud computer”Ask a Bot to do it
Section titled “Ask a Bot to do it”The quickest way is to ask any of your Bots, with your workspace address in place of https://acme.kcap.ai:
Read https://raw.githubusercontent.com/kurrent-io/kcap-cli/main/kcap/skills/connect-kcap/SKILL.md and follow it to connect kcap to https://acme.kcap.ai and record my Grok Bot chats. I approve the sudo read of the gateway file.The last sentence approves the privileged read most cloud computers need, described under When the gateway cannot be read. Leave it off and the Bot asks you first. A Bot may still decline it; the desktop app then records the same chats, on your computer
The Bot follows the connect-kcap skill:
- It installs kcap on the cloud computer
- It starts sign-in and shows you a sign-in link and a short code. Open the link on your own device, check the code matches and approve. The code lasts a few minutes; if it lapses, ask the Bot for a new one
- It tells you what will be recorded, the list above
- Once you approve, it starts the watcher, reading the gateway with
sudowhere it has to, and checks withkcap grok-bot statusthat your workspace accepted what it sent - If
crontabworks on the computer, it asks whether to add a line that restarts the watcher after the computer restarts. If not, it tells you the watcher must be started again after a restart

The kcap plugin from the Cursor marketplace carries the same connect-kcap skill
By hand
Section titled “By hand”In the cloud computer’s terminal:
npm install -g @kurrent/kcapkcap setup --server-url https://acme.kcap.ai --device --no-prompt --skip-cursor-hooks --skip-cursor-mcp --skip-importmkdir -p ~/.config/kcap/grok-botnohup kcap grok-bot watch >> ~/.config/kcap/grok-bot/watch.log 2>&1 &kcap grok-bot statuskcap setup --device prints the URL and code to approve on your own device. The two --skip-cursor flags matter: the cloud computer’s own hooks carry no chat id, so they cannot record a chat. The watcher does not survive a restart of the computer; run the nohup line again, or add a crontab line that starts it when none is running:
*/5 * * * * pgrep -f "[k]cap grok-bot watch" >/dev/null || nohup /full/path/to/kcap grok-bot watch >> $HOME/.config/kcap/grok-bot/watch.log 2>&1 &Cron reads no shell profile, so name kcap by the full path command -v kcap prints. Only one watcher runs per computer: a second one refuses to start, so running the line again is safe
When the gateway cannot be read
Section titled “When the gateway cannot be read”The watcher reads the cloud computer’s local Grok Bot gateway through a descriptor file, ~/sand-data/gateway.json. On some cloud computers that file is owned by another user and a Bot’s own user cannot read it, so the watcher reports No Grok Bot here. Where the computer allows a privileged read, the watcher can take the descriptor from a command instead:
nohup kcap grok-bot watch --gateway-cmd "sudo -n cat $HOME/sand-data/gateway.json" >> ~/.config/kcap/grok-bot/watch.log 2>&1 &This reads a file the computer deliberately keeps from Bots, so it is off unless you pass it, and the connect-kcap skill uses it only with your go-ahead, given in the prompt above or when the Bot asks. A Grok Bot update can stop it working. The command runs with no shell: no pipes, it must exit at once, and it needs an absolute path, since ~ stays literal inside the quotes
On your computer, with the Grok Bot desktop app
Section titled “On your computer, with the Grok Bot desktop app”The Grok Bot desktop app keeps its own copy of each chat on your computer, and the kcap daemon can record them from there. Turn it on in any of three ways:
- The desktop app: Settings → Harnesses shows a Grok Bot group on a computer where kcap finds the Grok Bot app. Tick Record chats; the daemon starts recording within half a minute, and unticking stops it the same way
kcap setup: when it finds the Grok Bot app it asks once, Record your Grok Bot chats too?, and remembers the answer either way- The CLI:
kcap config set grok_bot.record true, orfalseto stop. The running daemon follows within half a minute

The setting belongs to the profile, and the daemon runs the watcher itself while it is on, so recording starts with the daemon at login and needs no terminal. The daemon must be running: the desktop app runs it, and from a terminal kcap daemon start -d starts it
To see what would be sent before turning anything on:
kcap grok-bot watch --once --dry-runIt lists the chats it finds and the calls it would make, and sends and saves nothing. kcap grok-bot watch on its own runs the watcher by hand in that terminal, without the daemon; Ctrl+C stops it
The desktop app keeps only the newest part of a long chat. A chat whose beginning the app no longer holds is recorded from its next two-hour gap on
Check it is recording
Section titled “Check it is recording”kcap grok-bot statusThe status says whether a watcher is running on this computer, whoever started it, which workspace it posts to as which profile, and what its last cycle met. A watcher stays running while the workspace refuses what it sends, so running is not the same as recording; the sentence after the profile says which:
| kcap grok-bot status says | What it means |
| --- | --- |
| The server last accepted a delivery at … | Recording. The sessions are in kcap, private to you |
| Nothing has needed sending since it started | Running, and nothing has shown yet that your workspace accepts what it sends; the next message in any chat settles it |
| Its first cycle has not finished | Just started; ask again in a few seconds |
| could not read N chat(s) | Those chats are not recorded yet; the watcher tries them again by itself |
| Its last cycle failed: … with 401 | Your sign-in lapsed. Run kcap login --device and approve the new code; the watcher picks it up and catches up |
| Its last cycle failed: … with 410 | That session was deleted in kcap. The watcher keeps retrying it and sends nothing after it in that cycle, so later chats wait too, whether it reads the cloud computer or the desktop app. A kcap update that steps past deleted sessions is coming; kcap update brings it once released |
| Its last cycle failed: … with another status | Your workspace refused these sessions, which a workspace that does not know Grok Bot does |
| No Grok Bot watcher is running | Nothing is recording on this computer. On a cloud computer, the last lines of ~/.config/kcap/grok-bot/watch.log say why |
A failed cycle is retried with a doubling wait up to five minutes and logged once, not on every retry. Nothing advances until your workspace accepts, so the watcher resumes from where it left off and a restarted one resends nothing. What it can resume is only what its source still holds: the desktop app keeps the newest part of a long chat, so messages the app drops during a long outage are not recorded
Stop recording
Section titled “Stop recording”- The desktop app: untick Record chats under Settings → Harnesses → Grok Bot, or run
kcap config set grok_bot.record false. Akcap grok-bot watchyou started in a terminal keeps recording until you stop it - The cloud computer: remove the crontab line first, if you added one, so nothing starts a watcher again; then
pkill -f "[k]cap grok-bot watch", and check thatkcap grok-bot statussays no watcher is running
Sessions already stored stay in kcap; Delete a session removes one
Worth knowing
Section titled “Worth knowing”The gateway and the desktop app’s chat files are internal, undocumented Grok Bot formats, and a Grok Bot update can change them. The watcher logs and retries rather than guessing at a shape it does not know. Delivery state lives under ~/.config/kcap/grok-bot/, kept apart per workspace and profile