{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "topoteretes-cognee--build-local-agent-memory-without-an-llm-with-cognee",
 "repo": "topoteretes/cognee",
 "repo_url": "https://github.com/topoteretes/cognee",
 "repo_slug": "topoteretes-cognee",
 "title": "Build agent memory locally with no API key",
 "page_title": "How to build agent memory locally with no API key with Cognee",
 "summary": "Store facts and retrieve them with cognee-cli using the bundled small local models.",
 "who": "A developer who wants to try graph memory without paying for or sending data to an LLM.",
 "problem": "Most memory layers need a hosted model and API key before anything works.",
 "outcome": "A local dataset you can write to and query from the command line.",
 "steps": [
  "Install with `uv pip install \"cognee[gliner]\"`",
  "Store a fact with `cognee-cli remember \"Marie Curie was born in Warsaw.\" -d local_quickstart`",
  "Query it with `cognee-cli recall \"Where was Marie Curie born?\" -d local_quickstart`",
  "Or save the README quickstart as quickstart.py and run `python quickstart.py`"
 ],
 "agent_prompt": "Using topoteretes/cognee, install `cognee[gliner]`, remember three facts from <my notes> into a dataset with cognee-cli, recall one of them, and show me the retrieved text.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Without an LLM key you get retrieved passages, not generated answers; the local models download on first use.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 to 3.14; install with `uv pip install \"cognee[gliner]\"` for the local extraction model",
  "Optional: an LLM key (LLM_API_KEY) for generated answers instead of retrieved passages",
  "Optional: Docker for the API, UI and MCP server; Node.js/npm for the local UI launcher"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/topoteretes-cognee/build-local-agent-memory-without-an-llm-with-cognee/",
 "md": "https://dedupedai.com/use-cases/topoteretes-cognee/build-local-agent-memory-without-an-llm-with-cognee/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/topoteretes-cognee--build-local-agent-memory-without-an-llm-with-cognee.json",
 "api_version": "v1"
}
