← Back to Home

Silo Documentation

Getting Started

Silo is a four-layer on-chain firewall for Solana AI agents. It intercepts every transaction, analyzes it with Claude AI, and only releases it after a cryptographically-verified verdict.

Quick Start

npm install @silo-sol/sdk

import { Silo } from '@silo-sol/sdk';

const silo = new Silo({
  rpcUrl: 'https://devnet.helius-rpc.com',
  relayUrl: 'https://relay.silo.xyz',
  agentId: 'my-agent',
  agentOwner: wallet,
  programId: 'Si1o...',
});

const result = await silo.protect({
  prompt: 'Swap 10 SOL for USDC',
  transaction: tx,
});

if (result.status === 'approved') {
  await sendAndConfirm(result.transaction);
}

The Four Layers

  1. Encrypt - Agent intent is encrypted with NaCl (X25519 + XSalsa20) and stored off-chain
  2. Queue - Anchor program receives SHA-256 hash, runs simulateTransaction, emits ActionQueued event
  3. Analyze - Helius webhook triggers oracle worker, fetches payload, sends to Claude, writes verdict on-chain
  4. Human-in-the-Loop - ESCALATE verdicts pause for operator approval via CLI/Ledger

Threat Scoring

Score RangeVerdictDescription
0-20,000APPROVERoutine DeFi operations
20,001-60,000ESCALATEUnusual but not clearly malicious
60,001-100,000BLOCKActive attack pattern detected