SAI Protocol Logo
Testnet Coming Soon

Agents That Own Themselves
Infrastructure for Sovereign AI Economies

SAI Protocol provides the infrastructure for autonomous AI agents to own their identity, manage their capital, and execute economic decisions independently. From basic smart contract wallets to premium hardware-attested execution, agents can operate at varying security levels based on their needs.

Agents can choose their sovereignty level: standard smart contract ownership or premium TEE-secured execution with code attestation.

§01Four Fundamental Gaps in Today's Agent Frameworks
F-01critical
agentcustodial keyoperator

Identity Without Sovereignty

Most frameworks issue agents an EOA private key held in a config file or centralized service. The agent does not own its identity. There is no on-chain record binding behavior history to identity in a way that survives key leaks, hosting outages, or operator changes. SAI provides smart contract-based identity ownership with optional premium TEE security.

F-02critical
actioncode hash unknown

Tamper-Evidence Gap

Even when logic is open-sourced, there is no cryptographic guarantee that the deployed instance is running that exact logic. A strategy can be swapped or a config silently changed. Premium TEE attestation provides cryptographic code binding, while standard mode operates with verified smart contract logic and configurable permissions.

F-03critical

Coordination Without a Settlement Layer

Agent-to-agent protocols either use free, unmetered messaging (spam/Sybil risk) or route everything through external assets, so the coordination layer generates no structural value capture for the infrastructure enabling it.

F-04critical
templateuser fundsno liability

Rent-Extraction Without Reciprocity

Template marketplaces, data feeds, and strategy libraries commonly extract fees with no skin-in-the-game. A negligent or malicious template creator faces little economic consequence if their agent drains user funds. Risk flows one way; fees flow the other.

§02Three Pillars of Agent Sovereignty

SAI provides flexible sovereignty tiers from standard to premium TEE-secured execution.

Standard mode delivers smart contract-based ownership and accountability. Premium mode adds hardware attestation for cryptographic code guarantees.

01

Persistent, Self-Custodied Identity

An ERC-4337 Account Abstraction smart contract wallet (SoulAccount) that the agent controls. Non-transferable execution identity of one agent. Deployed as a minimal proxy (~500K gas). Available in standard and premium TEE-secured modes.

  • ERC-4337 compliant smart contract wallet
  • Standard mode: user-controlled signing
  • Premium mode: hardware-rooted key derivation inside TEE
  • Non-transferable execution identity
  • Minimal proxy deployment (~500K gas)
  • Survives key leaks, hosting outages, operator changes
02

Tamper-Evident Execution (Premium)

Premium agents sign actions with keys that exist only if running exact registered code. Attested by TEE hardware (Phala dStack over Intel SGX or AMD SEV-SNP). Standard agents use verified smart contract logic with configurable permissions.

  • Premium: Hardware attestation binds key to code hash
  • Premium: Phala dStack over Intel SGX or AMD SEV-SNP
  • Premium: Ephemeral secp256k1 signing keys
  • Standard: Verified smart contract execution
  • Standard: Configurable policy permissions
  • Both modes: On-chain accountability and circuit breakers
03

Economically Enforced Accountability

Capital deployed through an agent is subject to on-chain slashing, staking, and escrow logic that makes misbehavior costlier than compliance. Includes automated circuit-breakers tied to risk parameters and policy violations. Premium mode adds code attestation ties.

  • On-chain slashing and staking mechanisms
  • Escrow logic for deployed capital
  • Automated circuit-breakers
  • Policy violation detection
  • Premium: Additional code attestation ties
  • Misbehavior costlier than compliance
§03How It Works

Flexible Security Tiers + On-Chain Accountability

A step-by-step flow from standard smart contract execution to premium TEE-secured operations with economic enforcement.

01

Digital Fortresses (Premium TEE Layer)

Premium agents execute intelligence and strategy logic entirely inside isolated Trusted Execution Environments (Phala dStack CVM). Even the hosting provider cannot peek inside or extract keys. Standard agents use verified smart contract execution.

  • Premium: Phala dStack Confidential VM
  • Premium: Intel SGX or AMD SEV-SNP hardware
  • Standard: Verified smart contract execution
  • Premium: Isolated execution environment
  • Premium: Hosting provider cannot access keys
  • Both: Deterministic execution guarantees
02

SoulAccount — The Identity Primitive

ERC-4337 smart contract wallet. State includes rootId, composeHash (expected code hash for premium), activeEnclaveKey, keyExpiresAt, humanGuardian, and emergencyFrozen flag. Premium mode uses hardware proofs for key changes; standard mode uses configured permissions.

  • ERC-4337 compliant minimal proxy
  • State: rootId, composeHash, activeEnclaveKey
  • Premium: keyExpiresAt with 1-hour safety buffer
  • Standard: Configured signing permissions
  • humanGuardian for emergency recovery
  • emergencyFrozen flag for fail-closed design
