Storage
Decentralized data storage for AI-scale apps.
Fast, decentralized storage for AI workloads. A Log layer for append-only archives, a Key-Value layer for live state, 200 MBPS retrieval, and up to 95% less cost than AWS.
Try it without code
§ 01 · Quickstart
Recommended
Start from the Storage Web Starter Kit
A ready-to-run TypeScript + browser template with wallet connection, file uploads, and downloads already wired up. Easiest way to understand the full flow end to end.
Or follow the 6 steps below to wire it up yourself.
Install the SDK
npm install @0gfoundation/0g-storage-ts-sdk ethers
Get testnet tokens
# claim testnet tokens at faucet.0g.ai
# send them to the wallet you plan to use for uploadsInitialize the signer and indexer
import { Indexer } from '@0gfoundation/0g-storage-ts-sdk'import { ethers } from 'ethers'const RPC_URL = 'https://evmrpc-testnet.0g.ai'const INDEXER_RPC = 'https://indexer-storage-testnet-turbo.0g.ai'const provider = new ethers.JsonRpcProvider(RPC_URL)const signer = new ethers.Wallet(process.env.PRIVATE_KEY!, provider)const indexer = new Indexer(INDEXER_RPC)
Upload a file
import { MemData } from '@0gfoundation/0g-storage-ts-sdk'// In-memory payload. For a file on disk, use ZgFile instead.const file = new MemData(new TextEncoder().encode('hello 0G'))const [rootHash, uploadErr] = await indexer.upload(file, RPC_URL, signer)if (uploadErr) throw uploadErrconsole.log('root hash:', rootHash)
Retrieve it
// Download back to disk at ./hello.txt, verifying the Merkle proof.const err = await indexer.download(rootHash, './hello.txt', true)if (err) throw err
Verify on Storage Scan
# open https://storagescan.0g.ai and search for the root hash
# confirm the file is pinned and replicated across nodes§ 02 · Storage SDKs
0G TypeScript SDK
TypeScriptCore SDK for Storage uploads, downloads, and indexer access.
npm install @0gfoundation/0g-storage-ts-sdk0G Storage Rust SDK
RustRust CLI and SDK for large-file uploads, downloads, and encryption.
git clone https://github.com/0gfoundation/0g-storage-sdk-rust0G Storage Go SDK
GoGo client library and CLI for files, key-value operations, and optional encryption.
go get github.com/0gfoundation/0g-storage-client§ 03 · Deep dive
§ 04 · Tutorials
§ 05 · Built with Storage
View showcase →Shawarma Orchestrate
Multi-agent AI prediction platform where specialized agents collaborate via 0G Compute to research questions, reach consensus, and execute on-chain Uniswap trades.
ETHGlobal Cannes 2026Alpha Dawg
Autonomous multi-agent swarm that hires specialists via nanopayments, runs TEE-sealed adversarial debate on 0G Compute, and stores a verifiable cycle DAG on 0G Storage.
ETHGlobal Cannes 2026Don't Get Drained
Agentic firewall marketplace where security researchers publish AI guard agents on 0G that review DeFi transactions before execution using 0G Compute and 0G Storage.
ETHGlobal Cannes 2026Croisette.cc
Agentic investment platform using ZeroClaw agents with 0G Compute LLMs for 24/7 portfolio building and management, with prompt integrity verified on 0G Storage.
ETHGlobal Cannes 2026Orchestra
Conversational AI agent for crypto swaps and transfers, using 0G Compute for inference and 0G Storage for agent memory, with Ledger hardware approval for high-value transactions.
ETHGlobal Cannes 2026CaaS
Claw-as-a-Service platform for deploying World ID-verified autonomous AI agents as ERC-7857 Agentic IDs on 0G Chain with 0G Storage memory and WLD-powered x402 micropayments.
ETHGlobal Cannes 2026

