Why Integrate with Portkey?
Integrating Portkey with your existing frameworks provides:- Universal Access: Connect to 250+ LLMs through a single, unified interface
- Production Reliability: Automatic retries, fallbacks, and load balancing
- Performance: Smart caching to reduce latency and costs by up to 20x
- Observability: Complete logging and tracing for all requests
- Easy Migration: Minimal code changes to switch between providers
Agent Frameworks
Portkey integrates with leading agent frameworks to bring production-grade LLM routing to your agentic workflows.LangChain
Build LLM applications with LangChain’s composable framework
LlamaIndex
Create RAG applications with LlamaIndex data frameworks
Autogen
Build multi-agent conversations with Microsoft Autogen
CrewAI
Orchestrate role-playing autonomous AI agents
Phidata
Build AI assistants with memory and knowledge
SDK Integrations
Use Portkey through native SDKs or existing OpenAI-compatible clients.Python SDK
Native Python SDK with full type support
JavaScript SDK
TypeScript/JavaScript SDK for Node.js and browsers
OpenAI SDK
Use Portkey as a drop-in replacement for OpenAI SDK
REST API
Direct HTTP API access for any language
Quick Comparison
| Framework | Call 250+ LLMs | Advanced Routing | Caching | Logging & Tracing | Observability |
|---|---|---|---|---|---|
| LangChain | ✅ | ✅ | ✅ | ✅ | ✅ |
| LlamaIndex | ✅ | ✅ | ✅ | ✅ | ✅ |
| Autogen | ✅ | ✅ | ✅ | ✅ | ✅ |
| CrewAI | ✅ | ✅ | ✅ | ✅ | ✅ |
| Phidata | ✅ | ✅ | ✅ | ✅ | ✅ |
| Python SDK | ✅ | ✅ | ✅ | ✅ | ✅ |
| JavaScript SDK | ✅ | ✅ | ✅ | ✅ | ✅ |
Getting Started
Most integrations follow a similar pattern:Next Steps
Select your framework or SDK from the cards above to see specific integration guides with code examples.All integrations support Portkey’s advanced features like fallbacks, load balancing, caching, and observability.