0G Storage is the universal memory layer for onchain AI. High-throughput storage built for AI datasets, model weights, and live state, from autonomous agents to DePIN and gaming.
Upload your first file with the TypeScript starter kit, then point the SDK or CLI at the network details below.
git clone https://github.com/0gfoundation/0g-storage-ts-starter-kit
cd 0g-storage-ts-starter-kit && npm install
cp .env.example .env # add your PRIVATE_KEY
npm run upload -- ./file.txt
Uploads are paid in 0G. Use faucet.0g.ai on Galileo testnet, or mainnet 0G for production.
Every file is committed on-chain as a Merkle root. The root hash is how you download or verify it later.
TypeScript or Go SDK for apps, the CLI for scripts and automation, or the web tool for one-off uploads.
16661https://evmrpc.0g.aihttps://indexer-storage-turbo.0g.ai0x62D4144dB0F0a6fBBaeb6296c785C71B3D57C52616602https://evmrpc-testnet.0g.aihttps://indexer-storage-testnet-turbo.0g.ai0x22E03a6A89B950F1c82ec5e74F8eCa321a105296Legacy storage was built for files, not intelligence.
Solutions like AWS, IPFS, and Filecoin were architected for the pre-AI era. While they excel at static archiving, they create critical bottlenecks when applied to real-time, active systems.
Agents and dApps fail when forced to wait for data from "cold" archival networks.
Managing dynamic states on write-only ledgers requires complex, expensive workarounds.
Siloed storage breaks the interoperability needed for universal dApps and cross-chain logic.
0G eliminates the trade-off between decentralization and performance, delivering the infrastructure required to run complex, real-time systems onchain.
Access massive datasets with millisecond-level latency, eliminating the retrieval delays of archival protocols.
Build dynamic, stateful apps while preserving full audit logs for accountability or replay.
Scale your storage capacity infinitely without hitting the throughput bottlenecks of centralized servers.
Guarantee data retrievability via cryptographic proofs to ensure full compliance and reproducibility.
Slash infrastructure overhead via distributed erasure coding instead of expensive centralized cloud hosting.
Integrate with any chain, rollup, or hybrid stack instantly, completely avoiding ecosystem and vendor lock-in.
0G Storage isn't just a "hard drive" on the blockchain. It is a programmable data layer composed of two powerful, modular layers.
A high-throughput, append-only ledger built to secure everything from massive unstructured datasets and AI model weights to raw sensor logs.
A mutable, database-like Key-Value store specifically designed for dynamic, sub-second access to vector embeddings, user state, and metadata.
Beneath these layers, 0G Storage utilizes advanced cryptographic innovations to ensure your data is always fast, secure, and available.
Erasure coding & data sharding ensure your data remains instantly accessible and durable at all times.
PoRA mechanism periodically challenges nodes to prove they hold and can serve specific data.
Every upload has an immutable cryptographic commitment to provide verifiable provenance.
Eliminates ecosystem lock-in, letting you plug 0G Storage directly into any custom rollup, VM, L1, or other existing stack.
Benchmark data pulled directly from Storage Scan
Storage node ownership, management, and reward details. Join the network and earn rewards by contributing storage capacity to the decentralized infrastructure.
Learn About Node EconomicsYes, thanks to erasure coding and PoRA-based replication, 0G Storage automatically maintains redundancy; data remains retrievable even if multiple nodes drop.
Yes, you can use the Log Layer for large blobs (datasets, media, models), and the KV Layer for structured state, metadata, or high-frequency updates.
0G Storage unlocks up to ~95% cost savings over AWS S3 for large datasets while maintaining performance and availability.
Yes, 0G Storage is ecosystem-agnostic and infinitely composable. Use it with custom rollups, VMs, or hybrid web2/web3 stacks.
Ready to co-create the future of decentralized AI? Choose your path below to start building, securing, or expanding the 0G ecosystem.
Integrate 0G Storage into your app or agent pipeline with the TypeScript or Go SDK.
Get Started