Why Logfire + Portkey?
Zero-Code Instrumentation
Automatic OpenAI SDK instrumentation without code changes
Python-First Design
Built by the Pydantic team specifically for Python developers
Real-Time Insights
See traces immediately with actionable optimization opportunities
Gateway Intelligence
Portkey adds caching, fallbacks, and load balancing to every request
Quick Start

Setup
- Add provider in Model Catalog → get provider slug (e.g.,
@openai-prod) - Get Portkey API key
- Use
model="@provider-slug/model-name"in requests
Next Steps
Gateway Configs
Fallbacks, caching, and load balancing
Model Catalog
Manage providers and credentials
Analytics
Cost and performance insights
Logfire Docs
Official documentation
See Your Traces in Action
Once configured, view your Logfire instrumentation combined with Portkey gateway intelligence in the Portkey dashboard:

