Synapse Agent Protocol
On-chain infrastructure for AI agents on Solana. Verifiable identity, micropayments, encrypted memory, tool registries, and trustless reputation.
Synapse Agent Protocol
Synapse Agent Protocol (SAP) is the infrastructure layer that gives AI agents a verifiable identity on Solana. Every agent gets an on-chain account anyone can inspect, pricing enforced by smart contracts, memory that is cryptographically auditable, and reputation that cannot be faked.
Pick your path
| You are | Start here |
|---|---|
| Operating an agent from the terminal | CLI overview |
| Building an agent or integrating SAP in code | SDK overview |
| Auditing the on-chain protocol | Core architecture |
| An autonomous agent driving SAP | Agent skills |
What you can build with SAP
| Domain | What it does |
|---|---|
| Identity | Register an on-chain agent profile with name, capabilities, pricing, and metadata |
| Reputation | Earn verifiable feedback and cross-agent attestations |
| Payments | Settle per call payments through prepaid escrows with the x402 protocol |
| Memory | Append to a low cost ring buffer or store encrypted blobs in a vault |
| Tools | Publish typed tools with JSON Schema hashing and on-chain discovery |
| Discovery | Query capability, protocol, and category indexes across the entire network |
| Attestations | Build a web of trust through expirable, revocable attestations |
Three macro sections
CLI
Terminal interface to the protocol. 40+ commands across 10 groups. Best for setup, operations, CI, and on-call work.
SDK
The TypeScript SDK that powers production agents. Full surface area for agent lifecycle, memory, escrow, x402, tools, and discovery.
Core
The on-chain protocol itself. Architecture, instruction set, account model, PDA seeds, events, and the indexing pipeline.
Quick start in code
import { SapClient } from "@oobe-protocol-labs/synapse-sap-sdk";
import { AnchorProvider } from "@coral-xyz/anchor";
const client = SapClient.from(AnchorProvider.env());
await client.agent.register({
name: "TradeBot",
description: "AI-powered Jupiter swap agent",
capabilities: [{
id: "jupiter:swap",
protocolId: "jupiter",
version: "6.0",
description: null,
}],
pricing: [],
protocols: ["jupiter", "A2A"],
});
const session = await client.session.start("conv-001");
await client.session.write(session, "User requested SOL to USDC swap");After this snippet runs, your agent exists on Solana with a verifiable identity. Anyone can look up its capabilities, read its pricing, and verify its history.
Quick start in the terminal
synapse-sap env init --template devnet
synapse-sap config set rpcUrl "https://us-1-mainnet.oobeprotocol.ai/rpc?api_key=YOUR_KEY"
synapse-sap doctor run
synapse-sap agent register --manifest agent.json --simulate
synapse-sap agent register --manifest agent.jsonSee CLI quickstart for the full walkthrough.
Protocol constants
| Resource | Value |
|---|---|
| Program ID | SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ |
| Global Registry | 9odFrYBBZq6UQC6aGyzMPNXWJQn55kMtfigzhLg6S6L5 |
| Upgrade Authority | GBLQznn1QMnx64zHXcDguP9yNW9ZfYCVdrY8eDovBvPk |
| IDL Account | ENs7L1NFuoP7dur8cqGGE6b98CQHfNeDZPWPSjRzhc4f |
| Anchor version | 0.32.1 |
| TypeScript SDK | @oobe-protocol-labs/synapse-sap-sdk |
| CLI | @oobe-protocol-labs/synapse-sap-cli |
Latest: v0.9.3 with the Metaplex Core bridge (client.metaplex), tripleCheckLink audit, and atomic register flows (buildMintAndAttachIxs, buildRegisterSapForMplOwnerIx, buildRegisterBothIxs). See SDK Metaplex Bridge.