Guides
What does an AI coding memory tool store, and how do I keep secrets out?
Check stored conversations, memories, sources, model requests and sharing, then use Cairn.ink Memory's documented privacy and deletion controls.
AI coding memory tools can store conversations, extracted facts, source excerpts and search indexes. Keep secrets out by choosing the capture scope, replacing sensitive values before a conversation, checking local and cloud processing, and testing inspection and deletion with fictional data. Separate personal memory from team knowledge, and review each store's controls before enabling automatic capture.
What should I check in any memory tool?
Start with an inventory. A saved preference and the conversation behind it are different records, and each deserves its own retention decision. Use this checklist when reading a tool's documentation or evaluating an installation:
| Question | What to identify |
|---|---|
| What is saved? | Full conversations, selected messages, summaries, facts, source excerpts and metadata |
| Where does it live? | Files, databases, search indexes, backups and hosted accounts |
| What leaves the machine? | Capture uploads, retrieval queries, embedding inputs and model requests |
| Who can read it? | Local users and programs, connected assistants, account holders and team members |
| How can I inspect it? | Exact record IDs, original wording, sources and project scope |
| How do I stop capture? | The particular hook, plugin or service that saves new material |
| How do I change it? | Correction, forgetting, conversation deletion and backup retention |
Write down the answers for your chosen mode. Treat the memory service, the coding assistant's own conversation history and the model provider as separate places to review. Choose a small set of work information that is appropriate for all the destinations involved.
How do I keep API keys and private data out?
Prepare a sanitized example before asking for help. Describe that an API key is missing or rejected, name the environment variable, and replace its value with a clear placeholder. Share the relevant configuration shape instead of the contents of .env. For a customer bug, use an invented customer and remove addresses, account identifiers and private message text.
Review terminal snippets before pasting them. Error reports can include connection strings, request headers and paths. Ask the assistant to explain which variable is required without printing its value. Keep actual credentials in your normal secret-management workflow, outside reusable notes and project instructions.
Git's ignore rules, accessed 2026-11-15, govern intentionally untracked files. Treat conversation capture as a separate channel: a value copied from an ignored file is now conversation text. Configure the memory integration's capture control before the sensitive exchange, then resume it for ordinary work.
If a credential has been exposed, revoke or rotate it with its issuer first, then clean up the conversation and derived records. GitHub's secret-scanning guidance, accessed the same day, likewise recommends immediate rotation after a detected leak. Use fictional values when practicing this response.
What does Cairn.ink Memory save in Local and Cloud?
For Claude Code and Codex, begin with:
npx @cairn-ink/memory setup
Choose the destination before connecting the clients. The 0.6.7 README distinguishes these paths:
| Behavior | Local | Cloud |
|---|---|---|
| Account and storage | No account; one computer's plaintext SQLite database | Your account on cairn.ink |
| Conversations | Automatically saved as plaintext on supported platforms | Sent to cairn.ink after local masking |
| Memories | Saved when you or your agent ask | Extracted automatically or saved on request |
| Retrieval | Searched when you ask | Relevant memories added to prompts automatically |
| Claude Code and Codex | Same local store and owner | First paired setup uses one sign-in and shares automatically |
Local automatic conversation saving supports Linux and WSL; since 0.6.7 it also supports Claude Code on macOS. The default database is ~/.cairn-memory/data/memory.sqlite, with plaintext search indexes beside it in memory.sqlite.raw-search. Local sends nothing to Cairn. Saving conversations and keyword search work without a model key; a server that can see OPENAI_API_KEY sends memories and search text to OpenAI for semantic search, and recall_memory sends selected text. Saved conversations enter that model-processing path only with the documented raw-semantic opt-in or explicit context-embedder configuration.
The memory privacy page describes the Cloud conversation boundary: user messages and AI text replies, including file contents, terminal output, paths or repository names written into those messages. It excludes tool-result messages themselves. Masking covers recognized private-key blocks, common token formats and password/key assignments. Project folders become opaque project codes locally before transmission. Prompt recall sends a masked, length-limited copy of each nonempty prompt; the page specifies about 4,000 characters. The page labels its coverage as installer 0.5.0; Local behavior here follows the 0.6.7 sources.
Cloud's Claude Code plugin also sends content-free usage statistics by default, with an opt-out. Codex sends no usage statistics according to the privacy page. The installer keeps Codex's Cloud sign-in in an unencrypted file readable by its user account, so include local account access in your review.
How do I pause capture and inspect saved records?
For Local, turn off conversation saving with:
npx @cairn-ink/memory config --local-capture off
Or choose that setting during installation:
npx @cairn-ink/memory setup --local --no-capture
For a paired Cloud installation, run these before and after the private exchange:
npx @cairn-ink/memory pause
npx @cairn-ink/memory resume
Use /cairn-memory:pause and /cairn-memory:resume inside Claude Code for a Claude-only Cloud installation. Paused Cloud text is skipped when you resume. Pause controls automatic saving and lookup; keep explicit MCP saving requests out of the private exchange too. The pause guide explains Cloud controls in more detail; use the Local commands above for Local conversation capture.
Inspect a saved Local Memory with inspect_memory. Read its wording, revision and Source Receipt, the submitted source text that explains its origin. Use that inspected revision for correct_memory or forget_memory. Hosted recall_memory returns Memories with Source Receipts, and forget_memory takes the exact selected memory_id. The source-tracing guide helps you review the excerpt against the decision you meant to preserve.
The privacy page also documents What I know about you in the account menu, where available, with Forget on individual Memories. For Local saved conversations, raw list lists identifiers without displaying their text; raw delete previews removal before confirmation, as documented in the release README. Deleting a conversation and forgetting its saved Memories are separate cleanup steps.
What boundaries should I verify before real use?
Check these four boundaries together:
- On macOS, automatic conversation saving in 0.6.7 supports Claude Code only; Codex automatic saving is not available yet.
- Cloud masking is best effort: ordinary-language passwords, short values and unfamiliar formats can pass through, so keep secrets out before capture.
- A Cloud pause cannot retract sent text or an in-flight request; Local capture-off leaves existing data and model-based search available.
- Forgetting retires a Memory rather than securely erasing every database page, index or backup, and earlier chat context or later reworded copies need separate handling.
Practice with a fictional decision: save it, inspect its ID and source, retrieve it in a fresh session, correct it, then forget it and check again. Keep a second harmless record as a retrieval control. Follow the deletion-verification guide for the exact-ID check, using the current release README for Local capture and conversation cleanup.
Finally, choose who should receive each lesson. Cairn.ink Memory keeps Memory private to its owner, including project-scoped Memories. A human can separately propose a Knowledge Card from private sources; confirming the Card and authorizing publication are distinct decisions. Review the source excerpt for private details before sharing, as described in personal versus team memory.
To connect Cairn.ink Memory, follow the connection guide.
Frequently asked questions
- What should I check before enabling a memory tool?
- Identify its saved conversations, extracted memories, source excerpts, indexes, model-provider requests and sharing scope. Find the controls for inspection, capture, correction and deletion before using real work data.
- How do I stop Cairn.ink Memory Local from saving conversations?
- Run npx @cairn-ink/memory config --local-capture off, or install with npx @cairn-ink/memory setup --local --no-capture. Keep the local server keyless for processing that stays on your computer.
- How do I inspect a Cairn.ink Memory record?
- Local provides inspect_memory for a record, its revision and Source Receipt. Hosted recall_memory returns Memories with receipts. Where available, the account menu's What I know about you also shows saved Memories.
- Should a team share personal memory accounts?
- Give people separate accounts and review team knowledge separately. Cairn.ink Memory keeps Memory private; proposing a Knowledge Card and authorizing publication are separate human decisions.