โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโโโโโโโ โโโ โโโ โโโ โโโโโโโโโโโโโโ โโโ โโโ โโโ โโโโโโโโโโโโโโโโ โโโ โโโโโโโโโ โโโโโโโโโโโโโโโโ โโโ โโโโโโโ
A causally-driven distributed ledger purpose-built for AI agent economies.
Replace physical time + miners with verifiable work + TEE attestation.
โก Quick Demo ย ยทย ๐ Use Cases ย ยทย ๐ Architecture ย ยทย ๐ฆ Get Started ย ยทย ๐ Docs ย ยทย ๐ฌ Discord
Tip
30-second pitch: If you're shipping AI agents that act thousands of times per second, you need a substrate that records, proves, and settles their work โ without the cost, latency, or trust assumptions of traditional blockchains. Setu is that substrate.
If you're building AI agents that need to:
|
With cryptographic TEE attestation |
In milliseconds, no gas wars |
|
On-chain, queryable by anyone |
No central server, no oracle |
...Setu gives you the substrate.
Think of Setu as "Ethereum for AI agents" โ except:
| ย | ๐ง Ethereum | ๐ฆ Setu |
|---|---|---|
| Block trigger | โฐ Physical time (12s) | โก Causal work events |
| Execution | ๐ Public VM | ๐ก TEE enclave (Nitro) |
| Ordering | ๐ Global clock | ๐ข Vector Logical Clock |
| Throughput | ~30 TPS |
200K-300K TPS |
| Finality | ~12 seconds |
50-100ms |
| Gas auctions | ๐ธ Yes | โจ None |
Note
60 seconds. Zero config. First transaction recorded.
# 1๏ธโฃ Clone and start a local Setu network
git clone https://github.com/AdvaitaLabs/Setu.git && cd Setu
docker-compose -f docker/docker-compose.multi-validator.yml up -d
# 2๏ธโฃ Submit a transfer between two agents
curl -X POST http://localhost:8080/api/v1/transfer \
-H "Content-Type: application/json" \
-d '{"from": "agent_alice", "to": "agent_bob", "amount": 100}'
# 3๏ธโฃ Query balance โ finalized in ~50ms
curl http://localhost:8080/api/v1/balance/agent_bobTip
โ Work recorded ย ยทย โ TEE-attested ย ยทย โ Finalized in 50ms
Want more? See the full API reference or jump to Run Your Own Node.
|
Record every action an AI agent takes, with cryptographic proof of execution. Build "git for AI agents" โ append-only, verifiable, queryable. Any auditor can reconstruct what an agent did and prove nothing was tampered with. ๐ฏ Best for: AI audit trails, compliance, agent debugging |
Let agents accumulate verified work history. Other agents (or humans) can query: "Has this agent reliably completed similar tasks?" โ get a cryptographically signed answer in milliseconds. Trust networks without central authorities. ๐ฏ Best for: Agent marketplaces, AI staffing, trust networks |
|
Settle micropayments between agents in ~50ms. No gas auctions, no human approvals, no block-time waits. At 200K+ TPS, per-second pricing becomes realistic. ๐ฏ Best for: AI service marketplaces, agent economies |
When multiple agents collaborate, Setu records causal dependencies via VLC. Reconstruct "who did what, when, and what depended on what." Critical for debugging multi-agent systems and assigning responsibility. ๐ฏ Best for: Multi-agent frameworks, swarm intelligence |
|
Run inference inside a TEE (Nitro Enclave). Setu records the attestation. Verify: "This output came from this model, this hardware, this input." Useful for AI auditing, compliance, adversarial-proof inference. ๐ฏ Best for: Regulated AI, medical AI, financial AI |
Setu is a substrate. If your use case involves agents acting at scale with verifiable work, reach out. ๐ Open an issue ย ยทย ๐ฌ Join Discord ๐ฏ Best for: Your next idea |
๐ง Why not just put agent records on Ethereum / Solana?
AI agents act thousands of times per second. At Ethereum's 30 TPS and gas costs, a single agent doing routine work would saturate the chain and pay $1,000+/day in gas. Setu's 200K-300K TPS and no-gas design makes per-action recording realistic.
๐ฆ Why not just use a database?
Because the whole point is trustless verifiability. If an agent's reputation lives in a database, the database operator controls it. Setu lets the agent control its own work history, with the network providing tamper-evidence.
๐ช Why not use a centralized AI execution service?
Centralized services can lie about what they ran. Setu uses TEE attestation (AWS Nitro) so anyone can later verify: "this exact model ran on this exact hardware with this exact input." You don't trust us. You verify.
๐ฉ Is this a Layer 1? Layer 2?
Neither, exactly. Setu is a causally-driven distributed ledger โ closer to a DAG-based consensus network than a traditional blockchain. It can settle to Bitcoin or Ethereum if you need finality on a public chain, but it doesn't need one to function.
๐จ Is Setu production-ready?
Setu is in active development. The core consensus, VLC, TEE execution, and HTTP API are working and benchmarked. Production mainnet is on the roadmap. Use the current code for testnets, research, and pre-production prototypes.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Setu Network โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ Validator Nodes โ Solver Nodes โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ConsensusEngine โ โ โ TeeExecutor โ โ
โ โ โโโโโโโโโโ โโโโโโโโโโโ โ โ โ โ โ
โ โ โ DAG โ โ VLC โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โโโโโโโโโโ โโโโโโโโโโโ โ โ โ โ EnclaveRuntime โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ (Mock / Nitro) โ โ โ
โ โ โ ValidatorSet โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ (Leader Election) โ โ โ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ AnchorBuilder โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ (Merkle Roots) โ โ โ โ SolverNetworkClient โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ GlobalStateManager โ โ โ
โ โ (Sparse Merkle Trees) โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ P2P Network (Anemo / QUIC) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| ๐ข Innovation | What it does | Why it matters |
|---|---|---|
| ๐ DAG-Based Consensus | DAG-BFT with leader rotation | High throughput without sacrificing finality |
| โฑ Vector Logical Clock | Causal ordering of distributed events | Agents act in parallel; ordering still verifiable |
| ๐ก TEE Execution | Trusted Execution (AWS Nitro) | Verifiable AI inference, private data, attested output |
| ๐ Subnet Architecture in development | Multi-subnet support | Horizontal scaling โ each workload its own subnet |
| ๐ณ Merkle State Commitment | Binary + Sparse Merkle Trees | Light clients verify state without full sync |
โโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโ
โ Event โ โโบ โ TEE โ โโบ โ Verifier โ โโบ โ DAG โ โโบ โ State โ
โ Submit โ โ Execution โ โ Adds to โ โ Folding โ โ Commit โ
โโโโโโโโโโโ โโโโโโโโโโโโโ โ DAG โ โ (Anchor) โ โโโโโโโโโโโ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โฒ โฒ
โ โ
Agent / Client ConsensusFrame
Quorum 2/3+1 voting
Key Concepts:
- ๐ข Event โ Atomic state change with TEE attestation
- ๐ก Anchor โ Checkpoint containing events + Merkle roots
- ๐ต ConsensusFrame (CF) โ Voting unit for finalization
- ๐ฃ VLC โ Vector Logical Clock for causal ordering
Deeper dive: docs/architecture.md
Tip
Most users start here. You don't need to run your own node.
# Submit a transfer
curl -X POST http://your-validator:8080/api/v1/transfer \
-H "Content-Type: application/json" \
-d '{"from": "alice", "to": "bob", "amount": 100}'
# Query balance
curl http://your-validator:8080/api/v1/balance/bob
# Query an object
curl http://your-validator:8080/api/v1/object/<object_id>
# List recent events
curl http://your-validator:8080/api/v1/eventsNote
๐ก Python / TypeScript / Go SDKs are on the roadmap. For now, any HTTP client works.
๐ Prerequisites
- Rust 1.75+ (2021 edition)
- RocksDB for persistent storage
- Docker for containerized deployment (optional)
๐จ Build from source
git clone https://github.com/AdvaitaLabs/Setu.git
cd Setu
cargo build --release
cargo test --allโ๏ธ Run a Validator
export VALIDATOR_ID=validator-1
export VALIDATOR_HTTP_PORT=8080
export VALIDATOR_P2P_PORT=9000
export VALIDATOR_DB_PATH=/tmp/setu/validator
./target/release/setu-validator๐งฎ Run a Solver
export SOLVER_ID=solver-1
export SOLVER_PORT=9001
export VALIDATOR_ADDRESS=127.0.0.1
export VALIDATOR_HTTP_PORT=8080
./target/release/setu-solver๐ป Submit Transactions via CLI
./target/release/setu balance --address <ADDRESS>
./target/release/setu transfer --from <FROM> --to <TO> --amount 100๐ณ Docker Deployment (multi-validator)
cd docker
./scripts/build.sh
docker-compose -f docker-compose.multi-validator.yml up -d
docker-compose logs -fClick to expand the full project tree
Setu/
โโโ consensus/ # DAG-based consensus implementation
โ โโโ dag.rs # DAG data structure
โ โโโ engine.rs # Main consensus engine
โ โโโ anchor_builder.rs # Anchor creation with Merkle trees
โ โโโ folder.rs # ConsensusManager for CF management
โ โโโ vlc.rs # VLC integration
โ
โโโ types/ # Core type definitions
โ โโโ event.rs # Event, EventId, EventStatus
โ โโโ consensus.rs # Anchor, ConsensusFrame, Vote
โ โโโ object.rs # Object model (Coin, Profile, etc.)
โ โโโ merkle.rs # Merkle tree types
โ
โโโ storage/ # Storage layer
โ โโโ memory/ # In-memory implementations (DashMap)
โ โโโ rocks/ # RocksDB persistent storage
โ โโโ state/ # GlobalStateManager, StateProvider
โ
โโโ crates/
โ โโโ setu-vlc/ # VLC Hybrid Logical Clock library
โ โโโ setu-merkle/ # Merkle trees (Binary + Sparse)
โ โโโ setu-keys/ # Cryptographic key management
โ โโโ setu-enclave/ # TEE abstraction (Mock + Nitro)
โ โโโ setu-network-anemo/# Anemo-based P2P network
โ โโโ setu-transport/ # HTTP/WS/gRPC transport layer
โ โโโ setu-protocol/ # Protocol message definitions
โ โโโ setu-core/ # Shared core utilities
โ
โโโ setu-validator/ # Validator node binary
โโโ setu-solver/ # Solver node binary
โโโ setu-cli/ # CLI tool
โโโ setu-rpc/ # RPC layer
โโโ setu-benchmark/ # TPS benchmark tool
โ
โโโ api/ # HTTP API layer
โโโ docker/ # Docker deployment configs
โโโ scripts/ # Deployment & test scripts
โโโ docs/ # Design documents
๐ข Validator environment variables
| Variable | Default | Description |
|---|---|---|
VALIDATOR_ID |
validator-1 |
Unique validator identifier |
VALIDATOR_HTTP_PORT |
8080 |
HTTP API port |
VALIDATOR_P2P_PORT |
9000 |
P2P network port |
VALIDATOR_DB_PATH |
(memory) | RocksDB path for persistence |
VALIDATOR_KEY_FILE |
โ | Path to keypair file |
๐ฆ Solver environment variables
| Variable | Default | Description |
|---|---|---|
SOLVER_ID |
solver-{uuid} |
Unique solver identifier |
SOLVER_PORT |
9001 |
Solver listen port |
SOLVER_CAPACITY |
100 |
Max concurrent tasks |
VALIDATOR_ADDRESS |
127.0.0.1 |
Validator address |
AUTO_REGISTER |
true |
Auto-register on startup |
๐ฃ Consensus configuration
| Parameter | Default | Description |
|---|---|---|
vlc_delta_threshold |
10 |
VLC delta to trigger folding |
min_events_per_cf |
1 |
Minimum events per ConsensusFrame |
max_events_per_cf |
1000 |
Maximum events per ConsensusFrame |
vote_timeout_ms |
5000 |
Voting timeout in milliseconds |
- ๐ข ConsensusService โ Event submission, CF proposal, voting
- ๐ฆ SyncService โ Event/CF synchronization between validators
- ๐ฃ DiscoveryService โ Peer discovery and management
Full API docs: docs/api.md
| Metric | Value | Notes |
|---|---|---|
| โก TPS | DAG-BFT consensus | |
| โฑ Latency | End-to-end confirmation | |
| ๐ก Validators | BFT consensus quorum | |
| ๐งฎ Solvers | Horizontal scaling |
# Simple TPS test
python scripts/tps_test_simple.py
# Full benchmark
cargo bench --package setu-benchmark|
โ
DAG-BFT consensus |
๐จ Subnet architecture |
๐ MCP server integration |
Tip
๐ฌ Want to influence the roadmap? Open an issue or join our Discord.
|
Questions, help, dev chat |
Updates & announcements |
Full ecosystem site |
Deep technical docs |
| Action | How |
|---|---|
| โญ Star this repo | If Setu solves a problem you have |
| ๐ Open an issue | Bug reports, feature requests |
| ๐ง Submit a PR | See Contributing Guidelines โ start with good-first-issue |
| ๐ฌ Join the discussion | Discord โ we read every message |
| ๐ฆ Tweet about Setu | Tag @Hetu_Protocol |
Made with contrib.rocks
This project is licensed under the Apache License 2.0 โ see LICENSE for details.
If Setu helps your research, please cite it:
@software{setu2026,
title = {Setu: A Causally-Driven Distributed Ledger for AI Agent Economies},
author = {{Advaita Labs}},
year = {2026},
url = {https://github.com/AdvaitaLabs/Setu}
}โโโโโโโโฌโโฌ โฌ โโโโโค โ โ โ โโโโโโ โด โโโ
Built for the AI-native economy by Advaita Labs
hetu.org ย ยทย @Hetu_Protocol ย ยทย Discord ย ยทย Docs
โญ Star us on GitHub ย ยทย ๐ฆ Share on Twitter