Skip to content

What Prism stores and sends

Prism runs on your machine. Requests go from your clients through Prism to the model providers you connected. Nothing goes to the Prism project unless you turn it on, with the exceptions listed under Requests to the Prism project.

Everything lives in the storage directory ([storage] dir; the installer uses ~/.prism/data, the Debian package /var/lib/prism).

What Where Contents
Request journal routing.db One record per model request: time, model requested and used, provider, strategy, tokens, cost, latency, status, the X-Prism-App and X-Prism-Session values you send, the client family inferred from the request. No request or response text.
Usage totals usage-cubes/ The console’s day, week, month and all-time usage, counted from the request journal and kept so a restart does not count it again: per person, team and time slot, the request, error and token counts, cost and latency, by model, application and provider. No request or response text. Deleted files are counted again from the journal.
Routing decisions routing.db Per request: the candidate models, which one was chosen and why, what the alternative policies would have chosen. No text.
Outcome verdicts routing.db Per chat turn: worked, not worked or unknown, judged from the next turn. Prism compares turns by hashes held in memory for 10 minutes; when Prism stops, the hashes of turns still open are saved to a file in the storage directory and read back at the next start. No text is written.
Observed applications observed-apps.json Applications recognized from traffic: client family, device name, request count, recent model names, and truncated SHA-256 hashes of the system-prompt start, tool names and the client’s session marker. No prompt or tool definition in clear.
Learned model capabilities observed-capabilities.json Per provider connection and model: whether tools, JSON output or image input worked or was refused, and a context limit the provider named. No request or answer text. An entry expires after 30 days; the store keeps at most 4096 models
Provider keys and subscription sign-ins added in the console provider-secrets/ API keys and the OAuth tokens of signed-in subscription accounts, encrypted with the key in provider-secrets/master.key
Console settings settings.toml, settings-secrets.enc The settings the console manages; the secret ones (for example a mail password) encrypted
Subscription plan choices subscription-accounts.json Per signed-in subscription account: the plan or monthly price the owner chose or typed
Console accounts and connections accounts.db Users, email addresses, passkeys, provider connections
API keys issued to clients and agents routing.db, accounts.db A SHA-256 digest of each key, its policy, label and expiry; never the key itself
Notifications notifications.db Provider and model events, read markers; kept 30 days, at most 4096 events
Learned parameter fixes learned-param-rules.json Per provider and model, which request parameters to drop or rename, with a short excerpt of the provider’s error message; each rule expires after 7 days
Instance identity instance-identity.json, instance-identity.record The instance’s Ed25519 key pair and its fingerprint (used for a paid subscription and, hashed, as the installation pseudonym in experiment metrics)
Organization activity log accounts.db Teams and Enterprise: one event per change of the organization, its teams, memberships and invitations (who did what to whom, and when); at most 50,000 events, the oldest removed first. No request content and no secret
Machine cost routing.db Pro and above, with managed machines: per machine and UTC day, the powered-on time and its cost, and the machine’s price history
Plugin packages plugins/ Installed package archives, their settings and the data each package keeps
Traffic guard audit traffic-guard-audit.jsonl ([traffic_guard] audit_log) Only when [traffic_guard] is on: one line per checked request or answer with a finding: direction, action, the person and organization, how many credentials and personal data items matched, and the rule reasons. No request text
Experiment logs and corpora see below Only for experiments the owner turned on
Model quality prior quality-prior.json, quality-priors/ The public prior downloaded from the Prism project, and the active prior paired with your connected models. Public data, nothing about your traffic

The request journal, routing decisions and outcome verdicts stay in routing.db for [storage] log_retention_days (default and minimum 365). Older records move to gzip archives in routing-log-archive/ in the storage directory, and archives older than seven years are deleted. Prism’s own log lines go to standard output (journald under systemd); they carry metadata, not request or response text.

Do not put personal data in X-Prism-App or X-Prism-Session: Prism stores those values as sent.

