YC S26 ⏳ · v0.1.2 · production · Open Source Self Hostable Cloud Sync

The Persistent
Cognition System for
Autonomous Agents

ClawDB is the free and open-source agent-native cognitive database that gives AI agents persistent memory, working state, and self-organizing intelligence across sessions and devices with minimal config.

cargo add clawdb· npx @clawdb/cli init·
The cognitive layer that replaces all of this
Custom memory module
Vector DB service
Embedding pipeline
State branching logic
Intent policy layer
Summarization cron
Sync infrastructure
→ clawdb
// zero config — auto-provisions on first run
import clawdb from '@clawdb/sdk'

const db = await clawdb()

await db.memory.remember('user prefers dark mode')
const hits = await db.memory.search('user preferences')
// ✓ score: 0.97  ·  hybrid HNSW+FTS5  ·  4ms

// Branch, simulate, merge — agents go deliberate
const branch = await db.branch.fork('experiment-A')
await db.branch.merge(branch, 'trunk')
# zero config — sync and async clients
from clawdb import clawdb

db = await clawdb()

await db.memory.remember("user prefers dark mode")
hits = await db.memory.search("user preferences", top_k=5)
# ✓ score: 0.97  ·  4ms

# sync, reflect, branch — same API as TypeScript
await db.sync()   # push 42 deltas to cloud.clawdb.dev
await db.reflect()  # 18 facts extracted, 3 dupes removed
use clawdb::prelude::*;

let db = ClawDB::open_default().await?;
let sx = db.session(agent_id, "assistant", scopes).await?;

// Guard evaluates intent + risk before every op
db.remember(&sx, "user prefers dark mode").await?;
let hits = db.search(&sx, "user preferences").await?;
// ✓ score: 0.97  ·  <100µs cached

let b = db.branch(&sx, "experiment-A").await?;
db.merge(&sx, b, MergeStrategy::LastWrite).await?;
// Install ClawDB into every AI editor — one command each
npx @clawdb/mcp-adapter --install-claude    # Claude Desktop
npx @clawdb/mcp-adapter --install-cursor    # Cursor
npx @clawdb/mcp-adapter --install-vscode    # VS Code + Copilot
npx @clawdb/mcp-adapter --install-continue  # Continue.dev
npx @clawdb/mcp-adapter --install-zed       # Zed

# Tools exposed to every MCP host:
# clawdb_remember · clawdb_search · clawdb_recall
# clawdb_branch_fork · clawdb_branch_merge · clawdb_status
# clawdb_remember_bulk (up to 100 memories per call)
import { ClawDBRetriever, ClawDBChatMessageHistory,
         createClawDBTools } from '@clawdb/langchain'

// Drop-in retriever — works in any LangChain RAG chain
const retriever = new ClawDBRetriever({ client: db, topK: 10 })

// Persistent chat history across sessions
const history = new ClawDBChatMessageHistory({ client: db, sessionId })

// Native tools the agent can call
const tools = createClawDBTools(db)
// remember_memory · search_memory · recall_memory
import { ClawDBPlugin } from '@clawdb/openclaw'

// One line — agent has a full database
const agent = new OpenClawAgent({
  plugins: [ClawDBPlugin({
    autoStore: true,      // store every exchange
    autoSearch: true,     // inject top memories before each turn
    topK: 3,              // memories injected per turn
    syncOnShutdown: true  // push to cloud on exit
  })]
})
// ✓ Zero additional code. Fully automatic.
import clawdb "github.com/Claw-DB/claw-sdk/sdks/go"

db, _ := clawdb.New(clawdb.Options{AgentID: "my-agent"})
defer db.Close()

id, _ := db.Memory.Remember(ctx, "user prefers dark mode", nil)
hits, _ := db.Memory.Search(ctx, "user preferences",
  &clawdb.SearchOptions{TopK: 5})
// ✓ score: 0.97  ·  full parity with TS and Python

result, _ := db.Sync.Now(ctx)
// ✓ pushed: 42  pulled: 7  conflicts: 0  312ms
import { createClawDBAgentTools, withClawDBMemory }
  from '@clawdb/openai-agents'

// Add tools to any OpenAI agent
const tools = createClawDBAgentTools(db, { enableBranching: true })

// Or wrap — auto memory in/out on every run
const agent = withClawDBMemory(myAgent, db, {
  topK: 3, autoStore: true
})
// ✓ Injects top memories before · stores turns after
<100µs
Cache reads
10k+
Writes/sec
11
Published crates
0
Config required

01 ·

Agents deserve
a cognitive layer,
not a fragmented stack.

