Skip to content
ThegramDocs

Understand AI connections

Automatic copy was not allowed. Select the content and copy it manually.

In this chapter: what "connection" means in Thegram, where a connected AI shows up, and where you go to disconnect one.

Settings has two menus with similar names. They point in opposite directions.

Menu Who uses what Examples
Settings › AI permissions The AI you use reads and writes your Thegram storages ChatGPT, Claude, Claude Code, Codex
Settings › Connected services Thegram reads material from your work services Notion, GitHub, Slack

This chapter and the next three cover the first row: an AI that uses Thegram. Work services are covered in Service connectors.

An AI connects by signing in or with an API key. Either way, it then has its own line in Settings › AI permissions.

AI app (connect by signing in) API key
Mostly used by Chat AIs such as ChatGPT, Claude, Grok and Muse Coding agents such as Claude Code and Codex
How you connect Add Thegram on the AI's side and sign in with your Thegram account Create a key in Thegram and put it on your computer
Where it is listed AI apps API keys
Lifetime There is no field for it You choose it when you create the key (30 days, 90 days, a date, or never expires)
How you remove it Open the AI and select Disconnect Open the key and select Revoke

The first connection is described step by step in 2. Connect the AI you use.

  1. Select your name at the bottom left, then Settings.
  2. Select AI permissions on the left.
The AI permissions screen in Settings: one Shared permissions line at the top, then the AI apps list with two Grok entries and Muse, then the API keys list with two keys; each line shows a summary of storage permissions and the last-used time
Settings › AI permissions. From the top: shared permissions, AI apps, API keys.

Each line tells you this.

  • The text under the name is the storages that AI can use and at what level. "Team storage Read" means it can only read that storage.
  • Set separately means this AI does not follow the shared permissions and keeps its own. See Understand storage permissions.
  • Last used is when that AI last used Thegram. Use it to tidy up connections you no longer use.
  • Lifetime (API keys only) reads "Until Jan 1, 2027" or "Never expires".
  1. In Settings › AI permissions, select Connect an AI app.
  2. Choose the AI.
The list that opens from Connect an AI app: ChatGPT opens the plugin page, Claude opens the connector directory, Grok and Muse ask you to check the values to paste first
The menu says "Sign in to Thegram from the app and it shows up in this list."
  • ChatGPT and Claude open that AI's Thegram page in a new window. Connect there and sign in with your Thegram account.
  • Grok and Muse first open a screen with the values to paste. Use the copy button next to each value, paste them into the AI's connector settings one by one, then sign in to Thegram and approve.
The Grok setup screen: choose Custom under New Connector, then paste the Server URL, Client ID, Authorization endpoint, Token endpoint and Scopes in three steps, with an Open in Grok button
For Grok and Muse, copy the values from this screen exactly.

Creating an API key is covered in Set permissions for each AI.

This is the part people mix up most. A connection means the AI can enter your Thegram account. A permission says which storages it can use once inside, and how far.

  • An AI that is connected but has no permission answers that it has "no storage" or that "access was denied".
  • A new storage starts with AI permission None. Even with a working connection, you open each new storage yourself.
  • With Read only, the AI can look things up but cannot save.

The next chapter explains how permissions are decided.

Remove AIs you no longer use and keys you have lost.

  • AI app: in Settings › AI permissions, open the AI and select Disconnect. All of its access ends. To use it again, sign in again from the AI.
  • API key: open the key and select Revoke. Any agent using that key loses access at once. A revoked key cannot be restored; create a new one.

Documents the AI already wrote stay in your storage after you disconnect it.

  • The same AI appears twice. If you connect to Thegram twice from the same AI, each connection gets its own line inside that AI's group. Each line has its own permissions, so check both and disconnect the one you do not use.
  • ChatGPT is not under Connected services. AIs such as ChatGPT are under AI permissions. Connected services is for work services such as Notion and GitHub.

Next chapter: Understand storage permissions

Something different from this guide? Report a docs issue · Troubleshooting
Review and send the email yourself. Do not include API keys or private document content.