Skip to main content

qriton-record

An independent record of what your AI system was told, changed and decided.

Every model call your application makes becomes a receipt in a hash-linked chain: what the system was set up with, what it was asked, and what it answered. Receipts hold SHA-256 hashes, not your text. The chain head is kept on your machine, and this library checks that every receipt continues the head you hold, so the record can be checked without trusting Qriton or the maker of the model.

pip install qriton-record
export QRITON_API_KEY=qk_live_...        # 14-day trial key, no card: https://api.qriton.com/console

Record your existing client

from openai import OpenAI
import qriton_record

rec = qriton_record.Recorder(system="support-assistant")
client = rec.wrap(OpenAI())              # use it exactly as before

client.chat.completions.create(model="gpt-4.1", messages=[...])

The same works for anthropic.Anthropic(), the async clients, streamed answers and the OpenAI Responses API.

Two modes

rec.wrap(client) rec.proxy(client)
Who calls the model provider your code the Qriton recorder, which forwards the call unchanged
What reaches Qriton hashes only the request and answer pass through; only hashes are stored
Receipts say witness: client witness: gateway
Use it when text must not leave your infrastructure you want a third party to witness each exchange

What a receipt holds

Operation Written when Payload
configure the model, instructions, tools or parameters change config_sha256, previous_config_sha256, model
exchange every call config_sha256, input_sha256, output_sha256, model, tokens, latency
note you call rec.note(...) a hash you want on the record: a policy, a prompt file, a dataset
rec.note("policy", path="stock-policy-v3.pdf", label="Stock policy v3")

The hashes follow the content rule qriton-content-1 (RFC 8785 JSON, null members removed), so you can recompute any of them from your own logs with qriton_record.content_hash.

Check the record yourself

rec.sync()                                 # fetch new receipts, check they continue your head
result = rec.export("receipts.jsonl")      # the whole chain, checked against your head

receipts.jsonl is in the published receipt-chain format. The open verifiers check it offline: https://api.qriton.com/verifiers

What it does not prove

A receipt shows that the record is complete and unaltered, not that what it records is true. It covers what passes through the recorder, and it is independent of Qriton only when you, or a second party, keep the chain head.

Without a key

Without QRITON_API_KEY nothing is sent: receipts are computed and kept in rec.pending, so you can see what would be recorded before you sign up.

Metadata

Release files for qriton-record 0.1.0

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

Source distribution (sdist)

Source distribution for qriton-record 0.1.0
File Size Uploaded Provenance Actions
qriton_record-0.1.0.tar.gz 14.3 kB Without provenance Details for qriton_record-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qriton-record 0.1.0
File Interpreter ABI Platform Actions
qriton_record-0.1.0-py3-none-any.whl Python 3 none any Details for qriton_record-0.1.0-py3-none-any.whl

Total release size: 28.7 kB

Release files / qriton_record-0.1.0.tar.gz

Download URL qriton_record-0.1.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d86dc3aef4f0843b5e851899a1aac701e216f5ac4baf4da39dd41f81718c386b
BLAKE2b-256 checksum
How to use checksums
a2b429936bfe3f563ac52c37b2ce22650ed1f596bdbe8dfdb0d48dc874358a9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qriton_record-0.1.0-py3-none-any.whl

Download URL qriton_record-0.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af69992e1ad112ce19f7ce2f67fb5754397908fcfc0cea4e8c53ba19ea814d31
BLAKE2b-256 checksum
How to use checksums
327a86075b37be4af3b6f98592a1f367e65ae27e5e4b4e1b064e7559d8039082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for qriton-record 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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