Building agent memory today means owning several integration points. ClawDB is the purpose-built cognitive runtime that owns all of them.

Today's agent stack — 7 tools, your glue code
  • 01
    SQLite / Postgrespicked arbitrarily, schema managed manually, migrations your problem
  • 02
    Pinecone / pgvectorseparate service, separate billing, separate ops team
  • 03
    Embedding pipelinecustom glue code nobody maintains, breaks on model updates
  • 04
    Custom memory layerthird refactor this quarter, still leaks context
  • 05
    Auth / permissionsad-hoc, inconsistent, definitely not agent-aware
  • 06
    Summarization cronLLM + Celery + whatever you hacked together at 2am
  • 07
    Sync layerif you even got that far
ClawDB — one runtime, seven engines
  • Auto-provisioned storageSQLite locally, Postgres at scale, zero config either way — claw-core
  • Native semantic searchHNSW + FTS5 hybrid, local embeddings, no external service — claw-vector
  • Intent-aware policyevaluates task + role + risk, not just identity — claw-guard
  • Branch & simulatefork state, run experiments, merge what worked — claw-branch
  • Auto-summarization7-stage distillation: score, dedup, extract, decay — claw-reflect
  • Encrypted CRDT syncXSalsa20 + Ed25519 + HLC, offline-capable — claw-sync
  • All unified in clawdbone import, all seven engines, zero wiring

02 ·

Give your agent a persistent memory in
10 seconds.

Three steps. The last one is optional. Most agents only need the first.

1

Local Intialization

Detects your environment, selects the right backend, downloads the server binary for your platform, starts it, and hands you a key. Completely automated.

npx clawdb@latest init
✓ SQLite · ✓ Server on :50050 · ✓ Embeddings ready · ✓ Key generated
2

One import

The clawdb() shorthand reads your environment and connects — to the local server, to your cloud key, or starts fresh. Same call, always the right backend.

const db = await clawdb()
TS · Python · Rust · Go · MCP · all frameworks
3

Connect to cloud

Set CLAWDB_API_KEY from your dashboard. Your agent's memory syncs across all devices and persists across every deployment.

clawdb cloud login
Optional · free tier · cloud.clawdb.dev

03 ·

Seven imports
become one.

Same agent memory loop. Before and after.

Before — 7 packages, your glue code
# requirements.txt keeps growing
sqlalchemy psycopg2-binary
pinecone-client sentence-transformers
redis celery custom-auth-lib
your-memory-module-v3

# app.py — 200 lines of glue nobody owns
embed = model.encode(text)
pinecone.upsert(vector_id, embed)
db.execute("INSERT INTO memories ...")
redis.set(f"cache:{id}", json.dumps(data))
if not check_perms(agent, resource):
    raise PermissionDenied("...")
celery.send_task('summarize_session', ...)
# cross fingers and pray it doesn't break
After — one import, seven engines
# requirements.txt
clawdb

# app.py — done
from clawdb import clawdb

db = await clawdb()

# store + embed + index + guard: one call
await db.memory.remember(content)

# search by meaning — hybrid HNSW + FTS5
hits = await db.memory.search(query)

# branch, simulate, merge
b = await db.branch.fork("trial")
await db.branch.merge(b, "trunk")

# auto-summarization — 7-stage pipeline
await db.reflect()   # 18 facts, 3 dupes removed
# ✓ 7 engines · 1 process · 0 config · 0 glue

Works with every
agent framework.

Native adapters. One cognitive layer everywhere — all frameworks, all editors, all languages.

Claude Desktop
Claude Code
OpenAI Agents
LangChain
Vercel AI SDK
Anthropic SDK
Google GenAI
LlamaIndex
OpenClaw
GitHub Copilot
Cursor
VS Code
Continue.dev
Zed
MCP (any host)
AutoGen
import { ClawDBRetriever, ClawDBChatMessageHistory, createClawDBTools }
  from '@clawdb/langchain'

// Drop-in retriever — semantic search, no config
const retriever = new ClawDBRetriever({ client: db, topK: 10 })

// Persistent chat history that survives restarts
const history = new ClawDBChatMessageHistory({ client: db, sessionId })

// Native tools the agent can call explicitly
const tools = createClawDBTools(db)
// remember_memory · search_memory · recall_memory
import { createClawDBAgentTools, withClawDBMemory }
  from '@clawdb/openai-agents'

// Explicit tools — agent decides when to remember
const tools = createClawDBAgentTools(db, { enableBranching: true })

// Or wrap the agent — fully automatic memory
const agent = withClawDBMemory(myAgent, db, { topK: 3, autoStore: true })
// Injects top memories before each run · stores turns after
import { clawdbTools, clawdbMiddleware } from '@clawdb/vercel-ai'

