SDKs
Build on 0G in your language.
Official SDKs and starter kits for Storage, Compute, Data Availability, and Agentic ID.
§ 01 · SDKs
0G TypeScript SDK
TypeScriptOfficial TypeScript SDK for interacting with 0G.
npm install @0gfoundation/0g-storage-ts-sdk0G Compute Network SDK
TypeScriptSDK and CLI for accessing decentralized AI inference and fine-tuning through the 0G Compute Network GPU marketplace.
npm install @0gfoundation/0g-compute-ts-sdk0G Storage Rust SDK
RustRust CLI and SDK for uploading, downloading, and managing files on 0G Storage with support for large files and encryption.
git clone https://github.com/0gfoundation/0g-storage-sdk-rust0G Storage Go SDK
GoGo client library and CLI for interacting with 0G Storage nodes: file uploads, downloads, key-value operations, and optional encryption.
go get github.com/0gfoundation/0g-storage-client0G Memory
Persistent memory for AI coding assistants. Conversations auto-stored, indexed, and retrieved across sessions on 0G decentralized storage.
git clone https://github.com/0gfoundation/0g-memory§ 02 · Starter Kits
Compute TypeScript Starter Kit
TypeScriptTypeScript starter kit for building compute applications on 0G.
git clone https://github.com/0gfoundation/0g-compute-ts-starter-kitStorage Web Starter Kit
TypeScriptTypeScript starter kit for web-based storage solutions on 0G.
git clone https://github.com/0gfoundation/0g-storage-web-starter-kitStorage TypeScript Starter Kit
TypeScriptTypeScript starter kit for storage integration with 0G.
git clone https://github.com/0gfoundation/0g-storage-ts-starter-kitStorage Go Starter Kit
GoGo starter kit for storage integration with 0G.
git clone https://github.com/0gfoundation/0g-storage-go-starter-kitAgenticID Examples
TypeScriptHands-on examples for building AI agent identities on 0G Chain using the Agentic ID standard (ERC-7857).
git clone https://github.com/0gfoundation/agenticID-examples0G Deployment Scripts
SolidityReady-to-run Hardhat and Foundry deployment scripts for 0G Chain. Verified configs for Galileo testnet and mainnet, plus a canonical example contract.
git clone https://github.com/0gfoundation/0g-deployment-scripts0G Fine-tuning Example
TypeScriptEnd-to-end example for fine-tuning models on the 0G Compute Network. Uploads training data to 0G Storage, launches a fine-tuning job, and runs inference against the trained model.
git clone https://github.com/0gfoundation/fine-tuning-example§ 03 · Community
Built by the 0G community. Not officially maintained by 0G Labs, but great for fast prototyping and alternative language support.
0G Compute Python SDK
PythonCommunity-built Python SDK for accessing AI inference on the 0G Compute Network.
git clone https://github.com/mandatedisrael/0g-py-sdk0G Storage Python SDK
PythonCommunity-built Python SDK for uploading and retrieving files on 0G Storage.
git clone https://github.com/mandatedisrael/0g-py-sdk0G Kit (2-liner SDKs)
TypeScriptUltra-minimal TypeScript wrappers for 0G Inference and Storage. Two-line integrations for fast prototyping.
git clone https://github.com/mandatedisrael/0g-kitBuilt something for 0G? Share it with the community.
Share it on Discord