Connect
Thegram
One account, one memory. Connect ChatGPT or Claude using OAuth, or use a scoped API key with coding agents and your own MCP-compatible service.
Use Thegram Cloud in your browser without installing a desktop app. The legacy Mac DMG and standalone Viewer site are no longer public entry points. Existing mobile readers and agent connections are separate.
- 01ChatGPTThegram plugin for chats and dotsOAuth sign-in
- 02ClaudeConnect Thegram through Claude’s MCP connectorsOAuth sign-in
- 03Coding agentsClaude Code, Codex, OpenCode and OMPScoped API key
Using a cloud agent? Connect Muse, a dot or Grok. Google CC is coming soon. Building agents on Cloudflare? Add Thegram to your agent. Connecting another service? Set up API access.
Verify the work, not the installation
Save, read,
correct, then reread.
In Thegram, choose a writable Vault and save a real decision along with its evidence. Open the document’s information panel and start its handoff check. Ask a different authorized AI connection to read the full body and the selected record contexts, then verify the document’s identity, Core revision, Vault generation and full artifact hash. Correct an inaccurate fact in a new revision and ask the second AI to read it again.
Installing a package, copying a URL, seeing a client name or running a connection check does not prove a handoff. The server records generated responses, not whether the model understood the content, and it does not guarantee network delivery. Different API keys alone do not identify different AI products. Drive and local files do not have a Vault receipt.
Use Settings → AI permissions for actual client IDs, Vault permissions and API keys. The observation window is 24 hours. Private handoff metadata is retained for 30 days from creation, with pruning at startup and hourly and a cap of 32 sessions per account and Vault combination. Existing backups have a separate lifecycle. See the privacy review and plan and limit review. These drafts are neither effective policy nor authorization to enable payments.
Memory workflow packages
Choose your
AI app.
Install the package for your host, then connect your Thegram account. Downloading a ZIP file or adding an MCP URL alone does not activate the memory skill. See How Thegram records information for the shared record vocabulary.
Claude plugin Portable cloud plugin
Release notes and SHA-256 checksums. The portable package is not an in-place replacement for an existing App-backed ChatGPT plugin. Keep the existing plugin’s registered identity and MCP connection, and use the host’s supported update process.
Coding agents use the same plugin with a scoped API key instead of OAuth. See Coding agents.
01 ChatGPT
Thegram
in ChatGPT
Install the Thegram plugin, sign in and authorize access to the Vaults you want to use. No API key or desktop app is needed.
02 Claude
Thegram
in Claude
Thegram is listed in the Claude Directory. Connect it there using your Thegram account. No API key, Node.js or desktop helper is needed. The companion plugin adds the memory workflow skill.
Connect from the Claude Directory
Open Thegram in the Claude Directory and select Connect. Sign in to your own Thegram account and review the access Claude requests. In Thegram, choose which vaults Claude can read or write to under Settings → AI permissions. Google Drive requires separate authorization.
If the Directory is unavailable on your Claude plan or in your organization, add a custom connector in Settings → Connectors using this URL and OAuth:
https://vault.thegram.one/mcpAdd the memory workflow (optional)
To use the memory skill, open Customize → Plugins → Add → Upload plugin in Claude and select the downloaded
thegram-claude.zip. The registered package name isthegram-cloud. The connector works without the plugin.Check that it works in a new conversation
What does Thegram remember about my projects?Claude should use Thegram tools and cite records you can access. Ask it to save only when you intend to write to a vault. Check the document and its revision history afterward.
Already installed?
Update the memory skill
Download the latest Claude ZIP file and use Claude’s plugin upload and update process for thegram-cloud, then start a new conversation. Keep your existing Thegram account connection. Updating the plugin does not change vault permissions or update an ongoing conversation.
Thegram is connected twice
If you added a custom connector and later connected through the Directory, keep one connection and remove the other in Claude’s connector settings.
Vaults are missing or access is denied
Review Claude’s access in Thegram under Settings → AI permissions. Read-only access does not allow changes to be saved. Reconnect only if Claude requests authentication. Never paste an API key into chat.
03 Coding agents
Your project’s
shared memory
Use one plugin and the same Cloud MCP in Claude Code, Codex, OpenCode, or OMP. You don’t need Node.js or a desktop app. A scoped API key replaces OAuth.
Issue a scoped API key
Open Thegram, sign in, and go to Settings → Agents → API keys. Name the key and choose which vaults it can access and what permissions it has. The secret is shown only once.
Keep the key private. Do not paste it into an agent conversation or commit it to your project.
Keep the key in your environment
Before running the commands below, store the secret as
THEGRAM_API_KEYin your own shell profile or secret manager. The commands pass the variable name, not the key, so the key never appears in an argument or in the agent conversation.-
Install the plugin
Ask your agent to follow the canonical guide:
Connect Thegram by following https://thegram.one/install/agents.mdOpen Terminal, run the commands from the canonical guide for your agent, then start a new session.
claude mcp remove --scope user thegram >/dev/null 2>&1 || true claude mcp add --scope user --transport http thegram https://vault.thegram.one/mcp --header 'Authorization: Bearer ${THEGRAM_API_KEY}' claude plugin marketplace add thegram-one/thegram-plugin || claude plugin marketplace update thegram-cloud claude plugin install thegram-cloud@thegram-cloudcodex mcp remove thegram >/dev/null 2>&1 || true codex mcp add thegram --url https://vault.thegram.one/mcp --bearer-token-env-var THEGRAM_API_KEYopencode mcp add thegram --url https://vault.thegram.one/mcp --header 'Authorization=Bearer {env:THEGRAM_API_KEY}'# OMP has no add command. In a session open its MCP settings (/mcp) and add an HTTP server named thegram: # URL https://vault.thegram.one/mcp, header Authorization: Bearer ${THEGRAM_API_KEY}These client-specific commands are generated from the canonical agent installation guide. If you previously added a server named thegram manually, follow the cleanup step for your host in that guide.
Start a new agent session
Ask the agent to call
vault_browse. It lists the vaults your key can access. An attempt to access a vault outside the key’s permissions is denied withAGENT_SCOPE_DENIED. Nothing is uploaded from your local files.What does Thegram know about this project?
If something goes wrong
The key is rejected
Check the key’s expiration date and permissions in Thegram under Settings → Agents. If the key has been revoked, issue a replacement. Do not switch storage or fall back to a local app.