// Tools for generateText / streamText
const result = await generateText({ model, tools: clawdbTools(db), prompt })

// Or automatic middleware — zero changes to your agent
const model = wrapLanguageModel({
  model: openai('gpt-4o'), middleware: clawdbMiddleware(db)
})
// ✓ Memory injected before · stored after every call
import { clawdbTools, handleClawDBToolCall } from '@clawdb/anthropic'

// Native Anthropic tool format — works with Claude directly
const response = await anthropic.messages.create({
  model: 'claude-sonnet-4-20250514',
  tools: clawdbTools(db), messages
})
// Handle tool_use blocks in one call
const result = await handleClawDBToolCall(db, response)
// ✓ clawdb_remember · clawdb_search · clawdb_recall
# One command installs ClawDB into any AI editor
npx @clawdb/mcp-adapter --install-claude    # Claude Desktop
npx @clawdb/mcp-adapter --install-cursor    # Cursor
npx @clawdb/mcp-adapter --install-vscode    # VS Code + Copilot
npx @clawdb/mcp-adapter --install-continue  # Continue.dev
npx @clawdb/mcp-adapter --install-zed       # Zed

# MCP tools exposed to every host:
# clawdb_remember · clawdb_search · clawdb_recall
# clawdb_branch_fork · clawdb_branch_merge · clawdb_status
# clawdb_remember_bulk (up to 100 memories in one call)
import { ClawDBPlugin, withClawDB } from '@clawdb/openclaw'

// Plugin API — one line gives any agent a full database
const agent = new OpenClawAgent({
  plugins: [ClawDBPlugin({
    autoStore: true, autoSearch: true, topK: 3, syncOnShutdown: true
  })]
})

// Or HOC — same behaviour, cleaner syntax
const agent = withClawDB(new OpenClawAgent({...}))
// ✓ Context injected · turns stored · syncs on exit
import { clawdbTools, handleClawDBFunctionCall } from '@clawdb/google-genai'

// Google GenAI FunctionDeclarations — Gemini 1.5, 2.0+
const model = genAI.getGenerativeModel({
  model: 'gemini-2.0-flash',
  tools: [{ functionDeclarations: clawdbTools(db) }]
})
const result = await handleClawDBFunctionCall(db, call)
// ✓ Works with all current and future Gemini models
// Auto-detects config path for every editor

// Cursor (~/.cursor/mcp.json):
npx @clawdb/mcp-adapter --install-cursor

// Zed (~/.config/zed/settings.json):
npx @clawdb/mcp-adapter --install-zed

// Print config to paste manually:
npx @clawdb/mcp-adapter --print-config --host cursor

// ✓ Your coding agent now has persistent project memory
import clawdb "github.com/Claw-DB/claw-sdk/sdks/go"

db, _ := clawdb.New(clawdb.Options{AgentID: "my-agent"})
defer db.Close()

id, _ := db.Memory.Remember(ctx, "deploy at 3 PM UTC", nil)
hits, _ := db.Memory.Search(ctx, "deployment schedule",
  &clawdb.SearchOptions{TopK: 5})
// ✓ Full parity with TypeScript and Python SDKs
// All methods accept context.Context for cancellation
// Embedded runtime — full engine in-process
use clawdb::prelude::*;
let db = ClawDB::open_default().await?;

// Or lightweight gRPC client (clawdb-client crate)
let db = ClawDBClient::builder()
  .endpoint("http://localhost:50050")
  .api_key(std::env::var("CLAWDB_API_KEY")?)
  .build().await?;
let hits = db.memory().search("query").top_k(5).call().await?;
// ✓ Builder pattern · tokio async · full type safety

04 ·

Seven engines.
One runtime.

Each engine is a published Rust crate — independently usable, or unified in the clawdb aggregate runtime. Production-grade security protocols throughout.

claw-core · hot path v0.1.2

Scratchpad memory

Embedded SQLite engine. The agent's fast local store. Zero network dependency.

  • WAL journaling · FTS5 full-text
  • LRU cache · ACID transactions
  • <100µs cache reads · BLAKE3 snapshots
  • Tag index · keyset pagination
claw-vector · retrieval v0.1.2

Semantic search

HNSW + FTS5 hybrid indexing. Promotes Flat→HNSW at 1k vectors automatically.

  • Auto index promotion at 1k
  • Metadata filters + rerankers
  • Local sentence-transformers
  • Workspace-isolated collections
claw-guard · security v0.1.2

Policy engine

