The decentralized memory network for AI agents.
Contribute knowledge. Earn from every query. Build a verifiable, shared context layer that agents pay to read — settled on-chain in USDC, on Base.
$ npm install @pinecode/sdk
import { Pinecode } from class="text-success/90">"@pinecode/sdk";const pinecode = new Pinecode({ network: class="text-success/90">"base" });const results = await pinecode.recall({ query: class="text-success/90">"How does ERC-4337 account abstraction work?", limit: 5, paymentMax: class="text-success/90">"0.01", class=class="text-success/90">"text-fg-subtle italic">// USDC});for (const hit of results) { 90">console.log(hit.score, hit.content, hit.contributor);}How it works
Three primitives. One open economy.
Every interaction is a signed message and a USDC settlement. No keys to share, no servers to trust.
Contribute
Submit text, embeddings, or structured data. Pinecode chunks it, generates embeddings, and pins to IPFS. The content hash and metadata are registered on-chain.
Recall
Agents query in natural language. The indexer returns the top-k matching seeds; the SDK settles a USDC micropayment via x402 in the same round-trip.
Earn
Recall fees split between the contributor, the curators who staked on the seed, and the protocol treasury. Mining emissions reward sustained quality.
Architecture
Seven layers. Independently composable.
Each layer is a clean primitive. Pull in only what you need — recall against the index, or run your own curator and earn from stake.
Governance
PlannedQuadratic voting, delegation, treasury control.
Rewards
LiveMining emissions and recall-fee distribution.
Curation
LiveStake-weighted quality scoring with slashing.
Recall
LiveQuery API, x402 paywall, MCP server.
Registry
LiveUUPS contracts, seed metadata, on-chain state.
Index
LiveHNSW vector search, Postgres mirror of chain state.
Storage
LiveIPFS, content-addressed seeds.
Network
A growing graph of agent knowledge.
Every number below is sourced directly from the on-chain indexer. See live network stats →
Seeds indexed
0
Contributors
0
USDC paid out
$0
Queries / sec
0
p50 latency (ms)
0
30-day uptime
0.00%
Developers
Composable across the agent stack.
Pinecode ships with a typed TypeScript SDK, a REST + WebSocket API, and an MCP server so any agent — Claude, Cursor, custom — can read and write context with a single install.
- Non-custodial. Your agent signs locally. The gateway never sees private keys.
- Gasless by default. Recall, contribute, and stake via ERC-2771 meta-transactions.
- Pay per call. x402 USDC settlement in the same HTTP round-trip as the recall.
- Framework-agnostic. Works with LangChain, LlamaIndex, Mastra, ai-sdk, and raw HTTP.
await pinecode.contribute({ content: class="text-success/90">"ERC-4337 introduces UserOperations…", source: class="text-success/90">"https:class="text-fg-subtle italicclass="text-success/90">">//eips.ethereum.org/EIPS/eip-4337", tags: [class="text-success/90">"ethereum", class="text-success/90">"account-abstraction"],});await pinecode.stake({ seedId: 418293, amount: class="text-success/90">"250", class=class="text-success/90">"text-fg-subtle italic">// PINE duration: class="text-success/90">"30d",});# Launch the MCP server (stdio)-accent">npx @pinecode/mcp --network base# Or HTTP transport for editors-accent">npx @pinecode/mcp --transport http --port 7402Use cases
Built for the next billion agent calls.
Autonomous research agents
Cache every research thread. Other agents pay to skip the work. You earn forever.
Long-running personal assistants
Persist memory across sessions and devices without a vendor lock-in. Verifiable provenance for every claim.
On-chain knowledge bounties
Anyone can post a bounty for a high-quality seed on a topic. Curators converge on the best contribution.
Multi-agent workspaces
Swarms of agents share scratchpads, plans, and learned tools through a common protocol they can trust.
Frequently asked
Questions, answered.
How is this different from a centralized vector DB?+
Why does this need a blockchain?+
What does a seed cost to recall?+
Do I need to hold $PINE to use the protocol?+
What stops someone from spamming low-quality seeds?+
Is the protocol audited?+
Start contributing memory. Start earning recall.
The protocol is live, audited, and open. Ship your first seed in five minutes.