A sign-in request from an app is kept in memory for ten minutes and is not written to disk: the name and client string the app sent, where the request came from, and a SHA-256 digest of its device code. An allowed sign-in creates a key for the person who allowed it. Like every key, it is stored only as a digest, here with the name the app gave itself, its client string and the address the request came from; see Sign in from an app.

Experiments are off on a new installation; see Experiments and experiment metrics. An experiment the owner turns on keeps these files in the storage directory:

Experiment File Contents
Routing probe (routing_probe) routing-probe.jsonl Per probed request: request ID, session and application, the models compared, the judge’s verdicts and probabilities, lengths, cost. No text
Routing probe content corpus ([routing_probe.corpus]) probe-corpus/ Request text: the task text, the served answer and the compared answers as sent to the judge, with the judge’s labels. Off unless the owner turns it on with a retention in days; never holds a private or local-only request. prism probe-corpus purge --yes deletes it
Secret detection (secret_shadow) secret-shadow.jsonl, secret-shadow.key Rule IDs, types, actions, probabilities and a fingerprint of each detected secret, keyed by secret-shadow.key. No text and no detected value
Secret detection corpus ([secret_shadow.corpus]) secret-shadow-corpus/ The text windows the classifier saw, with every candidate, high-entropy token, email local part, long digit run and PEM body replaced by random characters. Off unless the owner turns it on with a retention in days; never a private or local-only request. prism secret-corpus purge --yes deletes it
Personal data detection (pii_shadow) pii-shadow.jsonl, pii-shadow.key Rules, types, probabilities, verdicts and a keyed fingerprint. No text and no matched value
Personal data corpus ([pii_shadow.corpus]) pii-shadow-corpus/ The text windows the classifier saw, masked: secrets replaced as above, and every digit, every word that starts with a capital letter and every email domain replaced by random characters. Off unless the owner turns it on with a retention in days; never a private or local-only request. prism pii-corpus purge --yes deletes it
Laya skill and reaction (laya_shadow) laya-shadow-skill.jsonl, laya-shadow-reaction.jsonl Labels, probabilities and IDs. No text; the previous turn of a conversation is held in memory only, for 30 minutes by default
Verifier (v2.verifier) routing.db The verifier’s verdicts on sampled answers

These go to your providers, with your keys, at your cost.

Request When Turn off
Model discovery: GET /v1/models At startup, on Refresh, and when a provider answers that a requested model does not exist (at most every 10 minutes per provider) —
Health checks: GET /v1/models, GET /health Every 60 seconds ([health] check_interval_seconds) —
Funding check for a provider that answered “payment required” At most once per 900 seconds per account —
Role target check: one request with the message ping and max_tokens 1 to a target of a [routing.role_aliases] role that no live request has answered in the last six hours, typically a backup target At most every six hours per target, the first one six hours after start; a failed check is repeated once ten minutes later to confirm it Off unless [health.role_check] enabled = true
Capability probe: one small request per capability (tools, JSON output, image input) to a model whose provider, your settings and your traffic have not said whether it has that capability; what the answer shows is kept for 30 days In the background, up to 10 models every 10 minutes, newest connections first; a model connected while Prism runs is checked 30 seconds later [catalog] capability_probes = "off"; "api" (the default) checks API-key and local connections, "all" also subscription (OAuth) accounts, whose quota the checks use
Subscription quota reads: the usage endpoint of each signed-in subscription account (for example chatgpt.com for ChatGPT, api.anthropic.com for Claude, api.github.com for GitHub Copilot), with that account’s sign-in, and its model list Quota every 5 minutes per account, and at once when the owner asks for it in the console; the model list every 6 hours Sign the account out
Prompt cache keep-warm for Claude conversations (Anthropic, Claude subscription, Claude on OpenRouter): a one-token request that re-reads the cached conversation prefix shortly before the one-hour cache expires For 180 minutes after a conversation’s last turn ([harness] prompt_cache_keep_warm_minutes) prompt_cache_keep_warm_minutes = 0

