MCPcopy Index your code
hub / github.com/Helicone/helicone

github.com/Helicone/helicone @v2025.08.21-1

repository ↗ · DeepWiki ↗ · release v2025.08.21-1 ↗ · Ask this repo → · + Follow
7,490 symbols 21,038 edges 1,807 files 251 documented · 3% updated todayv2025.08.21-1 · 2025-08-21★ 5,91037 open issues
README

helicone logo

🔍 Observability 🕸️ Agent Tracing 💬 Prompt Management
📊 Evaluations 📚 Datasets 🎛️ Fine-tuning

Open Source

DocsDiscordRoadmapChangelogBug reports

See Helicone in Action! (Free)

Contributors GitHub stars GitHub commit activity GitHub closed issues Y Combinator

Helicone is the all-in-one, open-source LLM developer platform

  • 🔌 Integrate: One-line of code to log all your requests to OpenAI, Anthropic, LangChain, Gemini, TogetherAI, LlamaIndex, LiteLLM, OpenRouter, and more
  • 📊 Observe: Inspect and debug traces & sessions for agents, chatbots, document processing pipelines, and more
  • 📈 Analyze: Track metrics like cost, latency, quality, and more. Export to PostHog in one-line for custom dashboards
  • 🎮 Playground: Rapidly test and iterate on prompts, sessions and traces in our UI
  • 🧠 Prompt Management: Version and experiment with prompts using production data. Your prompts remain under your control, always accessible.
  • 🔍 Evaluate: Automatically run evals on traces or sessions using the latest platforms: LastMile or Ragas (more coming soon)
  • 🎛️ Fine-tune: Fine-tune with one of our fine-tuning partners: OpenPipe or Autonomi (more coming soon)
  • 🛜 Gateway: Caching, custom rate limits, LLM security, and more with our gateway
  • 🛡️ Enterprise Ready: SOC 2 and GDPR compliant

🎁 Generous monthly free tier (10k requests/month) - No credit card required!

Quick Start ⚡️ One line of code

  1. Get your write-only API key by signing up here.

  2. Update only the baseURL in your code:

```typescript import OpenAI from "openai";

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY, baseURL: https://oai.helicone.ai/v1/${process.env.HELICONE_API_KEY}, }); ```

or - use headers for more secure environments

```typescript import OpenAI from "openai";

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY, baseURL: https://oai.helicone.ai/v1, defaultHeaders: { "Helicone-Auth": Bearer ${process.env.HELICONE_API_KEY}, }, }); ```

  1. 🎉 You're all set! View your logs at Helicone.

This quick start uses Helicone Cloud with OpenAI. For other providers or self-hosted options, see below.

Get Started For Free

Helicone Cloud (Recommended)

The fastest and most reliable way to get started with Helicone. Get started for free at Helicone US or Helicone EU. Your first 100k requests are free every month, after which you'll pay based on usage. Try our demo to see Helicone in action!

Integrations: View our supported integrations.

Latency Concerns: Helicone's Cloud offering is deployed on Cloudflare workers and ensures the lowest latency (~10ms) add-on to your API requests. View our latency benchmarks.

Self-Hosting Open Source LLM Observability with Helicone

Docker

Helicone is simple to self-host and update. To get started locally, just use our docker-compose file.

Pre-Request:

  • Copy the shared directory to the valhalla directory
  • Create a valhalla folder in the valhalla directory and put /valhalla/jawn in it
# Clone the repository
git clone https://github.com/Helicone/helicone.git
cd docker
cp .env.example .env

# Start the services
./helicone-compose.sh helicone up

Helm

For Enterprise workloads, we also have a production-ready Helm chart available. To access, contact us at enterprise@helicone.ai.

Manual (Not Recommended)

Manual deployment is not recommended. Please use Docker or Helm. If you must, follow the instructions here.

Architecture

Helicone is comprised of five services:

  • Web: Frontend Platform (NextJS)
  • Worker: Proxy Logging (Cloudflare Workers)
  • Jawn: Dedicated Server for serving collecting logs (Express + Tsoa)
  • Supabase: Application Database and Auth
  • ClickHouse: Analytics Database
  • Minio: Object Storage for logs.

LLM Observability Integrations

Main Integrations

