cachly in Obsidian
Explain it once, every AI knows it. Your team's AI tools learn fixes, decisions and traps in Claude Code, Cursor, Copilot, Windsurf, Codex, Gemini CLI or JetBrains. The plugin puts those lessons into your vault as notes, so you can read, search and link them.
Start in four steps
About two minutes. A new account has no lessons yet; they appear once one of your AI tools learns something. Connect an AI tool and sync again.
- Create a free cachly account and an API key on the setup page. The key starts with cky_.
- Install cachly from Obsidian's community plugins and open Settings → cachly.
- Paste the key. The plugin checks it and lists your Brains. With one Brain it is picked for you; with several you choose from a list.
- Click Sync now (or the ribbon icon, or the command Sync lessons). The notes appear in the folder cachly/.
What the plugin does
- One note per lesson
Each lesson becomes a Markdown note in cachly/ (the folder can be changed). The front matter holds cachly_id, topic, outcome, severity, tags and date; the body holds what worked, what failed, commands and files.
- An overview note
cachly/README.md lists all lessons by category, so you can browse and link them like any other note.
- A graph, not a star
Lessons link to hub notes for their topic, author and files, so Obsidian's graph view shows a network. Hubs are written to cachly/topics/, cachly/people/ and cachly/files/.
- Sync on a schedule
Optional automatic sync: off, every 15 minutes, every 60 minutes or every 6 hours, and once at start.
- Nothing is deleted
Lessons that no longer exist in cachly move to cachly/_archiv/. Your own notes in the folder (notes without cachly_id) are never touched.
Two-way sync: off by default
Out of the box the sync goes one way, from cachly into the vault. Every sync overwrites the lesson notes in the target folder, and nothing leaves your vault. Since plugin 0.3.0 there is an optional way back. It does nothing until you switch on Enable pushing notes to Brain in the plugin settings. Then notes you share become lessons, and Claude Code, Cursor or JetBrains find them like any other lesson.
- What can be uploaded
Only Markdown notes in the shared folder (default cachly/shared), or notes with cachly_sync: true in their properties. Never README.md, cachly/_archiv/, the hub folders, hidden folders, attachments or files larger than 32 KB.
- Secrets stay home
Before any upload the plugin checks the note for key-like text: cky_, ghp_, sk-, sk_live_, AKIA, private keys and postgres:// addresses with a password. On a hit it uploads nothing and names the note, without repeating the text.
- Only changes are sent
The plugin keeps a SHA-256 hash per note in its own data file, so an unchanged note is not uploaded again. Your note itself is not rewritten.
- Auto-push on save
Off by default and only with pushing on: an opted-in note is uploaded 3 seconds after you stop editing it.
- Your shared folder is safe from the sync
The sync from cachly never archives, overwrites or creates notes in the shared folder.
An example note
The properties set the topic, outcome, severity, visibility, tags and files of the lesson. The section ## What worked becomes what worked, ## What failed what failed.
---
cachly_sync: true
topic: db:postgres-connection-pool
outcome: success
severity: major
visibility: team
tags: [postgres, performance]
file_paths: [api/internal/db/pool.go]
---
## What worked
Set `max_open_conns=25`.
## What failed
200 connections without pgbouncer caused latency spikes.Without properties, the topic becomes obsidian:<file-name> and the whole note becomes what worked, shortened to 4,000 characters. The outcome is then success, and the visibility is your setting, team or private.
Commands
- Push current note to Brain uploads the open note. If it is not in the shared folder and has no cachly_sync: true, the plugin asks first.
- For a lesson note that came from cachly, the plugin checks whether the lesson changed in cachly since your last sync. If so, it asks before it overwrites. The safe answer, Cancel, is preselected, so a stray Enter uploads nothing.
- Sync both ways now first syncs from cachly, then uploads the changed notes of the shared folder.
A lesson note you edit but do not push is overwritten at the next sync, as before. To keep your own thoughts on a lesson, write them in a note outside the target folder and link to the lesson.
Network use and data
- The plugin talks only to the cachly API, by default https://api.cachly.dev. You can change the address, for example for a self-hosted cachly.
- By default it sends two kinds of GET request with your API key: one to list your Brains, one to export the lessons of the chosen Brain. No note, file name or other vault content is sent. No telemetry.
- Only with two-way sync switched on: one POST per uploaded note, with that note's topic, texts, tags and file paths. Only notes you opted in are sent. The server also removes secrets and checks for injected instructions.
- cachly stores lessons in Germany (Nuremberg); search results are re-ranked in France.
- The key is saved in the plugin data file in your vault (.obsidian/plugins/cachly/data.json), in plain text, because Obsidian offers plugins no safer place. Keep .obsidian/ out of public repositories; revoke a leaked key in the cachly dashboard.
- It writes only inside its target folder and uses no desktop-only APIs, so it also works on mobile. With two-way sync on, it also reads the notes you opted in.
More: Plugin in Obsidian's community catalog · IDE plugins overview · Company knowledge from Confluence · Obsidian and Claude Code over MCP