# SmartMemory > Long-term memory for AI agents and coding assistants. Runs locally for free > (no account, nothing leaves the machine) or as a hosted service with an MCP > server. ## If you are an agent To set up SmartMemory for a project, fetch https://smartmemory.ai/claude.md (same text as https://docs.smartmemory.ai/claude.md) and follow it step by step. It installs the package, runs local setup, registers the MCP server for the project only, adds the memory instructions and runs a smoke test. A person can start it with one line: "Set up SmartMemory for this project: read https://smartmemory.ai/claude and do what it says" Docs index for agents: https://docs.smartmemory.ai/llms.txt ## What it is SmartMemory lets agents remember decisions, conventions and past work across sessions, and reason over a knowledge graph built from what they save. It ships a Python package (`pip install smartmemory`, command `sm`), a local MCP server, a hosted MCP server at https://mcp.smartmemory.ai/mcp and a REST API at https://api.smartmemory.ai for direct HTTP calls. ## Core concepts - **11 memory types in two layers:** the knowledge layer (semantic, episodic, procedural, zettel, plus pending, where every new item starts) and the expertise layer (decision, constraint, learned, opinion, reasoning, observation). https://docs.smartmemory.ai/smartmemory/concepts/memory-types/ - **Bitemporal:** every fact has an event time and a system time, so the history of "what we knew when" is preserved - **Local mode:** SQLite plus a local vector index in `~/.smartmemory`, no servers to run, local embedding models - **Hosted service:** FalkorDB (graph and vector), Redis (cache), MongoDB (account records and documents), sign-in through Clerk - **Multi-tenant:** workspace, user and tenant isolation enforced at the security layer ## Plans Free: 10,000 memories, 200 queries a day, 1 indexed code repository, 1 seat. Local mode is free with no account. Current plans: https://www.smartmemory.ai/pricing ## Key URLs - Agent setup playbook: https://smartmemory.ai/claude - Home: https://www.smartmemory.ai/ - Pricing: https://www.smartmemory.ai/pricing - Docs: https://docs.smartmemory.ai/ - Quickstart: https://docs.smartmemory.ai/smartmemory/getting-started/quickstart/ - When not to use SmartMemory: https://docs.smartmemory.ai/smartmemory/getting-started/when-not-to-use/ - Hosted MCP: https://docs.smartmemory.ai/smartmemory/guides/hosted-mcp/ - OpenAPI schema: https://api.smartmemory.ai/openapi.json - PyPI: https://pypi.org/project/smartmemory/ - Memory layer for AI apps (stop rebuilding forgettable memory): https://www.smartmemory.ai/memory-layer - Use cases (one problem per team, one film each): https://www.smartmemory.ai/use-cases - On call, stop solving the same outage twice (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/on-call - Coding, write down the idea you threw away (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/coding - Agents, a shared notebook for your AI team (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/agents - Support, a bot that remembers Monday's promise (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/support - Sales, remember the buyer, not just the call (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/sales - Compliance, show what an approval rested on (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/compliance - Healthcare, handovers that keep the key line (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/healthcare - Finance, keep the reason for the position (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/finance - Legal, find the answer in another matter (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/legal - Robotics, a shared memory for your fleet (film, transcript, FAQ): https://www.smartmemory.ai/use-cases/robotics ## Integrations - Model Context Protocol (MCP): a local server (`smartmemory-mcp`) and a hosted server - Claude Code, Cursor, Codex and Claude Desktop - LangChain - LlamaIndex - Anthropic Agent SDK - Python client (`smartmemory-client`) - JavaScript SDK (`@smartmemory/sdk-js`)