Layer 0
Raw Events
Each signal is appended as-is and immutable, with an integrity check and provenance preserved — the raw ground truth of an agent’s experience, always traceable.
Corsoul is a local-first cognitive memory system built for AI agents. Start with free, offline-ready remember / recall. When you need deeper capabilities, activate associative learning, emergent patterns, contradiction auditing, and bounded personality growth.
Node.js 18+ · MIT-licensed Free tier · No repo clone required
Most memory systems flatten everything into a single database. Corsoul preserves raw experiences, structured facts, associative networks, and abstract patterns as separate layers, then progressively transforms information through Sleep Consolidation.
The Free tier provides fully usable L0/L1 objective memory. The licensed engine activates L2/L3, consolidation, contradiction auditing, and personality.
Layer 0
Each signal is appended as-is and immutable, with an integrity check and provenance preserved — the raw ground truth of an agent’s experience, always traceable.
Layer 1
Experience becomes multi-dimensional, bi-temporal facts — recording both when something happened and when it was learned — so you can ask what’s true now and replay what was believed then.
Layer 2
Memories link through Hebbian dynamics — associations that co-occur strengthen, unused ones decay — then spread along those weights to retrieve genuinely connected memories.
Layer 3
Trends, clusters, anomalies, and sequences emerge from the graph as a whole — a subconscious-like layer that settles scattered experience into patterns, each keeping its evidence and its counter-examples.
Every claim maps to a real data structure, retrieval path, or permission boundary in the project. Where no benchmark exists, we do not invent numbers.
Memory organizing runs in sequence: it turns experience into structure, builds associations, generalizes patterns, and audits contradictions. The whole pass can run in stages, respect a cost ceiling, and report how much is left to process.
PAID ENGINESeveral kinds of cues are ranked together. When the evidence is thin, Corsoul says plainly that this is a new area, a current blind spot, or an unusual angle—instead of pretending to know.
Conflicts in attributes, provenance, time, identity, or patterns are kept as auditable states. Resolution requires confidence and evidence across multiple observations, preventing one anomaly from corrupting trusted memory.
Every plan can record one-time or recurring intents, retrieve due items, and complete or reschedule them. The core stores intent only; it never executes external actions on its own.
A local database, or your own Postgres, remains the persistent source of truth. With a local model it can stay fully offline; only when you use a cloud model or cloud integration is the necessary text sent out.
An optional shadow accelerator above Postgres that speeds up association and semantic recall at scale. Any failure falls back to the underlying database.
The same experience can mean different things to different agents. Personality growth always remains bounded by core values and sustained evidence.
Records faithfully, without subjective weighting.
Begins evaluating importance and self-relevance.
Important, emotionally salient experiences resurface more readily.
Beliefs gain resilience but remain revisable through sustained evidence.
Wherever an AI needs to be an individual that grows over time — not just a stateless tool — is where Corsoul fits.
Characters that remember what the player did, form likes and dislikes, and deepen in personality and relationship over playtime — lasting companions, raisable characters, and worlds that respond.
Layered memory · PersonalityRelationship continuity that never resets between conversations; emotionally important moments resurface at the right cue, so companionship carries the warmth of memory.
Continuous memory · Affective recallHome and service robots that learn a household's routines and preferences over months and grow a stable character; data stays local-first, and it remembers what to do and when.
Local-first · Prospective memoryRemembers a learner's history and misconceptions, correcting them gradually and auditably instead of overwriting; grows alongside the student and nudges review at the right time.
Contradiction audit · Prospective memoryA persona that stays consistent yet evolves across years and channels, remembering every fan interaction; namespace isolation lets one platform safely host many independent characters.
Consistent persona · Namespace isolationGive each agent its own memory and an evolving personality — for social, economic, and behavioral simulation, multi-agent research, and training environments.
Namespace isolation · IndividualityThe Free tier needs only Node.js 18+ — no repo to clone.
Run the setup wizard: pick the model for semantic recall (local Ollama, or a cloud model like OpenAI) — or start with keyword-only recall.
npx -y corsoul setupWire Corsoul into your agent (Codex here as an example). The scope is a fixed namespace for this agent/user — all its memory accumulates under it.
npx -y corsoul connect codex \
--scope=myapp:assistant:v1Run a health check to confirm the database and recall settings, then restart the agent — and it starts remembering.
npx -y corsoul doctorPlugin, MCP, SDK, Function Calling, LangChain, or REST all share one rule: a stable scope_id gives an agent continuous memory across its lifetime.
The installer merges MCP settings, backs up existing files, and writes a fixed-scope memory contract into AGENTS.md. Re-running it remains idempotent.
npx -y corsoul setup
npx -y corsoul connect codex \
--scope=myapp:codex:v1
npx -y corsoul doctorFixed paid monthly pricing has not been announced. This page shows only the confirmed $0 Free tier, current private-beta status, and implemented capabilities—no invented prices.
Production-ready local L0/L1 objective memory.
Start freeStarts assessing what matters more to this agent.
View beta detailsMakes important, emotionally salient experiences easier to resurface.
See technical limitsBuilds resilient beliefs that sustained evidence can still revise.
Compare personality tiersFixed pricing for Pro, Super, and Ultimate is still in beta. Exact node, event, and webhook quotas are tiered beta settings shared during the application process. They may change with the final commercial plans and are not permanent commitments. To join the beta, write to us describing your agent and use case — you'll receive the cloud connection recipe and a namespace-bound token once approved.
Apply for beta accessLocal, cloud, free, personality, Preview—every term should mean exactly what it says.
No. Free / Objective is production-ready local L0/L1 long-term memory, including remembering, recall, forgetting, prospective intents, core setup, and MCP access. Paid upgrades add L2/L3, full-engine consolidation, and personality capabilities; they do not paywall basic recall.
Yes. Keyword recall works out of the box; but semantic recall needs an embedding model to turn text into vectors, so it can find things by meaning rather than exact wording. Choose a local model like Ollama, or an OpenAI-compatible service. Without an embedding model, Corsoul still stores memories and retrieves them by keyword.
No. Graph, pattern, and affective data in the licensed client is retained — just not read — and lights up again when you re-upgrade.