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
Model | Provider Address | Best For | Framework Support |
---|---|---|---|
llama-3.3-70b-instruct | 0xf07240Efa67755B5311bc75784a061eDB47165Dd | General AI tasks, conversations, content generation | All frameworks |
deepseek-r1-70b | 0x3feE5a4dd5FDb8a32dDA97Bed899830605dBD9D3 | Complex reasoning, analysis, code generation | All frameworks |
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
Framework | Key Benefits | Use Cases |
---|---|---|
LangChain | Seamless chain/agent integration, extensive ecosystem | Complex workflows, multi-step reasoning |
Vercel AI SDK | React streaming, edge deployment, type safety | Real-time chat, web applications |
OpenRouter | Model routing, fallback strategies, unified API | Production applications, model comparison |
LlamaIndex | RAG optimization, document processing, vector search | Knowledge bases, document analysis |
Getting Started
- Choose your framework based on your use case and existing stack
- Install the appropriate 0G provider using the installation commands above
- Configure with your private key and preferred model provider address
- 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