Grok
AlwaysOn Memory connects to Grok (AI chat, CLI & xAI API) over Streamable HTTP MCP using browser OAuth 2.1 approval in grok.com/connectors or grok CLI. Once connected, Grok can read, search, write, and hand off project memory across fresh sessions and other connected tools.
How do I connect Grok to AlwaysOn Memory?#
Connect Grok over Streamable HTTP MCP with OAuth 2.1 PKCE. Paste https://always-on.cloud/mcp (or your workspace URL https://always-on.cloud/t/YOUR-WORKSPACE/mcp) into grok.com/connectors or grok CLI, pick OAuth, and approve access in your browser. AlwaysOn issues rotating refresh tokens and stores no static key on disk.
- Transport
- Streamable HTTP MCP (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05)
- Authentication
- Browser OAuth 2.1 with PKCE S256, Dynamic Client Registration (RFC 7591), and rotating refresh tokens. No static secret is stored on disk.
Config location- grok.com/connectors or grok CLI
Universal OAuth URL- https://always-on.cloud/mcp
Workspace URL- https://always-on.cloud/t/YOUR-WORKSPACE/mcp
- Add AlwaysOn to Grok
In Grok on the web, open grok.com/connectors → New Connector → Custom, paste the Server URL below, and complete browser sign-in.
Server URL (grok.com/connectors, Grok CLI & xAI API)https://always-on.cloud/t/YOUR-WORKSPACE/mcp
- Load the memory tools in Grok
Using Grok Build CLI? Run: grok mcp add --transport http alwayson <Server URL> --header "Authorization: Bearer <key>".
Notes: Universal endpoint (pick any workspace during approval): https://always-on.cloud/mcp. For Grok Build CLI or xAI API bearer-key auth, create a connection key under Connections and pass it in the Authorization header.
How do I verify Grok recalls memory across sessions?#
Save one harmless decision, open a brand-new session so chat history is empty, and ask Grok to recall it. If it comes back accurately, the setup works—and the dashboard Setup screen logs the save, the new initialize handshake, and the retrieval.
- Save one test decision
In Grok, ask: "Save to AlwaysOn memory as a project decision: we ship the smallest useful version first."
- Check recall in a fresh session
Open a new chat or restart Grok, then ask: "Check AlwaysOn memory: what did we decide about the first release?"
- Confirm it in the dashboard
Open Memory or Setup in AlwaysOn to see the saved memory page and the server-observed MCP events.
How do I fix common Grok connection errors?#
Most Grok setup problems come down to four things: a mistyped or revoked connection key (HTTP 401), hitting the Free browser-approved app limit (HTTP 402), a wrong workspace slug (HTTP 403), or a session that hasn't reloaded grok.com/connectors or grok CLI yet.
Why did browser approval hit an app limit error in Grok?
Free workspaces allow 1 active browser-approved app at a time (Pro Solo allows 5; Team allows 15). Open Connections in AlwaysOn, revoke an unused app (your saved memories stay intact), and approve Grok again.
Should I paste the universal /mcp URL or a workspace URL into Grok?
Either works. Paste https://always-on.cloud/mcp if you want to pick a workspace during browser approval (or create your first free workspace on the spot). Paste https://always-on.cloud/t/YOUR-WORKSPACE/mcp if you want Grok locked to one workspace.
Do I need a paid Grok plan to connect AlwaysOn Memory?
AlwaysOn doesn't require or sell a Grok subscription. Whether custom remote MCP connectors are enabled depends on your Grok plan—check Grok's connector settings if the custom MCP option is greyed out.