explaingit

sahilleth/promptlens

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 4/5Setup · moderate

TLDR

An observability dashboard for LLM applications and AI agents that captures prompts, responses, tool calls, and costs in real time.

Mindmap

mindmap
  root((repo))
    What it does
      Captures prompts and responses
      Tracks tool calls
      Shows cost metrics
    Tech stack
      Python
      FastAPI
      React
    Use cases
      Debug AI agents
      Monitor LLM costs
      Trace RAG retrievals
    Audience
      AI developers
      Agent builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Debug an AI agent by inspecting exactly what prompts and tool calls it sent.

USE CASE 2

Track cost, latency, and throughput across LLM sessions in a live dashboard.

USE CASE 3

Trace memory and RAG retrieval events to understand why an agent behaved a certain way.

What is it built with?

PythonFastAPIReactViteSQLitePostgreSQL

How does it compare?

sahilleth/promptlens0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity4/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires running a separate backend (Python) and frontend (Node.js) process, plus installing the SDK into your app.

In plain English

PromptLens is a monitoring and debugging tool built for people who develop applications and agents powered by large language models. When you build something that calls an AI model, it can be hard to see exactly what was sent to the model, what came back, what tools it called, and what it cost. PromptLens captures all of that activity, prompts, responses, tool calls, memory operations, document retrievals, and cost data, and shows it in a live dashboard, similar in spirit to the developer tools built into a web browser. The project is split into a few parts: a backend server built with FastAPI that stores the data and handles migrations, a frontend dashboard built with React and Vite, a Python SDK you install into your own application to send trace data, and a plugin system for adding new event types. The dashboard updates in real time over a WebSocket connection as new events come in, and includes pages for browsing sessions, inspecting prompts, viewing tool and memory events, and looking at aggregated analytics like throughput, latency, and cost over time. Getting started means running the backend with Python, running the frontend separately with Node.js, and then installing the SDK into whatever application you want to trace, with optional integrations for OpenAI, Ollama, and LangChain. A handful of demo scripts are included to generate sample traffic so you can see the dashboard working without writing your own instrumentation first. By default the tool does not require an API key while in development mode, but you can generate your own secret key and configure it on both the backend and any client so the API is protected, and production mode refuses to start without one being set. The backend can use SQLite by default or be pointed at a PostgreSQL database instead. This is aimed at developers building AI agents or LLM powered applications who need visibility into what their systems are actually doing under the hood.

Copy-paste prompts

Prompt 1
Help me set up the PromptLens backend and frontend locally to try the dashboard.
Prompt 2
Show me how to instrument my OpenAI application with the PromptLens Python SDK.
Prompt 3
Explain how to configure a PROMPTLENS_API_KEY to protect PromptLens in production.
Prompt 4
Walk me through running the PromptLens demo scripts to generate sample trace data.

Frequently asked questions

What is promptlens?

An observability dashboard for LLM applications and AI agents that captures prompts, responses, tool calls, and costs in real time.

What language is promptlens written in?

Mainly Python. The stack also includes Python, FastAPI, React.

How hard is promptlens to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is promptlens for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.