valuemaxx (Python SDK)
Know what each AI agent actually costs you — correctly — and what it earned, per outcome, with confidence.
The Python SDK for valuemaxx — AI margin intelligence for teams that build AI agents. One line captures the correct cost of every LLM call (off the hot path, never throwing into your app), so valuemaxx can bind it to the business outcome each agent run produced.
Install
pip install valuemaxx
Use
import valuemaxx
valuemaxx.init() # zero-code cost capture starts here
That's it. init() instruments the openai / anthropic clients (and frameworks that use them — LangChain, LlamaIndex, CrewAI) at the transport layer, capturing correct token/cost per call: streaming usage taken from terminal values (never delta-summed), cache token classes priced separately, retries counted. It fails open — internal errors are caught and logged, never propagated into your call path, and it adds <1ms.
Attribute a run to an outcome
Wrap a unit of work so its cost can later be tied to a business outcome:
with valuemaxx.run(customer_id=user.id):
response = client.messages.create(...) # cost captured AND tagged to this run
The entity IDs you pass are the natural keys valuemaxx uses to bind delayed/out-of-process outcomes (a deal closing days later, a ticket resolving) back to the run that caused them — with an honest confidence label on every link.
What's captured (and what isn't)
- Captured: model, token counts (input / cache-read / cache-write / output / reasoning), computed cost with provenance (
measured→ reconciled to the provider invoice later), latency, the run context. - Off by default: prompt/response content (PII-sensitive). Enable it only for the eval/replay features, on self-hosted deployments.
The honesty model
Every number valuemaxx produces carries its trustworthiness — cost provenance (measured/estimated/allocated/provider_reconciled), and once joined to outcomes, a binding tier and signal class. A rollup always shows the least-trusted of its parts; estimates never render as billed.
Self-hosting
The SDK ships telemetry over OTLP/HTTP to valuemaxx. It holds nothing itself and needs no database. Sign in at app.valuemaxx.dev to get an ingest key.
License
Proprietary. See LICENSE.
Metadata
Release files for valuemaxx 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| valuemaxx-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for valuemaxx-0.7.0-py3-none-any.whl |
Release files / valuemaxx-0.7.0-py3-none-any.whl
| Download URL | valuemaxx-0.7.0-py3-none-any.whl |
|---|---|
| Size | 87.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c406f82eb28a114d71a2a7152d7cb81494c5c49be0cc841eeeb79c493da4da5
|
|
BLAKE2b-256 checksum How to use checksums |
83d22aad569d2907e85cf2a21d660cfa5d5ceee90e30ca7dca24207ac4cecba2
|
| 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 Sep 2, 2026.
Transparency logSecurity for valuemaxx 0.7.0
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
1 file in this release has been uploaded with provenance metadata.
Attestation for valuemaxx-0.7.0-py3-none-any.whl
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 Sep 2, 2026.
Transparency logA 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.