Documentation
Set up Topos with Claude Code, Codex or Cursor
Let your coding agent install Topos, read its own history, and answer from it
Updated October 15, 2026
Set up Topos with Claude Code, Codex or Cursor
If you already spend your day in Claude Code, Codex or Cursor, you can make that agent your Topos. It installs Topos for you, adds its own history as a source, and answers questions from your Topos without you opening another app.
Available with the on-ramp release of Topos and the Topos plugin. If your copy of Topos does not have the topos-node pair command yet, use Install Topos for now.
---
What you get
- Your agent answers from your Topos. Ask Claude Code "what have I been building this week, and where did I get stuck?" and it answers from your own sessions.
- Your coding history becomes a source. What you typed and what the assistant replied, from everything still on your disk, newest first. Claude Code deletes its own transcripts after 30 days by default; Topos keeps what it has read.
- It reads like you, on this computer. Messages, AI chats, mail, calendar and coding sessions in full. The most sensitive kinds of information (like health and beliefs) stay out until you turn them on for that agent.
- A name, a record, and an off switch. Every read shows under the agent's name in Activity and Connected apps. Disconnect stops it in one action.
- Nothing new is shared. Coding sessions go into a new "AI coding sessions" area that no existing share covers. You add it to a share yourself, later, if you want.
What it asks of you
Two deliberate steps, plus the agent's own permission prompts and one reload:
- Install the plugin and say "Set up Topos".
- Open the link the agent shows you, sign in, type the short code, read the page and click Approve. Back in the chat, confirm "is that you?".
Expect the agent to ask before each step that needs permission: installing uv, installing Topos (about 1 GB), and installing it as a background service. If Ollama is missing, the agent explains what it adds and installs it only after you say yes.
Downloads: about 1 GB up front and about 2.6 GB of privacy-filter models in the background. Your Topos is connected before the second download finishes; reading your history waits for it.
Before you start
- macOS. Linux comes after its own verified run; Windows later.
- A Dialogues account, or a few minutes to create one when the approval page asks.
- Claude Code 2.1.275 or later for the in-session install below (the shell form needs 2.1.292 or later). Codex Desktop and Cursor: current versions.
- Cloud sessions (claude.ai/code, Codex cloud, Cursor cloud agents) run elsewhere and write nothing to this computer, so they are not captured.
---
Claude Code
- In a Claude Code session:
``text /plugin install topos --marketplace dialoguesai/topos-plugin ``
Claude Code shows what the plugin adds — its skills, one background sync hook and the Topos server — and asks where to install it. Pick Install for you.
- Say "Set up Topos". Approve the prompts you agree with. When the link and code appear, approve in your browser and confirm "is that you?" in the chat.
- Tell the agent which folders to skip, if any, when it shows you how many sessions it found.
- Run
/reload-pluginswhen the agent asks. Topos tools appear.
- Ask your first question (below).
From a terminal instead: claude plugin install topos --marketplace dialoguesai/topos-plugin, then start Claude Code.
Codex
Codex Desktop is the hardest client to install into. Plugins come from a marketplace; whether you can add ours yourself from the desktop app, or need a workspace admin to import it, is being confirmed with OpenAI's current docs. Two ways in:
- If the Topos marketplace is available in your Plugins tab: install Topos, start a new chat, and say "Set up Topos".
- Otherwise, use the setup page. Paste one sentence into Codex:
> Set up Topos by following https://topos.dialogues.ai/setup/agent.md
The agent follows that page step by step and adds the plugin last.
Codex runs with a sandbox that blocks the network and writes outside your workspace by default, so expect an approval request for each install step. Codex has no background hook in this release: your history is read on an hourly schedule instead of after every turn.
Cursor
Cursor has no command-line install for plugins. Either way below, the agent can do the typing if you paste the setup-page sentence.
- Put the plugin in Cursor's local plugin folder:
``bash git clone https://github.com/dialoguesai/topos-plugin ~/.cursor/plugins/local/topos ``
- Run Developer: Reload Window (or restart Cursor), then switch the Topos server on in Customize.
- Say "Set up Topos" in a chat, or paste the setup-page sentence. Approve the prompts you agree with.
Cursor blocks the network by default except for an allowlist, so the install steps will ask for permission. On Teams and Enterprise plans, an admin controls whether local plugins are allowed; it is off by default on Enterprise.
Already running Topos on this Mac?
If the Topos menu-bar app or an earlier install is already running, the agent finds it and only adds itself. No new Topos is created and your key does not move: the approval page opens in "add an AI tool" mode, you type the code, and that is all. It never archives your Topos or starts a second one.
---
What is kept from your history, and what is left out
Kept: what you typed and the assistant's replies, from everything still on disk, newest first. The agent shows you the size before it starts. Folders you name are skipped.
Left out, and counted in a receipt: command output, file contents, the assistant's private reasoning, sub-agent work, and text that other tools or schedules typed for you.
Who sees it: you, and the agents you approved. It goes into a new "AI coding sessions" area that no existing share covers. Sessions in which your agent read your Topos are kept for you but are never shared and never used for derived insights.
Before anything is stored, Topos removes the exact values of its own keys, anything shaped like a secret, your home folder paths and your computer's name.
What leaves your computer
- Your transcript files are never uploaded. Topos reads them on this computer.
- Answers leave. Whatever the agent reads from your Topos goes to that tool's AI company — Anthropic for Claude Code, OpenAI for Codex, or Cursor and the model it routes to — including messages other people sent you. It also stays in that tool's own history on your disk.
- Asking Claude Code about your Cursor sessions sends Cursor conversations to Anthropic.
- Your key is fetched by your computer after you approve. Setup never prints it, and the plugin tells the agent never to read the file it lives in.
The first question
> What have I been building this week, and where did I get stuck?
The answer comes from your own sessions. Two more that work on day one: "Which projects took most of my coding sessions last month?" and, if you also connected ChatGPT, "What have I been asking AI about lately across ChatGPT and Claude Code?"
Pause, update, disconnect
- Pause stops reading new history until you resume. What is already stored stays.
- Update: when a new Topos is out, the agent tells you once at the start of a session ("Topos is out of date — say 'update Topos'"). Nothing updates by itself.
- Disconnect (in the app under Connected apps, or by asking the agent) stops the agent, turns the source off, removes the background hook and offers to delete what was read. Reconnecting goes through the approval page again. If your computer is off when you click Disconnect in the app, it shows "pending until your Topos is online".
If something goes wrong
The agent says "Topos isn't running". Say "start Topos". The agent installed it as a background service; this restarts it.
The approval page says the code is unknown. Codes last ten minutes. Say "set up Topos" again for a fresh one. Never type a code you did not start yourself.
The agent asks for your key, or offers to paste it. Stop. Setup never needs the key in the chat. Say "use topos-node pair" or run topos-node pair --manual in your own terminal.
"This agent was disconnected from Topos." Someone clicked Disconnect. Reconnect from the approval page by saying "set up Topos".
Nothing comes back for a question about your sessions. Reading history waits for the privacy models to finish downloading. Ask "how is Topos doing?" — the agent reports progress.
Set it up without the plugin
Any agent that can read a web page can follow the setup page. Paste this into Claude Code, Codex or Cursor:
> Set up Topos by following https://topos.dialogues.ai/setup/agent.md
It walks the agent through install, create, add the tool as a source, and plugin last — with every step that needs your permission named.