04 Muse
Thegram
in Muse
Muse, Meta’s personal agent, connects to Thegram through a Custom Connector at https://vault.thegram.one/mcp using OAuth. No API key or separate app registration is needed.
Meta does not review custom connectors, so grant Muse access only to the vaults it needs. Official guide: How Muse works with Connectors.
Add a custom connector
In Muse, add a Custom Connector. Enter the connector name and server URL:
Thegramhttps://vault.thegram.one/mcpEnter OAuth settings
Fill out the OAuth form in this order. No API key or separate app registration is needed.
- Client ID
4gpizue9ou52pg5acykd8- Client secret
- Leave empty
- Authorization endpoint
https://auth.thegram.one/oidc/auth- Token endpoint
https://auth.thegram.one/oidc/token- Scopes
openid offline_access. If Muse addsprofileandemail, this client supports those scopes too.- Token auth method
- None (PKCE only, recommended)
The client ID is public, not a secret. Use this Muse client ID, not the Grok client ID or a Google OAuth client ID.
The registered redirect URI is
https://agent.meta.ai/api/hatch/oauth/callback.Save and connect
Save the connector, sign in to your own Thegram account, and review the requested access before authorizing it. Manage Muse’s vault and Google Drive permissions in Thegram under Settings → Agents → Thegram Muse. OAuth scopes are not vault permissions.
Check the connection
Ask Muse to list the vaults it can access, then ask it about your work:
What does Thegram remember about my projects?
We’ve verified that the OAuth request reaches Thegram’s sign-in page. Muse sign-in, token exchange, tool calls, and token refresh have not yet been verified end to end.
If something goes wrong
invalid_client or invalid_redirect_uri
Use the Muse client ID shown above. The Grok client ID allows only Grok’s callback and cannot be used for Muse. The callback must match https://agent.meta.ai/api/hatch/oauth/callback exactly.
A vault or Google Drive is missing
Review Thegram Muse in Thegram Settings → Agents and allow access only to the resources Muse needs.
Disconnect Muse
Remove the connector in Muse, then disconnect Thegram Muse in Thegram Settings → Agents.
05: dots
Thegram
in your dot
A dot is ChatGPT’s always-on agent. It uses the plugins connected to your ChatGPT account. Connect Thegram using the official Thegram plugin and OAuth sign-in. ChatGPT plugins do not accept API keys, so do not give your dot a Thegram key.
Official guide: Getting started with your dot.
Install the Thegram plugin
Open the plugin in ChatGPT and select Install plugin. Sign in to Thegram and approve access to the vaults you want to use.
Install pluginTurn on the plugin for your dot
Open your dot’s profile and go to Customize → Plugins. Select Thegram, review its permissions, and connect it. The Plugins screen uses your shared ChatGPT settings.
Ask your dot
What does Thegram remember about my projects?A dot can review connected information on its own and form memories from it. Set ChatGPT’s access to each vault in Thegram Settings → Agents.
If something goes wrong
Thegram is not in your dot’s Plugins list
Install the plugin first, then connect it to the same ChatGPT account and workspace as your dot. OpenAI notes that the apps available to a dot may vary.
The connection has expired
Open the reconnection request in the affected task, or reconnect Thegram under Customize → Plugins.
Disconnect your dot
Disconnect Thegram under Customize → Plugins, then disconnect ChatGPT in Thegram Settings → Agents. Information your dot has already obtained stays with it until you reset it.
06 Grok
Thegram
in Grok
Grok uses OAuth to connect to Thegram through a custom MCP connector at https://vault.thegram.one/mcp. Nothing runs on your computer.
Official guides: Grok Connectors and, for the separate xAI API route, Remote MCP Tools.
Access: Manage Thegram Grok’s vault and Google Drive permissions in Thegram Settings → Agents. OAuth scopes are not vault permissions. Enable only the data and actions you want Grok to use.
Add a custom connector
Go to grok.com/connectors, select New Connector, then select Custom. Enter the connector name and server URL:
Thegramhttps://vault.thegram.one/mcpOn Grok Business and Enterprise, a team admin first adds the connector at console.x.ai under Grok Business → Connectors → Add Connector → Other. Members then connect it on grok.com.
Enter OAuth settings
Fill out the OAuth form in this order. No API key or separate app registration is needed.
- Client ID
p13ez96egczgttbo5s090- Client secret
- Leave empty
- Authorization endpoint
https://auth.thegram.one/oidc/auth- Token endpoint
https://auth.thegram.one/oidc/token- Scopes
- Remove
profileandemail. Keep onlyopenidandoffline_access. - Token auth method
- None (PKCE only, recommended)
The client ID is public, not a secret. Do not enter
Grokor your API key in that field.Save and connect
Click Save and connect, sign in to your own Thegram account, then click Authorize. Back in Grok, Thegram should appear under Connected along with its list of tools.
To let Grok use other vaults or Google Drive, open Thegram Settings → Agents → Thegram Grok and select the access you want to allow.
Using the xAI API
This is a separate backend route, not the Grok web OAuth connector described above. Create a scoped key in Thegram Settings → Agents → API keys, select the required vaults, and start with Read. Store both keys in server-side environment variables. In the example below, allowed_tools limits the tools exposed to Grok.
curl https://api.x.ai/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $XAI_API_KEY" \
-d @- <<EOF
{
"model": "grok-4.7",
"input": [{
"role": "user",
"content": "What does Thegram remember about my projects?"
}],
"tools": [{
"type": "mcp",
"server_url": "https://vault.thegram.one/mcp",
"server_label": "thegram",
"allowed_tools": [
"gram_projects", "gram_brief", "gram_read",
"gram_recall", "gram_context"
],
"authorization": "$THEGRAM_API_KEY"
}]
}
EOFWith the xAI Python SDK, pass the same values to xai_sdk.tools.mcp(...). The SDK calls the tool filter allowed_tool_names.
The xAI API authorization format has not been verified with a live request. If a valid key returns HTTP 401, use "headers": {"Authorization": "Bearer <THEGRAM_API_KEY>"} instead of authorization (extra_headers in the Python SDK).
If something goes wrong
invalid_client
Use the shared public client ID shown above. Do not enter Grok as the client ID or provide a client secret.
invalid_scope
Remove profile and email. Keep only openid and offline_access.
A vault or Google Drive is missing
Open Thegram Settings → Agents → Thegram Grok and allow access to the vault or Drive account you want to use. Do not grant broader access than needed.
Disconnect Grok
Remove the connector in Grok, then disconnect Thegram Grok in Thegram Settings → Agents.
07 Cloudflare
Thegram in your
Cloudflare agent
Agents you build on Cloudflare can use Thegram as a remote MCP server. Connect to it from the Agents SDK in your own Worker, or put it behind an MCP server portal in Cloudflare One so your team can reach it through a single approved endpoint.
Official guides: McpClient API and MCP server portals.
Issue a key for the agent
Open Thegram and go to Settings → Agents → API keys. Name the key after the Worker or portal, select only the vaults it needs, and start with Read. The secret is shown only once.
Store the key as a Worker secret
From your Agents project, store the key as an encrypted secret rather than writing it into code or
wranglerconfiguration:npx wrangler secret put THEGRAM_API_KEYConnect from your agent
Call
addMcpServerwith a customAuthorizationheader. The connection is stored in the agent’s storage.await this.addMcpServer("thegram", "https://vault.thegram.one/mcp", { transport: { headers: { Authorization: `Bearer ${this.env.THEGRAM_API_KEY}` }, }, });Then pass the tools to your model using
tools: this.mcp.getAITools().Verify the connection without changing data
When
addMcpServerreturnsready, ask the agent to callgram_projectsand list the connected vaults. Do not create a test document to verify the connection.
Connect through an MCP server portal
Cloudflare One portals require an active domain on Cloudflare and an identity provider in Zero Trust. The dashboard’s Add MCP server form sets up OAuth using dynamic client registration. Thegram does not support dynamic client registration, so add Thegram using the API and a bearer credential:
curl "https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/access/ai-controls/mcp/servers" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json @- <<EOF
{
"name": "Thegram",
"hostname": "https://vault.thegram.one/mcp",
"auth_type": "bearer",
"auth_credentials": "$THEGRAM_API_KEY"
}
EOFThe portal sends the key as Authorization: Bearer. Then, in Zero Trust → Access controls → MCP Portals, add the server to a portal and set Access policies. Everyone admitted to the portal uses the same key, so limit it to the vaults they need and grant only read access unless write access is required.
If something goes wrong
addMcpServer returns authenticating
The Authorization header did not reach Thegram, so Thegram offered OAuth instead. Check that the secret exists in this environment and that the header value starts with Bearer .
HTTP 401 or key rejected
The key may have expired or been revoked. Issue a replacement in Thegram Settings → Agents, update the Worker secret or portal credential, then revoke the old key.
Disconnect
Remove the server from the agent or portal, then revoke its key in Thegram Settings → Agents. Removing the server from Cloudflare alone does not revoke the key.
08: API services
Thegram in
your service
Connect an external service or your backend directly to Thegram Cloud MCP. Use a remote MCP client that supports Streamable HTTP and a custom Authorization header. No coding agent plugin or desktop application is required.
This connection uses MCP over HTTP with JSON-RPC 2.0, not a general REST API. For OAuth-only connectors, use their OAuth connection instead.
Issue a key for this service
Open Thegram and go to Settings → Agents → API keys. Name the key after the service, select only the required vaults and Drive accounts, and grant the minimum permissions needed. Start with read access if write access is unnecessary. Keys expire within 90 days.
The secret is shown only once. Use a separate key for each service so you can revoke each key independently.
Configure the remote MCP connection
Field names vary by service. Select the service’s HTTP or Streamable HTTP MCP connector and use these values:
- MCP endpoint
https://vault.thegram.one/mcp- Authentication
- API key / Bearer token
- Custom header
Authorization: Bearer <THEGRAM_API_KEY>
Replace the placeholder only in the service’s private credential field or secret manager. If the service provides a Bearer token field, enter only the key. If it provides custom headers, use
Authorizationas the name andBearer <THEGRAM_API_KEY>as the value.A custom backend sends HTTPS POST requests with
Content-Type: application/jsonandAccept: application/json, text/event-stream. Let its MCP SDK initialize the connection, negotiate the protocol version, and include the returned session headers in subsequent requests.Keep credentials on the server
Connect only services you trust: the service receives the key and can access the data the key authorizes. Keep the key in an encrypted credential store or a server-side secret manager. Never put it in a URL, browser JavaScript, a chat, a public configuration file, or request logs.
A key’s permissions cannot exceed what your current vault role or organization policy allows. Granting access to a vault does not create a document-only sandbox. Existing local-only files are not uploaded automatically.
Verify the connection without changing data
Use the service’s connection check, then discover the available tools with MCP
tools/list. Callgram_capabilitiesandgram_projectsto inspect the authorized connection. Read only existing documents within the intended scope. Do not create a test document or expand permissions to make a check pass.If the service cannot send a custom header, this API key connection will not work with that connector. Use the service’s supported OAuth integration or a server-side MCP client instead.
Connection and key management
HTTP 401 or rejected credentials
Check the endpoint, the Bearer header, and whether the key has expired or been revoked. Issue a replacement key if needed and update the service’s private credential. Do not paste the secret into a support conversation.
Access denied or a vault is missing
Check the selected key scopes, current vault membership, and organization policy. Do not grant broader permissions automatically.
Disconnect a service or rotate its key
Revoke the service’s key in Thegram Settings to stop server access. Removing the connection from the external service alone does not revoke the key. To rotate the key, issue a new scoped key, update the service, and verify that it works. Then revoke the old key.
Need help?
[email protected] Coding agent guide ChatGPT guide Cloud agent guide
Read Thegram documents on iPhone and iPad with the App Store app. The app is not required for any agent connection.