Skip to main content

Passive LLM endpoint identity and stability instrumentation

Project description

llmwho

Passive LLM endpoint identity and stability instrumentation for Python.

pip install llmwho
import llmwho

handle = llmwho.init()

Direct Anthropic Messages API calls need no LLMWho-specific wrapper:

import llmwho
from anthropic import Anthropic

llmwho.init()
client = Anthropic()
client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=64,
    messages=[{"role": "user", "content": "Hello"}],
)

One call instruments installed HTTPX (sync and async) and requests clients for recognized LLM routes. It writes content-free observations to ~/.llmwho/events.ndjson; it never sends active traffic. Calls are idempotent, streaming responses are not consumed, and handle.shutdown() safely restores only LLMWho-owned patches.

Run an explicit OpenAI-compatible compatibility canary:

report = llmwho.probe(
    base_url="https://api.openai.com/v1",
    api_key="…",
    model="gpt-4o-mini",
)

Inspect local history:

llmwho summary
llmwho dashboard

Identity results are probabilistic evidence, not cryptographic attestation. Version 0.2 uses response model metadata; its smoke suite measures capability and does not uniquely identify arbitrary model weights. Raw prompts, responses, headers, query strings, and credentials are never stored.

Full documentation, research review, and source: github.com/tcztzy/llmwho.

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

llmwho-0.2.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

llmwho-0.2.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file llmwho-0.2.0.tar.gz.

File metadata

  • Download URL: llmwho-0.2.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llmwho-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b8ef12d2708b835c803c1943f0202de4341e8442238a1170b68579d6c8b90d8a
MD5 40302fbedee86492d06bc80ff4955e10
BLAKE2b-256 65f227b1b6df9db405a5ed13944f979a4555b187b0e9570fd5e853358face153

See more details on using hashes here.

File details

Details for the file llmwho-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llmwho-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for llmwho-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e76128c81f5733f0b2b114e2b9e76ee0025de89e2bd7b70941ec7817733fbc42
MD5 981fbdcd01b5b8714779a11a6ec33b0c
BLAKE2b-256 eb3d46f7af73aea091297f4cca2c1058171153115c5f5c4dda52b0af5ba5d699

See more details on using hashes here.

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