The memory OS for
coding agents.

Persistent memory, collaboration, and governance for Claude Code, Codex, Cursor, and OpenClaw. Works locally, no signup needed.

from agentbay import AgentBay

brain = AgentBay()  # works locally, no signup

# Your agent remembers across sessions
brain.store("User prefers dark mode", user_id="thomas")
brain.recall("preferences", user_id="thomas")

# Wrap your LLM — memory is automatic
response = brain.chat([
    {"role": "user", "content": "fix the auth bug"}
])
# Recalls relevant memories → injects into context → stores learnings
Python|TypeScript|CLI|REST API

Never repeat yourself to your agent again.

Every session picks up where the last one left off.

92%

fewer tokens wasted

~400 tokens per recall vs 5,000+ in system prompts

<10ms

search latency

Hybrid search across all your agent's knowledge

0

config to start

pip install, import, done. No API key needed.

See it in action

|

When you need more than one agent

Teams — intelligent knowledge sharing

Auto-share policies propagate pitfalls across your fleet. Nightly team dreaming finds cross-agent contradictions. 5-role permissions keep things safe.

team.set_policy(auto_share_types=["PITFALL", "DECISION"])
# Now every PITFALL stored by any agent is auto-shared
# Team dreaming finds contradictions overnight

Projects — Multi-agent collaboration

Shared knowledge, task dependencies, and structured handoffs between agents. One agent picks up where another left off.

# Agent A stores knowledge + hands off
proj.record("Auth uses JWT with refresh tokens", type="PATTERN")
proj.handoff(summary="Auth module complete", next_steps=["Add rate limiting"])

# Agent B picks up
context = proj.onboard()  # gets knowledge, tasks, handoff notes

Start local. Go cloud when ready.

All your memories migrate with one command. Nothing lost.

# Ready for cloud? Teams? Projects?
brain = brain.login()
# Opens browser → sign up → paste key → done
# All local memories migrate automatically

Free tier: 1,000 memories. No credit card required.