A game, a spreadsheet, an internal tool, a Zapier flow — anything that can make a web request can save to and recall from your CommonMind account. No install, no MCP, no code required on your end if you'd rather have an AI do it.
Works in Claude Code, Cursor, ChatGPT, or any AI coding tool — paste the copied text below to it. It's self-contained: the AI doesn't need this page, just this.
Every project gets its own key, tied to your account. Create one, name it after the project, and you're set — you can view it again anytime, no need to save it somewhere else first.
Get your key →Whenever something worth remembering happens — a decision, a player's choice, a customer's preference — send it over. This works from a Google Sheet, a game server, or any app; pick whichever matches what you're building.
// Apps Script — Extensions → Apps Script, in any Google Sheet
function saveMemory(text) {
UrlFetchApp.fetch('https://commonmind.agent9.dev/api/memory/capture', {
method: 'post',
contentType: 'application/json',
headers: { Authorization: 'Bearer cm_your_key_here' },
payload: JSON.stringify({ content: text })
});
}
// example: saveMemory("Client prefers short, no-jargon copy")
Ask a question in plain language — it comes back ranked by how relevant it is, not just keyword matches.
// same idea, any language — this example in plain JavaScript
const res = await fetch(
'https://commonmind.agent9.dev/api/memory/search?q=what+did+the+client+say',
{ headers: { Authorization: 'Bearer cm_your_key_here' } }
);
const { results } = await res.json();
// results[0].content, results[0].score — best match first
For anyone wiring this up by hand rather than pasting the page to an AI — the two endpoints in full.
| Action | Request | Body / params |
|---|---|---|
| Save a memory | POST /api/memory/capture | { "content": "..." } |
| Recall memories | GET /api/memory/search?q=...&limit=3 | q required, limit optional |
Both require Authorization: Bearer cm_your_key. Base URL: https://commonmind.agent9.dev. Responses are JSON; a missing or revoked key returns 401.