---
title: "Langtrace AI"
description: "import Image from '@theme/IdealImage';"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/langtrace-integration
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:30:29.233Z
license: CC-BY-4.0
attribution: "Langtrace AI — Claudary (https://claudary.paisolsolutions.com/skills/langtrace-integration)"
---

# Langtrace AI
import Image from '@theme/IdealImage';

## Overview

import Image from '@theme/IdealImage';

# Langtrace AI

Monitor, evaluate & improve your LLM apps

## Pre-Requisites

Make an account on [Langtrace AI](https://langtrace.ai/login)

## Quick Start

Use just 2 lines of code, to instantly log your responses **across all providers** with langtrace

```python
litellm.callbacks = ["langtrace"]
langtrace.init()
```

```python
import litellm
import os
from langtrace_python_sdk import langtrace

# Langtrace API Keys
os.environ["LANGTRACE_API_KEY"] = "<your-api-key>"

# LLM API Keys
os.environ['OPENAI_API_KEY']="<openai-api-key>"

# set langtrace as a callback, litellm will send the data to langtrace
litellm.callbacks = ["langtrace"]

#  init langtrace
langtrace.init()

# openai call
response = completion(
    model="gpt-4o",
    messages=[
        {"content": "respond only in Yoda speak.", "role": "system"},
        {"content": "Hello, how are you?", "role": "user"},
    ],
)
print(response)
```

### Using with LiteLLM Proxy

```yaml
model_list:
  - model_name: gpt-4
    litellm_params:
      model: openai/fake
      api_key: fake-key
      api_base: https://exampleopenaiendpoint-production.up.railway.app/

litellm_settings:
  callbacks: ["langtrace"]

environment_variables:
  LANGTRACE_API_KEY: "141a****"
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/langtrace-integration) · https://claudary.paisolsolutions.com
