Cortex
Search help⌘K

Where Cortex keeps its files

Updated 22 November 2026Cortex 0.29.04 min read
On this page

The state folder, preferences, Keychain items, and what is safe to delete.

Cortex keeps its own state in one folder on your Mac, as readable JSON files. It never writes its state into your context folders. This article lists what is where, so that you can back it up, move it, or clear part of it.

The state folder

Almost everything is under ~/Library/Application Support/Cortex/. In Finder, choose Go → Go to Folder… and paste that path.

What Where in that folder
Your list of contexts, their order, the folders Find Contexts searches and the last context workspace.json
Each context's settings and layout (tabs, splits, zoom, pins) contexts/
The Stack stack.json
Accounts, their order and their colours, and a Cortex Agent account's models accounts.json
The last usage meter readings usage.json
Cortex Agent accounts' folders, with their session transcripts agents/
The OpenRouter model list openrouter-models.json
Minis, rooms and the minis' own sessions minis.json, minis/, rooms/, mini-sessions.json
Tasks and their runs tasks/
Meetings: transcripts and audio meetings/
Speech models and your voice clip models/, transcription/
Each context's private memory vectors/
MCP servers that were set aside by the sandbox mcp-servers.json
Your Cortex ID's state on this Mac: the server address, device and Cortex ID identifiers, contacts and pending jobs server.json, with shared-minis.json, shared-minis/ and visited-minis/ beside it
Your contacts contacts.json
Signing: your hand signatures, the certificates of this Mac's signing key, and the list of signatures made on this Mac signing/drawings.json, signing/keys.json, signing/history.json

Settings you change in the app, such as the theme, the font sizes, the defaults of the signing sheet, and whether the Help panel is open and which page it shows, are in macOS's own preferences for Cortex, not in that folder. macOS keeps the window's size and position itself.

Temporary files made for each launch of an agent are under $TMPDIR/cortex/ and are removed when the launch ends.

What Cortex does not write into your contexts

App state is never written into a context folder. The only things Cortex writes there are content: files you create or save, images you drop into images/ next to a document, your context note (NOTES.md, or the file Context Settings names), a meeting you export (into the exports' folder set in Settings), and a task run's outputs, in the context's @outputs/ folder and in the task's output folder when it names one. What your agents write there is your content too. Their own folders, .claude/ and .codex/, belong to the agents, not to Cortex.

Your agents' own state stays where they keep it. Claude Code's is in ~/.claude, and Codex's is in ~/.codex. Cortex reads it and does not copy it. Cortex's own sessions list is derived from those folders and is never stored separately.

The Keychain

Secrets are never in these files. They are in the macOS Keychain:

  • the handle of this Mac's signing key, whose key itself is in the Mac's Secure Enclave, and the Cortex ID key of this Mac, which stay on this Mac and do not sync;
  • the key of each Cortex Agent account, named "Cortex Agent —" followed by the account's name;
  • the OpenAI key for a meeting's refine pass, if you use that engine.

Your Claude Code and Codex sign-ins are the agents' own and Cortex never sees them. See Your keys and sign-ins.

If a file is damaged

A file that cannot be read is renamed <name>.broken-<date> and Cortex starts a fresh one. It is never silently overwritten. The log says which file did not parse, by name, without its content. Newer files degrade gracefully: an entry written by a newer version of Cortex that this one does not know is skipped, and the rest of the file loads.

What is safe to delete

  • usage.json and openrouter-models.json are caches. Cortex refreshes them.
  • Deleting contexts/ resets every context's layout and settings: names, colours, pins, extra roots and notes files.
  • Deleting workspace.json empties your list of contexts. You add them again with the + menu in the Contexts section. See Add your contexts.
  • Deleting accounts.json forgets your accounts, though the agents' own folders remain.
  • minis/, rooms/, tasks/, meetings/ and vectors/ hold your own work and cannot be rebuilt by Cortex.
  • signing/ holds your hand signatures, your Sign as profiles and the list of signatures made on this Mac. Deleting it loses them, though a signed PDF stays valid. Remove the signing key with Remove Key… in Settings → Signing instead.
  • Do not delete server.json to leave a Cortex ID. Use Forget This Mac in Settings → Cortex ID.

Something wrong or missing? Tell us

Open this page in your browser