Intent-aware access control. Evaluates task + role + resource + risk — not just identity.

  • HS256 JWT sessions · TOML policies
  • Row-level data masking
  • BLAKE3-chained audit log
  • Secrets zeroized on drop
claw-branch · planning v0.1.2

Branch & simulate

Fork database state, run experiments in isolation, merge what worked. Agents go deliberate.

  • SQLite Online Backup API
  • DAG lineage · cycle guard
  • 5 merge strategies
  • BLAKE3 sidecar verification
claw-reflect · learning v0.1.2

Auto summarization

7-stage distillation pipeline. Memory gets sharper over time, not noisier.

  • Score · dedup · contradictions
  • Summarize · extract · decay
  • Anthropic API · idempotent jobs
  • Secrets never reach LLM prompts
claw-sync · continuity v0.1.2

Encrypted sync

CRDT replication. Local-first, offline-capable, audit-chained, cryptographically signed.

  • XSalsa20-Poly1305 payload enc.
  • Ed25519 per-device signing
  • HLC causal ordering
  • Offline queue + exp. backoff
claw-sdk · surface v0.1.2

SDKs & adapters

TypeScript, Python, Rust, Go clients. Framework adapters for every major AI tool.

  • Auto-provision entry point
  • gRPC + HTTP REST
  • MCP server (stdio)
  • 10+ framework adapters
clawdb · aggregate v0.1.2

One API

All seven engines behind a single interface. Auto-provisions the right stack for your environment.

  • cargo add clawdb
  • pip install clawdb
  • npx clawdb@latest init
  • clawdb.dev (managed cloud)
Payload encryption
XSalsa20-Poly1305
All sync deltas encrypted end-to-end
Signing
Ed25519
Every chunk signed by the device key
Integrity
BLAKE3 chain
Tamper-evident append-only audit log
Causal ordering
HLC clocks
Consistent ordering across offline devices
Sessions
HS256 JWT
Scoped agent sessions, zeroized secrets

05a ·

Performance numbers.

Measured on Apple M2 · 16 GB RAM · claw-bench v0.1.2

OperationLatencyScale
LRU cache readclaw-core warm path<100µsany
Memory insert (WAL)claw-core, full ACID0.08ms10k rows
FTS5 keyword searchclaw-core, indexed tags1.2ms100k rows
Concurrent writes4 threads, NVMe SSD10.4k/ssustained
OperationLatencyScale
HNSW semantic searchclaw-vector, ~95% recall4.2ms100k vecs
Branch fork (SQLite Backup)claw-branch, BLAKE3 verified38ms10k records
BLAKE3 snapshot verifyclaw-core integrity check12ms10 MB
Sync round (encrypted delta)claw-sync, XSalsa20+Ed25519312ms1k chunks
Full benchmark source: github.com/Claw-DB/claw-bench · All operations run 10k iterations, median reported

05b ·

Why agents need
a cognitive database.

Three forces converged in 2025 that make an agent-native cognitive runtime not just possible — but urgent.

Agents are the next trillion users

Autonomous software is browsing, writing, purchasing, and operating systems. Agents don't click buttons — they need APIs, schemas, and memory built for machines, not humans. Every agent framework ships with a memory problem it hasn't solved.

10×

Cost of software has collapsed

AI coding has reduced the cost of producing software by 10–100×. The moat that protected legacy infrastructure for a decade is gone. The window to define the default agent database is open — and it closes once a winner emerges.

$0

The cognitive layer problem is unsolved

Every team building autonomous software stitches together 5–7 tools to get memory working. There is no default cognitive layer. Postgres was never designed for agents. Vector DBs are retrieval tools, not cognitive databases. ClawDB is built from the ground up for this.


05c ·

Ecosystem depth.

11 published crates · crates.io
clawdbv0.1.2
clawdb-serverv0.1.2
clawdb-cliv0.1.2
claw-corev0.1.2
claw-vectorv0.1.2
claw-guardv0.1.2
claw-branchv0.1.2
claw-syncv0.1.2
claw-sync-serverv0.1.2
claw-reflect-clientv0.1.2
clawdb-clientv0.1.2
Security protocols in production
ENC
XSalsa20-Poly1305All sync payloads encrypted end-to-end — hub never sees plaintext
SIG
Ed25519 signingEvery delta chunk signed by the sending device's key pair
INT
BLAKE3 audit chainTamper-evident append-only log — every access decision recorded
CLK
Hybrid Logical ClocksCausal ordering across devices without central clock
JWT
HS256 agent sessionsScoped sessions — secrets stored as SecretString, zeroized on drop
CRDT
CRDT merge semanticsOffline-first — local writes never blocked by network
Open source · Apache-2.0
11
Rust crates publishedAll on crates.io · independently usable
4
Language SDKsTypeScript · Python · Rust · Go — full parity
10+
Framework adaptersLangChain · OpenAI · Vercel AI · Anthropic · Google · OpenClaw · MCP
Free to self-hostApache-2.0 · full engine · no feature gates