Integration Supports Description
Generic Gateway Python, Node.js, Python w/package, LangChain JS, LangChain, cURL Flexible integration method for various LLM providers
Async Logging (OpenLLMetry) JS/TS, Python Asynchronous logging for multiple LLM platforms
OpenAI JS/TS, Python -
Azure OpenAI JS/TS, Python -
Anthropic JS/TS, Python -
Ollama JS/TS Run and use large language models locally
AWS Bedrock JS/TS -
Gemini API JS/TS -
Gemini Vertex AI JS/TS Gemini models on Google Cloud's Vertex AI
Vercel AI JS/TS AI SDK for building AI-powered applications
Anyscale JS/TS, Python -
TogetherAI JS/TS, Python -
Hyperbolic JS/TS, Python High-performance AI inference platform
Groq JS/TS, Python High-performance models
DeepInfra JS/TS, Python Serverless AI inference for various models
OpenRouter JS/TS, Python Unified API for multiple AI models
LiteLLM JS/TS, Python Proxy server supporting multiple LLM providers
Fireworks AI JS/TS, Python Fast inference API for open-source LLMs

Supported Frameworks

Framework Supports Description
LangChain JS/TS, Python -
LlamaIndex Python Framework for building LLM-powered data applications
[CrewAI](https://docs.helicone.ai/int

Extension points exported contracts — how you extend this code

HelloWorldBinding (Interface)
* Hello World binding to serve as an explanatory example. DO NOT USE [6 implementers]
worker/worker-configuration.d.ts
HelloWorldBinding (Interface)
* Hello World binding to serve as an explanatory example. DO NOT USE [6 implementers]
helicone-heartbeat/worker-configuration.d.ts
IBodyProcessor (Interface)
(no doc) [26 implementers]
valhalla/jawn/src/lib/shared/bodyProcessors/IBodyProcessor.ts
MessageProducer (Interface)
(no doc) [3 implementers]
worker/src/lib/clients/producers/types.ts
HeliconeAuthClient (Interface)
(no doc) [3 implementers]
web/packages/common/auth/client/HeliconeAuthClient.ts
GoogleChatRequest (Interface)
* Simplified interface for the Google (Gemini) Chat request format
packages/llm-mapper/mappers/gemini/chat-v2.ts
TextOperator (Interface)
* * DO NOT EDIT THIS FILE UNLESS IT IS IN /costs
packages/cost/interfaces/Cost.ts
PlaygroundPageProps (Interface)
Types and Function for using finetuned models in Playground, Experiments Page
web/components/templates/playground/playgroundPage.tsx

Core symbols most depended-on inside this repo

map
called by 1407
packages/llm-mapper/path-mapper/core.ts
err
called by 924
valhalla/jawn/src/packages/common/result.ts
error
called by 744
helicone-heartbeat/worker-configuration.d.ts
ok
called by 576
valhalla/jawn/src/packages/common/result.ts
log
called by 325
helicone-heartbeat/worker-configuration.d.ts
get
called by 309
helicone-heartbeat/worker-configuration.d.ts
setNotification
called by 297
web/components/shared/notification/NotificationContext.tsx
json
called by 296
helicone-heartbeat/worker-configuration.d.ts

Shape

Function 3,212
Method 1,985
Interface 1,588
Class 699
Enum 5
Route 1

Languages

TypeScript98%
Python2%

Modules by API surface

worker/worker-configuration.d.ts569 symbols
helicone-heartbeat/worker-configuration.d.ts568 symbols
worker/src/lib/RequestWrapper.ts48 symbols
valhalla/jawn/src/managers/prompt/PromptManager.ts47 symbols
valhalla/jawn/src/lib/stores/experimentStore.ts45 symbols
valhalla/jawn/src/managers/stripe/StripeManager.ts39 symbols
valhalla/jawn/src/lib/requestWrapper/requestWrapper.ts37 symbols
valhalla/jawn/src/controllers/public/promptController.ts36 symbols
valhalla/jawn/src/controllers/public/experimentV2Controller.ts32 symbols
valhalla/jawn/src/managers/experiment/ExperimentV2Manager.ts28 symbols
valhalla/jawn/src/controllers/private/adminController.ts27 symbols
web/filterAST/filterAst.ts25 symbols

Dependencies from manifests, versioned

@ai-sdk/amazon-bedrock2.1.3 · 1×
@ai-sdk/anthropic0.0.53 · 1×
@ai-sdk/azure1.3.24 · 1×
@ai-sdk/openai1.3.24 · 1×
@anthropic-ai/sdk0.54.0 · 1×
@anthropic-ai/tokenizer0.0.4 · 1×
@anthropic-ai/vertex-sdk0.6.1 · 1×
@assistant-ui/react0.5.98 · 1×
@assistant-ui/react-playground0.0.47 · 1×
@aws-crypto/sha256-js5.2.0 · 1×
@aws-sdk/client-s33.678.0 · 1×
@aws-sdk/client-sqs3.799.0 · 1×

Datastores touched

helicone_testDatabase · 1 repos
heliconeDatabase · 1 repos

For agents

$ claude mcp add helicone \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact