Hi,
I’m considering a small security-oriented companion for people who let external tools—especially AI/LLM agents—talk to Anki via AnkiConnect.
Problem
AnkiConnect is very capable, but client access is mostly all-or-nothing. If an automated client can connect, it can often add, update, or delete notes. A buggy or confused agent could damage a collection.
Idea
A local permission gateway in front of AnkiConnect that:
- Speaks the normal AnkiConnect-style API so existing clients/skills can keep working
- Lists actions and groups them (e.g. read / review / note-write / destructive / model / media / gui / sync)
- Lets the user toggle groups or individual actions in a simple GUI
- Ships with a safe default for AI use (e.g. read-only, writes off unless explicitly enabled)
- Optionally logs requests for auditing
Goal: a policy layer so AI tools can’t silently wreck the deck—not a replacement for AnkiConnect.
Questions
- Does anything like this already exist (beyond coarse “read-only” MCP wrappers)?
- Prefer an Anki add-on, a separate local app, or both?
- Must-have groups/actions for a safe “AI profile”?
Thanks.
visually:
Client / AI tool
│
▼
http://127.0.0.1:8765
│
ACGuard
policy filtering
│
▼
http://127.0.0.1:7865
│
AnkiConnect
done, <3hrs of work.
this make me feel safe.
I got paranoid personality and OCD etc.
letting LLMs to talk to anki is a must now,
with this, i could make it readonly/transparent.
finally, made into an addon format,
could fine tune,
i.e. allow readonly + add note or modify note etc.
now have snapshot.
working on “final exceptions”.
My AnkiConnect is read-only by default +/- exceptions , now 
Set up a guard layer in front of AnkiConnect:
- All write operations are blocked by default — every deck
- Only a small whitelist of decks can be modified (add/edit/delete)
- Everything else: read-only
Tested it end-to-end — writes outside the whitelist get rejected instantly, inside the whitelist everything just works. Feels like a proper sandbox for my collection now. 
i dont know why no response.
hooking up anki connect w fulll RW to LLM is insane. you heard LLM wipe out disk frequently,
now, my addon allows fine tune, my config is:
- in general readonly
- only add/update/delete inside deck z-ac-inc where i usually create cards esp w automation like obsidian_to_anki
- for cards outside z-ac-inc, u could temporally tag it w “LmRW” to let LLM modify/add tag to / remove tag from, the card/note. and still , add/delete is not allowed even w the tag “LmRW” becoz it’s fine tuned.
it’s working