Skip to main content

Framework Integrations

The 0G AI SDK integrates seamlessly with popular AI frameworks and libraries, bringing decentralized compute to your existing workflows.

Available Providers

Choose your preferred AI framework to get started with 0G decentralized compute. Click on any provider to view the integration progress:

LangChain

The most popular framework for building LLM applications with chains, agents, and memoryStatus: 🔄 In Progress - View PR

Vercel AI SDK

React-first AI SDK for building conversational UIs with streaming and type safetyStatus: 🔄 In Progress - View PR

OpenRouter

Unified API for accessing multiple AI models with intelligent routing and fallbacksStatus: 🔄 In Progress - View PR

LlamaIndex

Data framework for building RAG applications with advanced document processingStatus: 🔄 In Progress - View PR

Integration Status

All integrations are currently under active development. Each provider card above links directly to the GitHub pull request where you can:
  • 📋 Track Progress: See the current status of the integration
  • 💬 Join Discussion: Participate in technical discussions
  • 🔍 Review Code: Examine the implementation details
  • 📝 Provide Feedback: Share your thoughts and suggestions
Want to see detailed documentation and examples? Visit our individual provider pages: LangChain, Vercel AI SDK, OpenRouter, and LlamaIndex.

Supported Models

LangChain Integration

LangChain 0G Provider

Official LangChain integration for 0G decentralized compute

Installation

Basic Usage

Advanced LangChain Features

Vercel AI SDK Integration

Vercel AI SDK 0G Provider

Official Vercel AI SDK integration for 0G decentralized compute

Installation

Basic Usage

Streaming with React

OpenRouter Integration

OpenRouter 0G Provider

OpenRouter integration bringing 0G models to the OpenRouter ecosystem

Installation

Usage

Model Routing

LlamaIndex Integration

LlamaIndex 0G Provider

LlamaIndex integration for RAG applications with 0G decentralized compute

Installation

Basic RAG Setup

Advanced RAG with 0G

Integration Benefits

Decentralized Advantages

No Vendor Lock-in

Use familiar frameworks while avoiding dependency on centralized AI providers

Cost Efficiency

Competitive pricing through decentralized compute marketplace

Censorship Resistance

Decentralized network ensures availability and resistance to censorship

Privacy & Security

TEE (Trusted Execution Environment) verification for secure computation

Framework-Specific Benefits

Getting Started

  1. Choose your framework based on your use case and existing stack
  2. Install the appropriate 0G provider using the installation commands above
  3. Configure with your private key and preferred model provider address
  4. Start building with decentralized AI compute!

Migration Guide

From OpenAI to 0G

From Anthropic to 0G

Community & Support

  • GitHub Discussions: Join framework-specific discussions in each integration repository
  • Discord: Connect with the 0G community for integration support
  • Documentation: Comprehensive guides for each framework integration
  • Examples: Production-ready examples in each integration repository
Ready to integrate 0G with your favorite framework? Check out the specific integration repositories linked above for detailed setup guides and examples!