---
title: "Claude Code"
url: "/docs/proxy/lens/coding-agents/claude-code"
canonical_url: "https://docs.litellm.ai/docs/proxy/lens/coding-agents/claude-code"
type: "docs"
last_updated: "2026-10-13"
summary: "Connect personal Claude Code sessions to LiteLLM Lens using the maintained setup guides."
related:
  - "/docs/proxy/lens/coding-agents"
  - "/docs/proxy/lens/coding-agents/codex"
---
# Claude Code

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt

<!-- Generated from BerriAI/litellm-lens-example/claude-code/README.md at a2294277609202247b71c08d7b491f5212809988. Edit the source README. -->

# Claude Code

For optional help from your coding agent, use [Set it up for me](https://github.com/BerriAI/lens/blob/main/docs/setup-with-agent.md#connect-an-agent-to-lens-already-running). It preserves your model connection and verifies a real trace after setup

Send your personal Claude Code sessions to [LiteLLM Lens](/docs/proxy/lens). This folder links to the maintained integration instructions.

## Prerequisites

You need Claude Code, a running [Lens installation](https://github.com/BerriAI/lens/blob/main/deploy/lens/README.md), and a dedicated Lens tracing key. Lens can run with ClickHouse alone; keep your coding agent's existing model login and provider

## Setup

Follow the [Lens coding agent setup guide](/docs/proxy/lens/coding-agents) for the tracing endpoint and key instructions. See the [Claude Code monitoring guide](https://code.claude.com/docs/en/monitoring-usage) for the integration’s configuration and supported telemetry.

## Verify the trace

Complete a new session turn, then open **Lens > Traces** in your standalone or embedded Lens UI. Find the session using the agent name configured by the integration and inspect its recorded activity.

## Troubleshooting

If the session is missing, check the setup guide’s recording and export instructions, the Lens ingestion URL, and the key. Check the maintained integration documentation for supported activity and platform requirements.

## Related pages

- [Trace coding agent sessions](https://docs.litellm.ai/docs/proxy/lens/coding-agents.md)
- [Codex](https://docs.litellm.ai/docs/proxy/lens/coding-agents/codex.md)
