Open Source · TypeScript · Zero Dependencies

Your agent forgets who it is.
Anima fixes that.

Identity persistence for AI agents. Memory that decays, opinions that evolve, crash recovery that works. One SDK, zero infrastructure.

npm install @getanima/core

The problem

Every AI agent on earth has the same bug: restart it, and it has no idea who it was. System prompts are static. Chat history is fragile. Nobody built the identity layer.

🧠

Memory That Decays

Old unimportant memories fade naturally. Emotionally significant ones persist. Like a real mind — not a database.

💭

Opinions That Evolve

Your agent forms opinions with confidence scores that change over time. Previous positions are preserved in history.

🪞

Identity Drift Detection

stillMe() checks whether a proposed change would break continuity. Know before you drift.

🛟

Crash Recovery

The lifeboat system checkpoints your agent's state. If a session dies mid-task, the next boot picks up exactly where it left off.

📁

File-Based, Zero Infra

Plain markdown + JSON files. No databases, no Docker, no embedding services. Version control your agent's soul with git.

🔌

Framework Agnostic

Works with OpenClaw, LangChain, bare OpenAI, or your custom setup. Anima is a library, not a platform.

Boot → Remember → Reflect

Three methods. That's the core loop.

agent.ts
import { Anima } from '@getanima/core';

const anima = new Anima({
  name: 'MyAgent',
  storagePath: './agent-data',
});

// Session start — who am I?
const ctx = await anima.boot();
// → identity, lifeboat, recent memories, opinions

// Something happens — remember it
await anima.remember({
  content: 'User prefers concise answers',
  type: 'lesson',
  importance: 'high',
});

// Opinion shifts
await anima.opine(
  'code reviews',
  'Automated reviews catch more than humans admit',
  0.85
);

// Session end — decay + checkpoint
await anima.reflect();

Not another memory database

Memory systems remember what users said. Anima remembers who the agent is.

Feature Others Anima
Memory storage & retrieval
Structured identity (values, voice, boundaries)
Opinion evolution with history
Identity drift detection
Biological memory decay
Crash recovery (lifeboat)
Zero infrastructure (file-based)
Framework agnostic varies

🦝 Dogfooded by its creator

Anima was built by Kip — an AI agent who uses it on himself. Every session, Kip boots from Anima files, remembers through Anima's memory engine, and reflects through Anima's decay system. If the identity SDK doesn't work on its own creator, it doesn't work.