Skip to main content

Overview

Helicone AI Gateway works seamlessly with popular AI frameworks, SDKs, and development tools. Simply change the baseURL to start using the gateway with your existing code.

AI Frameworks

LangChain

With Fallbacks:

LlamaIndex

LangGraph

Vercel AI SDK

With Fallbacks:

Semantic Kernel

CrewAI

Native SDKs

OpenAI SDK

Anthropic SDK

Google Generative AI

Development Tools

Open WebUI

Configure Open WebUI to use Helicone AI Gateway:

Dify

Configure Dify to use Helicone:
  1. Go to Settings → Model Provider
  2. Add OpenAI provider:
    • API Endpoint: https://ai-gateway.helicone.ai
    • API Key: Your Helicone API key
  3. Select models to use

Cursor IDE

Configure Cursor to use Helicone AI Gateway:
  1. Open Cursor Settings
  2. Navigate to Features → AI
  3. Set:
    • API Base URL: https://ai-gateway.helicone.ai
    • API Key: Your Helicone API key

Analytics & Monitoring

PostHog

Export Helicone data to PostHog for custom dashboards:
See PostHog Integration for details.

Custom Analytics

Query Helicone data via API:

Testing & Evaluation

RAGAS

Evaluate RAG pipelines with Helicone tracking:
All evaluation requests are tracked in Helicone.

HTTP Clients

cURL

Axios (TypeScript)

Requests (Python)

Best Practices

Always store API keys in environment variables:
Never commit API keys to version control.
Add fallbacks for production reliability:
Track usage in the Helicone dashboard:
  • Request volume
  • Cost by provider
  • Error rates
  • Latency metrics
Configure provider keys for:
  • Direct provider billing
  • Better cost control
  • Priority routing
Add keys at Settings → API Keys

Framework-Specific Features

Streaming Support

All frameworks support streaming:

Async/Await

All SDKs support async/await:

Error Handling

Standard error handling works across all integrations:

Migration Guide

From OpenAI Direct

From Anthropic Direct

From OpenRouter

Next Steps

Getting Started

Start using the AI Gateway

Routing

Learn about provider routing

Fallbacks

Configure automatic failover

Browse Models

Explore 300+ available models