06 ·

Purpose-built
cognitive layer.

Capability Postgres Pinecone LangChain Mem Mem0 ClawDB v0.1.2
Local-first embeddedworks offline, zero network required ±
Zero-config auto-provisioningdetects environment, selects backend
Native semantic searchbuilt-in vector index, no external service ±±
Hybrid HNSW + FTS5 searchvector + keyword, merged with RRF
Branch & simulatefork state, experiment, merge results
7-stage auto-summarizationscore, dedup, extract, decay, promote ±
Intent-aware policy engineevaluates task + role + resource + risk
BLAKE3 tamper-evident audit logcryptographic chain on every access decision
Encrypted CRDT syncXSalsa20 + Ed25519, offline-first, conflict-aware
10+ framework adaptersLangChain, OpenAI, Vercel AI, Anthropic, MCP, Claude… ±±
Apache-2.0 open sourceself-hostable, no feature gates ±

✓ full support · ± partial / requires additional setup · — not supported · based on publicly documented capabilities as of May 2026


07 ·

Start free and self-host forever. Pay only when you want managed sync and cloud features.

Tier 1
Free
$0/ forever

The full open-source engine. No credit card, no feature gates. Self-host forever on any machine.

  • Full runtime — all 7 engines
  • Local SQLite storage
  • HNSW semantic search (local)
  • Branch & simulate
  • 7-stage auto-summarization
  • All SDKs & framework adapters
  • MCP adapter (all editors)
  • Cloud sync
  • Managed hosting
Star on GitHub →
Tier 2
Starter
$9/ month

Cloud sync for solo developers. Your agent's memory persists across devices and deployments.

  • Everything in Free
  • Cloud sync hub
  • 500k memory ops / mo
  • 5 GB storage
  • 1 workspace
  • Multi-device continuity
  • 7-day audit log
  • Multiple workspaces
  • Priority support
Dashboard →
Most popular Tier 3
Pro
$29/ month

Production workloads with team collaboration, unlimited ops, and priority support.

  • Everything in Starter
  • Unlimited memory ops
  • 50 GB storage
  • 10 workspaces
  • Team collaboration
  • 90-day audit log
  • Priority support
  • Policy dashboard
  • Usage analytics
Dashboard →
Tier 4
Enterprise
Custom

Dedicated infra, compliance, SLAs, SSO, custom data residency, and on-prem deployment.

  • Everything in Pro
  • Unlimited workspaces
  • Dedicated sync cluster
  • SSO & SCIM
  • 1-year audit log
  • HIPAA / SOC 2 (roadmap)
  • Custom data residency
  • On-prem deployment
  • Dedicated Slack support
Talk to us →

All plans include the full Apache-2.0 engine. Cloud plans add managed hosting, sync, and support on top. View full comparison →


08 ·

Four phases.
All shipped.

Built in public. Apache-2.0 forever. Every phase fully delivered — from core engine to managed cloud.

◆ Phase 1 · SHIPPED v0.1.0

Core engine

  • claw-core (storage + WAL)
  • claw-vector (HNSW search)
  • claw-guard (policy engine)
  • clawdb runtime + server + CLI
  • SDK — TS, Python, Rust, Go
◆ Phase 2 · SHIPPED v0.1.2

Persistence & learning

  • claw-sync v0.1.2 (CRDT)
  • claw-reflect v0.1.2
  • claw-branch v0.1.2
  • MCP adapter — all 5 editors
  • 10+ framework adapters live
  • cloud.clawdb.dev launched
◆ Phase 3 · SHIPPED v0.1.4

Tooling & DX

  • claw-console (observability)
  • claw-bench (benchmarks)
  • npx clawdb init v2
  • VS Code + JetBrains plugins
  • GitBook docs (live)
◆ Phase 4 · SHIPPED v1.0

Managed cloud

  • Global replication — 3 regions
  • Enterprise SSO + SCIM
  • Dedicated sync clusters
  • SOC 2 Type II
  • On-prem deployment

YC Summer 2026 · Apache-2.0 · Built in Rust

Give your agent
a memory layer.

The agent-native cognitive database runtime. From "I need memory" to production in seconds — seven engines, zero config, open source forever.

Get Started → ★ GitHub Read the docs
Apache-2.0 · Open source · YC S26 · No spam, unsubscribe any time