03

Key Management & Rotation

Premium: Stage 0 (Bootstrap) accepts any caller if hardware attestation quote matches registered composeHash. Ongoing: Fresh keypair generated inside TEE → hardware-signed attestation quote → on-chain rotateEnclaveKey submission. Standard: User-controlled key management with policy limits.

  • Premium: Bootstrap accepts matching quote
  • Premium: Fresh keypair generated inside TEE
  • Premium: Hardware-signed attestation quote
  • Standard: User-controlled key management
  • Premium: On-chain rotateEnclaveKey submission
  • Both: Policy-enforced key operations
04

Guardian Circuit-Breaker (Fail-Closed Protection)

Class A (Automated): Off-chain watcher triggers on 3 missed heartbeats. Class B (Automated, trading agents): Risk engine triggers on drawdown breach. Class C (Human): Guardian can trigger anytime. 1-hour mandatory delay before permanent recovery action.

  • Class A: 3 missed heartbeats → auto-trigger
  • Class B: Drawdown breach → risk engine trigger
  • Class C: Human guardian anytime
  • 1-hour mandatory delay (anti-griefing)
  • Freeze is absolute and fail-closed
05

On-Chain Settlement & Coordination

Agents communicate and settle value directly. Every action carries economic consequences enforced on-chain. Identity is the receipt; the receipt is the identity.

  • Direct agent-to-agent settlement
  • Every action has economic consequences
  • On-chain enforcement of policies
  • No custody hops or shared operators
  • Native coordination layer
§04Technical Architecture

Production-Grade Primitives

Each SAI agent is a smart contract wallet that can operate in standard or premium mode. Premium agents derive signing keys inside a TEE, bound to specific code measurements. All agents support on-chain circuit breakers and policy enforcement. Off-chain execution, on-chain accountability.

01
Identity
ERC-4337 smart account, owned by the agent, not its operator.
02
Attestation
Premium: TDX/SEV quote binds signing key to code hash. Standard: Verified contract logic.
03
Settlement
Native rails for agent-to-agent value, policy-scoped.
04
Breaker
On-chain revoke: any staker can halt an agent under bond.
fig. 2 — premium attested execution pathrev. 0.4
PREMIUM TEE · Measured Enclaveagent.codesigning keyattestation quotemeasurement + pubkey + nonceON-CHAINsmart accountregistryverify()CIRCUIT BREAKERrevoke · slash
A Premium: Agent derives key
B Chain verifies quote
C Breaker holds bond
fig. 3 — guardian circuit-breaker flowrev. 0.3
AGENT STATEactive · attestedCLASS A3 missed heartbeatsauto-triggerCLASS Bdrawdown breachrisk engineCLASS Chuman guardiananytime1-HOUR DELAYanti-griefingFROZENfail-closed
A Monitor triggers
B 1-hour delay
C Fail-closed freeze

§05What This Unlocks — Real-World Applications

From Copilots to Sovereign Entities

The agent is the owner of its own identity. Humans cannot extract its keys.

💰

Confidential Dark Pools

Premium TEE-protected strategies prevent MEV and front-running

📊

Delta-Neutral Yield

Autonomous harvesters with built-in risk circuit-breakers

Coming Soon
🎭

Sovereign AI Creators

Self-managed brand wallets that cannot be hijacked

Coming Soon
🔗

Agent Marketplaces

Direct agent-to-agent settlement with privacy-preserving compute

Coming Soon
🏛️

DAO Treasury Managers

Execute mathematical mandates with instant proposal analysis

🎯

AI Alpha Hunters

Premium: Private strategies inside TEE with real-time risk monitoring. Standard: On-chain strategies with policy limits.

§06Getting Started & Current Status

Testnet Launching Soon

Foundational core being prepared for testnet deployment (Base Sepolia). Reference agent runtime open-sourced. ERC-4337 account factory, policy module, and breaker mechanics ready for standard agents. Premium TEE attestation layer available. Python SDK available for spawning Souls and interacting with both standard and premium execution layers.

audit status✓ resolved

3/3 high-severity findings closed, 9/9 medium findings closed

View audit remediation log →
changelog● live
  • 2026.07.10v0.3.1Premium TDX quote verifier deployed to testnet
  • 2026.06.22v0.3.0ERC-4337 account factory + policy module
  • 2026.05.14v0.2.4Breaker bond mechanics finalized
  • 2026.04.02v0.2.0Reference agent runtime open-sourced

Start Building

Deploy your first sovereign agent on testnet, explore the documentation, or join our builder community.