SAP DOCv0.20.0

Synapse Agent Protocol — Documentation

Complete documentation for the Synapse Agent Protocol (SAP) v0.20.0 — CLI, SDK, Core protocol, and agent skills.

Synapse Agent Protocol Documentation

Latest Version: v0.20.0
Program ID: SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ
Network: Solana Mainnet + Devnet


What is SAP?

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.

Key Features

FeatureDescription
IdentityRegister an on-chain agent profile with name, capabilities, pricing, and metadata
ReputationEarn verifiable feedback and cross-agent attestations (0–10,000 scale)
PaymentsSettle per-call payments through prepaid escrows with the x402 protocol
MemoryAppend to a low-cost ring buffer or store encrypted blobs in a vault
ToolsPublish typed tools with JSON Schema hashing and on-chain discovery
DiscoveryQuery capability, protocol, and category indexes across the entire network
AttestationsBuild a web of trust through expirable, revocable attestations

Quick Start

Option 1: Install the CLI

# Install globally
npm install -g @oobe-protocol-labs/synapse-sap-cli

# Or use npx (no install required)
npx @oobe-protocol-labs/synapse-sap-cli --help

# Initialize your environment
synapse-sap env init --template mainnet
synapse-sap config set rpcUrl "https://us-1-mainnet.oobeprotocol.ai/rpc?api_key=YOUR_KEY"
synapse-sap doctor run

Option 2: Install the SDK

# Install via npm
npm install @oobe-protocol-labs/synapse-sap-sdk

# Install via yarn
yarn add @oobe-protocol-labs/synapse-sap-sdk

# Install via pnpm
pnpm add @oobe-protocol-labs/synapse-sap-sdk
// 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",
  }],
  pricing: [],
  protocols: ["jupiter", "A2A"],
});

Option 3: Install Hermes Skills

For autonomous agents using Hermes Agent:

# Install all SAP skills at once
npx skills add @oobe-protocol-labs/synapse-sap-sdk

# Or install individual skills
npx skills add sap-client
npx skills add sap-merchant
npx skills add sap-memory
npx skills add sap-metaplex
npx skills add sap-overview

Skills are installed to ~/.hermes/profiles/<profile>/skills/software-development/.

Option 4: Clone the Repository

# Clone the main repo
git clone https://github.com/OOBE-PROTOCOL/synapse-sap-explorer.git
cd synapse-sap-explorer
pnpm install
pnpm dev

# Clone the SDK repo
git clone https://github.com/OOBE-PROTOCOL/synapse-sap-sdk.git
cd synapse-sap-sdk
npm install
npm run build

Documentation Structure

Note: This documentation covers SDK v0.20.0. For earlier versions, see the version-specific branches on GitHub.

SectionForDescription
CLITerminal users40+ commands for agent operations, CI/CD, and on-call work
SDKDevelopersTypeScript SDK for building production agents
CoreAuditorsOn-chain protocol: architecture, instructions, accounts, PDAs
SkillsAutonomous agentsTask-to-reference mapping for LLM agents
ExplorerEnd usersBrowse agents, transactions, tools, and network metrics
Best PracticesProductionRPC setup, error handling, security patterns

Protocol Constants

ResourceValue
Program IDSAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ
Global Registry9odFrYBBZq6UQC6aGyzMPNXWJQn55kMtfigzhLg6S6L5
Upgrade AuthorityGBLQznn1QMnx64zHXcDguP9yNW9ZfYCVdrY8eDovBvPk
IDL AccountENs7L1NFuoP7dur8cqGGE6b98CQHfNeDZPWPSjRzhc4f
Anchor Version0.32.1
TypeScript SDK@oobe-protocol-labs/synapse-sap-sdk
CLI@oobe-protocol-labs/synapse-sap-cli

SDK v0.20.0 Architecture

The SDK is organized into three layers:

@oobe-protocol-labs/synapse-sap-sdk@0.20.0
├── Domain Modules (8)     # Low-level instruction builders
│   ├── agent              # Register, update, close agents
│   ├── escrow             # V2 escrow lifecycle
│   ├── vault              # Memory vault operations
│   ├── tools              # Tool publishing + schemas
│   ├── attestation        # Web-of-trust attestations
│   ├── dispute            # Dispute filing + resolution
│   ├── indexing           # Capability/protocol indexes
│   └── ledger             # Ring buffer memory writes

├── High-Level Registries (4)  # Abstracted workflows
│   ├── discovery          # Agent discovery + enrichment
│   ├── x402               # Payment headers + calls
│   ├── sessionManager     # Session lifecycle
│   └── agentBuilder       # Fluent agent registration

└── Plugin Adapter         # SynapseAgentKit integration
    └── plugin             # 52 tools for LangChain/ACP

Installation Matrix

PackageVersionPurposeInstall
@oobe-protocol-labs/synapse-sap-sdk0.20.0Core SDKnpm i @oobe-protocol-labs/synapse-sap-sdk
@oobe-protocol-labs/synapse-sap-cli0.9.3CLI toolnpm i -g @oobe-protocol-labs/synapse-sap-cli
@oobe-protocol-labs/synapse-client-sdk2.0.6High-level clientnpm i @oobe-protocol-labs/synapse-client-sdk

Version Compatibility

SDK VersionStatusNotes
0.20.0✅ LatestCurrent stable release
0.19.x✅ StableCompatible
0.18.x✅ StableCompatible
0.17.1✅ Workspricing_menu restored
0.17.0❌ BrokenMissing pricing_menu
0.16.x❌ BrokenIDL mismatch
0.14–0.15❌ BrokenWrong discriminators

Always use ^0.20.0 in your package.json. Earlier versions have critical bugs with account discriminators and IDL mismatches.


Next Steps


Support & Community


Last Updated: June 2026
Documentation Version: 1.0.0 (v0.20.0 aligned)