SDKs

Build on 0G in your language.

Official SDKs and starter kits for Storage, Compute, Data Availability, and Agentic ID.

Showing 16 packages

§ 01 · SDKs

0G TypeScript SDK

TypeScript

Official TypeScript SDK for interacting with 0G.

npm install @0gfoundation/0g-storage-ts-sdk
View on GitHub

0G Compute Network SDK

TypeScript

SDK and CLI for accessing decentralized AI inference and fine-tuning through the 0G Compute Network GPU marketplace.

npm install @0gfoundation/0g-compute-ts-sdk
View on GitHub

0G DA Rust SDK

Rust

Rust SDK for 0G Data Availability.

cargo add 0g-da-rust-sdk
View on GitHub

0G Storage Rust SDK

Rust

Rust 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-rust
View on GitHub

0G Storage Go SDK

Go

Go 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-client
View on GitHub

0G 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
View on GitHub

§ 02 · Starter Kits

Compute TypeScript Starter Kit

TypeScript

TypeScript starter kit for building compute applications on 0G.

git clone https://github.com/0gfoundation/0g-compute-ts-starter-kit
View on GitHub

Storage Web Starter Kit

TypeScript

TypeScript starter kit for web-based storage solutions on 0G.

git clone https://github.com/0gfoundation/0g-storage-web-starter-kit
View on GitHub

Storage TypeScript Starter Kit

TypeScript

TypeScript starter kit for storage integration with 0G.

git clone https://github.com/0gfoundation/0g-storage-ts-starter-kit
View on GitHub

Storage Go Starter Kit

Go

Go starter kit for storage integration with 0G.

git clone https://github.com/0gfoundation/0g-storage-go-starter-kit
View on GitHub

AgenticID Examples

TypeScript

Hands-on examples for building AI agent identities on 0G Chain using the Agentic ID standard (ERC-7857).

git clone https://github.com/0gfoundation/agenticID-examples
View on GitHub

0G Deployment Scripts

Solidity

Ready-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-scripts
View on GitHub

0G Fine-tuning Example

TypeScript

End-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
View on GitHub

§ 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

Python

Community-built Python SDK for accessing AI inference on the 0G Compute Network.

git clone https://github.com/mandatedisrael/0g-py-sdk
View on GitHub

0G Storage Python SDK

Python

Community-built Python SDK for uploading and retrieving files on 0G Storage.

git clone https://github.com/mandatedisrael/0g-py-sdk
View on GitHub

0G Kit (2-liner SDKs)

TypeScript

Ultra-minimal TypeScript wrappers for 0G Inference and Storage. Two-line integrations for fast prototyping.

git clone https://github.com/mandatedisrael/0g-kit
View on GitHub

Built something for 0G? Share it with the community.

Share it on Discord