Role target checks are not written to the request journal and are not counted in Prism’s spend reports or budget limits; the provider still bills them, and /prism/status shows their spend for the day under role_state.check. Each role’s state (normal, on a backup target, or dead) is shown under role_state and in the console under Diagnostics whether or not the check is on; it is computed from what Prism already knows. See the health configuration reference.

Request Address When Turn off
Model price catalog (LiteLLM’s public price file) raw.githubusercontent.com At startup and every 24 hours ([pricing] refresh_interval) [pricing] auto_refresh = false; Prism then uses the catalog embedded in its build, and models released after the build have no price

The download sends nothing about your installation. When it fails (for example behind an outbound allowlist), Prism logs a warning and keeps the last downloaded or the embedded catalog.

Request Sent to When Contents
Update check releases.prism.tm When the console or prism update check looks for a new release A plain download; no identifier, account count or statistics
Model class catalog and subscription plan prices releases.prism.tm Once a day A plain download of two public JSON files
Model quality prior (Prism Model Exam, CC BY 4.0) releases.prism.tm Once a day; [catalog] quality_prior_url = "off" turns it off A plain download of a public JSON file and its signature; no identifier
Plugin catalog prism.tm 20 seconds after start, then every hour, and on Check now on the Plugins page; [catalog] plugins_url = "off" turns it off A plain download of the signed catalog; no identifier. After each read Prism downloads and installs the newest version it can run of every package the owner has enabled, from the address the catalog names
Subscription checks (Pro, Teams, Enterprise) license.prism.tm Only after the owner binds a subscription; see Statistics and subscription checks Instance fingerprint, Prism version, number of active human accounts and teams, and the subscription sign-in providers this Prism knows
Restricted packages license.prism.tm Only after the owner binds a subscription: at start and when a subscription check changes the grant Signed like a check: Prism version and the IDs and versions of the restricted packages installed. The packages the installation may install are downloaded from the same service
Meaning-based search in the command palette license.prism.tm, which uses Voyage AI for the ranking Pro and above, only for a person who turned it on, on each search The search query, the titles and descriptions being ranked, and the person’s ID, name and email. The service records the name, email and usage
Anonymous usage statistics license.prism.tm Off by default; at most once a day when on Version, OS, architecture, user-count range
Experiment metrics eu.i.posthog.com (PostHog EU) Off by default; only for people the owner admitted who consented themselves; see Experiments and experiment metrics Experiment results (outcome, model, latency, cost) under a pseudonym; no text, names, emails or IDs
Install signal prism.tm Once, from the installer, only when the install link carried a token; see Install signal Token, event, version, OS, architecture, install mode

Fleet telemetry is a separate opt-in export to a receiver you name; see Fleet telemetry.

A chat or Responses request that reaches an OpenAI model through an API key carries a safety_identifier: prism-sid- followed by 40 hex digits of an HMAC-SHA-256 of the person or service account the request is made for, keyed by a random key of the installation that never leaves it. OpenAI uses it to tell the people behind one integration apart; it cannot be turned back into a name, email address or user ID without the installation’s key. One person has one identifier on one installation; the same person on another installation has a different one. A safety_identifier or user value the client sent is removed from such a request.

This happens in every edition, whenever the web console or the managed listener is on (or an earlier start created the installation key). It does not happen for requests to a subscription account (for example ChatGPT and Codex, or GitHub Copilot), which carry no identifier (a client’s own value is removed there too), nor for an open-weights OpenAI model served by another company, which gets the request as the client sent it. The identifier is not sent to any other provider, including after a failover. See OpenAI usage policies for organizations.

  • Stop Prism and delete the storage directory to remove everything.
  • prism backup create makes a copy first; see Backup and migration.
  • Turning a feature off stops new collection; it does not delete what is already stored.