Key Info

LiteLLM describes a two-step setup for viewing traces from Claude Code, Codex, OpenCode and Pi in one place using Lens, its tracing tool.

Highlights

  • Step 1: start Lens with Docker, using the provided curl command.
  • Step 2: on the LiteLLM gateway, set general_settings.tracing.store.type to lens, so each model call is sent to Lens as a trace.
  • Traces are owned by the key, user and team that made the call; users see their own and their team's traces, while admins see all.
  • In Lens, a coding session replays as a thread matching the terminal view; subagent work appears as a branch and a divider marks where context was compacted.
  • Further details are available in recently merged PRs.