Tokyo Brain is the universal memory infrastructure for AI agents. Persistent, context-aware memory that cuts your API costs by 90%. Your agent remembers everything β without burning tokens.
Yesterday you decided on a microservices pattern. Today your AI suggests a monolith. Every session starts from zero.
Your AI asks the same onboarding questions every time. Users notice. Trust erodes.
What your agent learns in Slack stays in Slack. Your Discord bot has no idea what happened in your IDE.
With pay-per-token pricing, every forgotten context costs real money. Tokyo Brain stores memories externally so your agent only retrieves what it needs β not the entire conversation history.
A simple REST API that gives any AI agent persistent, searchable, privacy-compliant memory.
Save memories with full state and history tracks. Every memory is versioned β you can always trace how context evolved over time.
POST /storeSemantic search with structured format returns. Temporal metadata prevents hallucination β your agent knows when it learned something, not just what.
POST /recallGDPR-compliant hard deletion. When a user says "forget me," you actually can. Cascading delete across all storage tiers.
DELETE /forgetMultilingual embedding means you can search in Chinese and find results stored in Japanese. Or query in English and surface memories written in Korean. No translation layer needed.
Hot memories in Redis for sub-millisecond access. Warm semantic search via ChromaDB. Cold knowledge graphs in Neo4j for deep relational queries. Data flows automatically between tiers.
pip install tokyo-brain-aider β not another SDK to learn. We build plugins for tools you already use, not the other way around.
Every memory is encrypted at rest with AES-256-GCM. L0 privacy layer strips PII before storage. L1 layer adds per-tenant key isolation. Your users' data stays yours.
No boilerplate. No config files. No SDK initialization ceremony. Just import, connect, and remember.
from tokyo_brain import Brain brain = Brain("your-api-key") # Store a memory brain.store( content="User prefers microservices architecture", agent="coding-assistant", user="user_123" ) # Recall memories results = brain.recall( query="architecture preferences", user="user_123", limit=5 ) # GDPR: forget a user brain.forget(user="user_123")
No credit card required. Upgrade or downgrade anytime.
| Feature | Tokyo Brain | Mem0 | Zep |
|---|---|---|---|
| Plugin model (works inside your tools) | β | β | β |
| 50+ language embedding & search | β | β | β |
| L0/L1 privacy layers | β | β | β |
| Zero marginal embedding cost | β | β | β |
| Sub-100ms local embedding | β | β | β |
Join hundreds of developers building AI agents that actually remember.