/install x-grok-to-obsidian
Export Grok conversations in two stages.
Stage 1 — Capture conversation JSON from X/Grok
Run the browser script in Chrome DevTools Console on https://x.com/i/grok while logged in.
Use script: scripts/export_grok_items_capture.js
Behavior:
- Intercept only
GrokConversationItemsByRestIdresponses (fetch+XHR) - Load chat history with multi-pass scrolling
- Open each discovered conversation to trigger backend responses
- Save one JSON file with conversation metadata + ordered item payload
Quick settings (edit at top of script before run):
INDEX_PASSES(default3)CAPTURE_PASSES(default3)MAX_CHATS(null= all, or number for test)
Output:
grok-network-capture-\x3Ctimestamp>.jsondownloaded by browser
Stage 2 — Convert JSON to Obsidian Markdown
Run Python converter locally:
python3 scripts/convert_grok_capture_to_md.py \
--input /path/to/grok-network-capture-*.json \
--out /path/to/output-folder
Converter defaults:
- Frontmatter fields:
URL,created - Body starts immediately with
# \x3Ctitle>(no blank line before header) - Turn headings:
## User/## Grok(no numbering) - Turn separator:
--- - Turn order: reverse API item order (API is newest-first)
- Reasoning/deepsearch omitted by default
Useful flags:
--include-reasoningincludethinking_traceblocks--separator "---"customize turn separator--overwriteoverwrite same-title files instead of creatingTitle 2.md
Notes
- Prefer several index/capture passes because X history rendering is lazy and inconsistent.
- If discovered chat count is unexpectedly low, re-run Stage 1 with higher pass counts.
- Keep scripts generic; avoid user-specific absolute paths.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install x-grok-to-obsidian - After installation, invoke the skill by name or use
/x-grok-to-obsidian - Provide required inputs per the skill's parameter spec and get structured output
What is X Grok to Obsidian?
Export Grok conversations from X (x.com) via browser-network capture and convert them into Obsidian-ready Markdown files. Use when a user wants to back up Gr... It is an AI Agent Skill for Claude Code / OpenClaw, with 410 downloads so far.
How do I install X Grok to Obsidian?
Run "/install x-grok-to-obsidian" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is X Grok to Obsidian free?
Yes, X Grok to Obsidian is completely free (open-source). You can download, install and use it at no cost.
Which platforms does X Grok to Obsidian support?
X Grok to Obsidian is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created X Grok to Obsidian?
It is built and maintained by hajekt2 (@hajekt2); the current version is v0.1.0.