Recorder

An independent record of what an AI system was told, changed and decided. Every model call becomes a receipt in a hash-linked chain, one chain per system. Receipts hold SHA-256 hashes, not your text, and you keep the chain head, so the record can be checked without trusting us or the maker of the model.

Two ways in

ProxyPoint your model SDK at https://api.qriton.com/record/openai/v1, https://api.qriton.com/record/anthropic or https://api.qriton.com/record/mistral/v1 and add the header X-Qriton-Key. Your provider key stays in its usual header and is passed on. The request body is forwarded unchanged and the answer body comes back unchanged, streamed as it arrives. The recorder adds its own X-Qriton- headers, among them its request id as X-Qriton-Request-Id, so the provider's x-request-id passes through untouched. A request body may be up to 10 MB and hold up to 100,000 JSON values, because the recorder parses and hashes the whole request before it forwards it. A request over either limit is refused with 413 (body_too_large or too_many_values), and nothing is forwarded or recorded. Receipts are marked witness: gateway. The text passes through on its way to the provider and is not stored.
DirectYour code calls the provider itself and sends only the hashes to POST /v1/record/systems/{system}/receipts. Receipts are marked witness: client. Direct mode has no limit on the size of the model call, because the call goes from your code to the provider and only the hashes come to us.

SDKs

The Python package qriton-record wraps a model client with one line. The Node.js package @qriton/record, which works the same way, is being published; until it is available, use the Python package, the proxy or the API directly.

pip install qriton-record

import qriton_record
from openai import OpenAI
client = qriton_record.Recorder(system="support-assistant").wrap(OpenAI())

With wrap (direct mode) the SDK keeps the chain head on your machine and checks every receipt the service returns against it. With proxy, the head is kept and checked when you call sync(): call it regularly, for example at the end of each job and before you stop. It fetches the new receipts, checks that they continue the head you hold and keeps the new head. Until the first sync() there is no head on your machine.

Without an SDK, in proxy mode:

curl https://api.qriton.com/record/openai/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "X-Qriton-Key: $QRITON_API_KEY" -H "X-Qriton-System: support-assistant" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4.1", "messages": [{"role": "user", "content": "Where are the insulin pens?"}]}'

A plain answer carries X-Qriton-Receipt (its sequence) and X-Qriton-Head. A streamed answer carries neither, because its receipt is written when the stream ends; read it with sync() or the receipts endpoint. Recorded endpoints: OpenAI and Mistral chat completions, the OpenAI Responses API, and Anthropic messages. Model lists and token counts are passed through without a receipt; other endpoints are refused.

What a receipt holds

configure

Written the first time a configuration appears on the record: model, instructions, tools or parameters. Holds config_sha256 and previous_config_sha256, the configuration in use before it.

A return to a configuration already on the record writes no new configure receipt; every exchange names its configuration, so each switch can be read from the exchanges.

A program whose own helper calls use other instructions or parameters, for example a summary or memory step on a smaller model, has a configuration for each of them, and each appears on the record once, with its own configure receipt. This is the record of what changed.

exchange

Written for every call. This is the record of what the system was told and what it decided.

Fields. config_sha256, input_sha256, output_sha256, the model that answered, the provider's response id when the answer has one, tokens, latency, whether it was streamed and whether the answer was complete.

Call identity. In direct mode, current SDKs attach client_call_id, a random 32-character lowercase hexadecimal ID kept across retries. It distinguishes separate identical calls and lets the SDK reject an altered receipt with the same ID after a lost upload response. Older clients may omit it. It is not a signature or a server-side idempotency key.

Call time. In direct mode it can also hold called_utc, the time the call started by your clock, in UTC ending in Z (for example 2026-11-15T09:30:00.000Z). It is your statement, stored as given: the service checks only that it is a real date and time in that form and no more than five minutes ahead of the service's clock, and refuses the receipt with 400 invalid_receipt otherwise.

note

A hash you put on the record yourself: a policy, a prompt file or a dataset. Holds kind, sha256 and an optional label.

Every receipt also has timestamp_utc: when the service wrote it, by the service's clock. In direct mode, receipts held back while the service could not be reached carry the time they were finally sent; called_utc gives the time of the call. A receipt is confirmed only after it has been written to disk.

Hashes follow the content rule qriton-content-1: the request is split into configuration (everything except the conversation turns, with system and developer messages counted as configuration) and input (the turns); the answer is reduced to its text, tool calls and stop reason, so a streamed and a plain answer of the same content give the same hash. Each part is serialised as RFC 8785 JSON after null members are removed, and hashed with SHA-256. The SDKs compute the same hashes, so you can recompute any of them from your own logs.

Reading and checking the record

GET /v1/record/systemsYour systems, with the number of receipts and the head of each. A system whose stored record cannot be read is listed with an error instead.
GET /v1/record/systems/{system}One system: receipts, head, current configuration hash, first and last receipt time.
GET /v1/record/systems/{system}/receipts?from=0&limit=1000Receipts in order, from a position.
GET /v1/record/systems/{system}/exportThe whole chain as JSON lines, in the published receipt-chain format. Check it with the Verification API, which takes up to 10,000 receipts or 5 MB per call, or with the open verifiers, offline and for a chain of any length.
POST /v1/record/systems/{system}/receiptsDirect mode: {"operation": "exchange" | "configure" | "note", "payload": {…}, "expect_head": "…"}. With expect_head, the receipt is written only if the chain still ends at the head you hold; otherwise the answer is 409 head_mismatch.

Reading the record (the four GET endpoints) works on every plan, also after a trial has ended or a plan has changed. Reads are not counted toward the allowance and have a rate limit of their own, the same on every plan: 20 requests per second per key, in bursts of 200, apart from the plan's rate limit for calls. A page holds up to 1,000 receipts.

What it does not prove

  • An intact chain, checked against the head you hold, shows that the record is complete and unaltered, not that what it records is true.
  • It records only what passes through the recorder: inputs, configuration and answers. It does not see what happens inside a model, or calls made around the recorder.
  • It is independent of us only while you, or a second party, keep the chain head. In direct mode the SDKs keep it for you; in proxy mode, keep it with sync().
  • Hashes are not encryption. Anyone who holds the record can confirm a guess of short or predictable text, such as a one-word answer, a common question or a published system prompt, by hashing the guess. Share exports with that in mind.
  • The system name and the details of each receipt besides the hashes are visible to us: the provider, the model, the endpoint, the provider's response id, token counts, latency, whether the call was streamed and whether the answer was complete, and the times (called_utc in direct mode, and when each receipt was written).
  • Receipt chains are not signed; they are hash-linked receipts. A valid chain shows that it agrees with the published rule, not who wrote it.

Signing in from the command line

qriton login signs the Qriton CLI in without copying a key. It shows a link to the console and a code; you approve the code there, and the CLI collects an API key of its own. Before you approve, the console shows the computer name the program reports, how long ago the sign-in started and whether it started from the same network address as your browser. Approve only a sign-in you started yourself, in your own terminal. The key it creates is listed in the console under API keys, named after the program and the computer, where you can revoke it at any time. A key that was approved but not collected within the ten minutes of the sign-in is revoked.

Plans

Recording is included in the trial, Developer, Team and Organisation plans. Each recorded call and each receipt written in direct mode counts as one call; reading the record does not. A system name is 1 to 64 characters: lowercase letters, digits, dot, dash and underscore. The trial records up to 3 systems, Developer 10, Team 50. Every system name with receipts counts toward that number, and a record cannot be deleted or renamed through the API yet, so choose names you will keep.