Skip to main content

lookspan — local-first observability for AI agents

PyPI License: MIT Docs

Python SDK for Lookspan — emit spans from your AI agents to a dashboard that runs on your own machine. No cloud, no account, no API key, no data leaving your laptop.

If you have ever asked "why did my agent call that tool twice?" or "where did those 40 seconds go?", this is the missing view: every LLM call, tool call, chain step and MCP request as a span on a timeline you own.

  • Local-first. The dashboard is a process on 127.0.0.1. Your prompts stay yours.
  • Framework agnostic. Works with LangChain, LangGraph, CrewAI, MCP clients or plain code.
  • Content off by default. Prompts and completions are not recorded unless you opt in.
  • Small. One dependency (httpx), typed, MIT.

Install

pip install lookspan

The dashboard itself ships as a separate CLI:

npx lookspan-cli

Quick start

from lookspan import LookspanClient, Span, SpanType, SpanStatus

client = LookspanClient(endpoint="http://127.0.0.1:3100/api/ingest")

trace_id = client.new_trace_id()
span_id = client.new_span_id()

client.send([
    Span(
        trace_id=trace_id,
        span_id=span_id,
        parent_span_id=None,
        type=SpanType.LLM_CALL,
        name="my-agent.completion",
        started_at="2026-05-08T12:00:00Z",
        ended_at="2026-05-08T12:00:01Z",
        status=SpanStatus.OK,
        framework="custom",
        model="claude-opus-4-7",
        provider="anthropic",
    )
])

client.flush()

LookspanClient omits span input and output by default. Pass capture_content=True only when that content is safe to persist on disk.

Framework adapters

You rarely need to build spans by hand — install the adapter for your stack instead:

Package Traces
lookspan-langgraph LangChain chains, LangGraph nodes, LLM calls, tools
lookspan-crewai Crew kickoffs, agents, tasks, tools, LLM calls

Links

MIT licensed. Part of Fervon.

Metadata

Release files for lookspan 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lookspan 0.5.3
File Size Uploaded Provenance
lookspan-0.5.3.tar.gz 6.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lookspan 0.5.3
File Interpreter ABI Platform
lookspan-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / lookspan-0.5.3.tar.gz

Download URL lookspan-0.5.3.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c932e7711e1a8fa437cb74ca369ec91d659ab65926818498f85674a25c8f339
BLAKE2b-256 checksum
How to use checksums
60e4121268e12608eda000f9a3987004609eb3785a56dc75cd2cc5821899c9cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / lookspan-0.5.3-py3-none-any.whl

Download URL lookspan-0.5.3-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a63ca0c0f7de8b36075a49a21dc48c4ed04b26da3f21defd7ccf8714ffd257e3
BLAKE2b-256 checksum
How to use checksums
5751bf3c2a6a9e41553dfc9cd35c94d0f5fffa3844ab8485ab538eea9bf96914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Security for lookspan 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lookspan-0.5.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page