memtwig
← All integrations

Use memtwig with Grok Bot & CLI

Stdio + HTTP RBAC

Give 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 mcp

Why pair memtwig with Grok Bot & CLI

More integrations

Install v1.6.0 MCP Reference

Last updated

Questions

Short answers about setup, privacy, and workflow fit.

Read the docs →
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.