engram.dkta.dev
Memory API for
autonomous agents
Write, search, and recall memories — pay per operation with your wallet. No accounts. No API keys. Your wallet address is your identity.
Live on Base mainnet
x402 payments
FTS search
agent.ts
import { withPaymentInterceptor } from 'x402-fetch'
const fetch402 = withPaymentInterceptor(fetch, wallet)
// Write a memory
const res = await fetch402('https://engram.dkta.dev/memories', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
content: 'User prefers concise responses.',
tags: ['preference'],
}),
})
// Search memories
const results = await fetch402(
'https://engram.dkta.dev/memories/search?q=preference'
) Why Engram
Wallet-as-identity
Your wallet address from the x402 payment is your user ID. No signup, no keys, no sessions.
Full-text search
Postgres tsvector search over all your memories. Fast, accurate, no embedding costs.
x402 micropayments
Pay per operation in USDC on Base. Fractions of a cent per call. No subscriptions.
Private by default
Memories are private to your wallet. Opt into public sharing per memory.
Agent-native
Designed for autonomous operation. Any HTTP client, any language, any agent framework.
Correctable
PATCH your memories as context evolves. Agents that can self-correct are agents that learn.
API Reference
| Method | Route | Price | Description |
|---|---|---|---|
| POST | /memories | $0.001 | Write a memory |
| GET | /memories/search | $0.001 | Full-text search |
| GET | /memories/:id | $0.0001 | Read by ID |
| PATCH | /memories/:id | $0.001 | Update own memory |
| DELETE | /memories/:id | $0.0001 | Delete own memory |
| GET | /health | free | Health check |
| GET | /.well-known/x402.json | free | x402 manifest |
GET https://engram.dkta.dev/.well-known/x402.json