Skip to main content

Zero-config LLM API inspector — intercepts calls, shows token breakdown and cost estimates in a local dashboard

Project description

llm-inspect

Zero-config LLM API inspector. One import, one line — intercepts all Anthropic and OpenAI calls and shows a real-time dashboard with token breakdown and cost estimates.

Install

pip install llm-inspect

Usage

import llm_inspect
llm_inspect.init()  # add at your app entry point, before other imports

# All LLM calls now route through the inspector
import anthropic
client = anthropic.Anthropic()

Dashboard opens automatically at http://localhost:8788

How it works

init() starts a lightweight local proxy on :8787 (if not already running) and sets ANTHROPIC_BASE_URL / OPENAI_BASE_URL so all SDK calls route through it. No config files, no CA certificates, no accounts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_inspect-0.1.9.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_inspect-0.1.9-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file llm_inspect-0.1.9.tar.gz.

File metadata

  • Download URL: llm_inspect-0.1.9.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for llm_inspect-0.1.9.tar.gz
Algorithm Hash digest
SHA256 928960739f003590c22d36130ea6e294d9f50b44dfc21a1fc7d56017dee07b74
MD5 71dc34118cc02718df5083413baa2e4a
BLAKE2b-256 7c7c6c289f825471ca5b6bf66eb9124603773739b28428c4ee938f5521d87679

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_inspect-0.1.9.tar.gz:

Publisher: publish.yml on kasidkhansbp/llm-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_inspect-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: llm_inspect-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for llm_inspect-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d25e156ed8e9abfc092a65788992fafa91800e53028754d1668ec75675d9f25a
MD5 252b55c21e51e394051c1502dfe13fb5
BLAKE2b-256 3498b8bc1c37a27d1450bc76127aaa7deb5346a2765a8cb4017b63435cfdc884

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_inspect-0.1.9-py3-none-any.whl:

Publisher: publish.yml on kasidkhansbp/llm-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page