Vendor-neutral, OpenTelemetry-first telemetry for AI agents: traces, cost, budgets, and a tamper-evident audit trail — ship to any backend, no agent-code changes.
Project description
ForgeSight
Instrument any AI agent in a few lines — then ship traces, cost, metrics, evals, budgets, and a tamper-evident audit trail to any backend by changing one line of config. OpenTelemetry-first. Vendor-neutral. Never an agent-code change.
▶️ See the 30-second demo — instrument an agent and watch the trace, cost, and a verified tamper-evident audit trail appear.
forgesight is the batteries-included facade — the package most people install.
pip install "forgesight[otel]"
import forgesight
from forgesight import telemetry
forgesight.configure(exporters=["otel"]) # pick a backend by name — that's it
with telemetry.agent_run("pr-reviewer", version="2.1.0", metadata={"team": "platform"}) as run:
with run.llm_call("anthropic", "claude-sonnet-4-5") as call:
resp = await client.messages.create(...)
call.record_usage(input=resp.usage.input_tokens, output=resp.usage.output_tokens)
with run.tool_call("github_get_diff"):
diff = gh.get_diff(pr)
Cost, token usage, trace nesting, metrics, and multi-backend fan-out come for free. Swap
otel → langfuse, datadog, clickhouse, prometheus — the agent code never moves.
What you get
- 🔌 Vendor-neutral. The core depends on no backend or model-provider SDK. Backends are packages you install and select by config.
- 📐 OpenTelemetry-first. GenAI semantic conventions, so any OTLP backend works with no dedicated package.
- 💰 Cost built in. Token usage → USD via a pluggable pricing table — the same number everywhere — plus live attribution by team and pre-call budget projection.
- 🚦 Non-blocking & fault-isolated. Export runs on a background worker; a backend outage never breaks a run.
- 🔒 Secure by default. Content capture is opt-in; redaction runs before export.
- 🧾 Accountability. A tamper-evident, hash-chained audit trail with a compliance query/export surface.
Install backends & integrations as extras
pip install "forgesight[otel]" # one backend (OTLP → any OTel platform)
pip install "forgesight[otel,langfuse,datadog]" # several
pip install "forgesight[all]" # everything except the heavy CrewAI tree
Extras: otel · prometheus · langfuse · clickhouse · datadog · mcp · fastapi ·
github · governance · eval · registry · audit · adapters-langgraph ·
adapters-crewai. Installing a package enables a backend; config selects it.
Docs
- README & guides — full docs, playbooks, runbooks
- Quick start · Run locally with Docker · Examples
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forgesight-0.1.0.tar.gz.
File metadata
- Download URL: forgesight-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea600449045833a88acf3b185d10b793d937ad91ad7807de935a7d1efcb2451b
|
|
| MD5 |
ac31d1430276003260fe47c0c2a2e95a
|
|
| BLAKE2b-256 |
eb22ff72c0d4c741e88f9df74b847772ccd395ef0da8f9897f7922d2b0579607
|
File details
Details for the file forgesight-0.1.0-py3-none-any.whl.
File metadata
- Download URL: forgesight-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55425ad3619a59333223cd20d9d4d055d0ddbddfeb9c78f996d7b00e3b1106eb
|
|
| MD5 |
2b521577cf328f562cf6e964a972d45c
|
|
| BLAKE2b-256 |
b627026eb4795f0a5cd6a2a94b8ab47e9c7e40b690f5a496e534d15613376330
|