Use memtwig with Grok Bot & CLI
Stdio + HTTP RBACGive 24/7 Grok Bots scoped HTTP MCP access while keeping local Grok CLI synced.
xAI
Grok Bot & CLI
Grok CLI & Cloud Bot
stdio + HTTP memtwig
POST /mcp · Bearer RBAC
Studio UI Diff queue
Active vault
propose-only client vault
Personal rules
SOUL.md · persona/**
Other clients
isolated
Configure a scoped RBAC token in config.toml
[server]
addr = "127.0.0.1:8787"
audit_log_path = "~/.local/share/memtwig/audit.jsonl"
[[server.tokens]]
name = "grok-bot"
token_env = "MEMTWIG_GROK_TOKEN"
role = "proposer"
vaults = ["acme"]
path_globs = ["projects/**", "infra/**"]Run HTTP server for Grok Bot (or stdio for Grok CLI)
# Cloud Grok Bot (expose via HTTPS / Tailscale to POST /mcp):
export MEMTWIG_GROK_TOKEN="replace-with-random-token"
memtwig serve --addr 127.0.0.1:8787
# Local Grok CLI: register stdio MCP command:
memtwig mcpWhy pair memtwig with Grok Bot & CLI
- Autonomous 24/7 Grok Bots run with role = 'proposer' and never overwrite notes directly.
- Every memory search, read, and proposal from the bot is recorded in audit.jsonl.
- Local Grok CLI sessions connect via memtwig mcp with zero network setup.
More integrations
Last updated
How do I prevent an always-on Grok Bot from corrupting notes? +
Assign role = 'proposer' and specific vault/path globs in [[server.tokens]]. All edits queue as diffs for you to approve in memtwig ui.
Can a Grok Bot access multiple clients with one token? +
Only if you explicitly list them in vaults. By default, a token only sees the vaults and path globs you allow.