Version 1.1 — 2026-10-31. This document describes what the code does today, including what it does not do yet.
OmniStrat runs on the Cloudflare Workers platform. Persistent state is split across Cloudflare D1 (SQL), KV (key/value), R2 (object storage), Durable Objects, Vectorize (embeddings), and Supabase (Postgres for accounts and organisation records). It is a multi-tenant service: customers share one D1 database and one Workers deployment, separated by organisation id in every key and query.
Cloudflare and Supabase encrypt stored data at rest. Account PII (email, name) is additionally encrypted by the application with AES-256-GCM under a server-held key (ENCRYPTION_KEY), with an HMAC blind index for lookups. Some older account fields are still stored in plaintext while a migration completes (PII_LEGACY_PLAINTEXT is on).
External traffic uses TLS, terminated by Cloudflare. mTLS can be required per
organisation (orgs.mtls_required).
Customers may bring their own provider API keys. BYOK keys and broker credentials are stored encrypted in OmniStrat's vault with a server-held key (ENCRYPTION_KEY), so OmniStrat can decrypt them to make the calls you route; they are sent to the provider or broker per call. When BYOK is configured, inference is billed to the customer's own provider account.
CMEK wraps the data keys for an organisation's records with a key you hold in AWS KMS, Google Cloud KMS or Azure Key Vault. The separate customer-KMS envelope API (/api/kms) is wired for AWS KMS only; a GCP, Azure or Vault configuration there fails with an error.
An organisation can set data_region (global, us, eu or apac), and
provider selection is filtered by it. No embedding provider or vector store is
pinned to a region today, so for an organisation whose region is not global
nothing is embedded: the semantic cache is skipped; RAG, AI Search and the
embeddings API refuse with RESIDENCY_NO_EMBEDDING_PROVIDER; agent
memory works without its vector channels. For global organisations the
semantic cache, agent memory and the support assistant embed redacted text,
while RAG documents and the embeddings API embed the text as sent, because
retrieving or returning that text is what they are for. An embedding request
for an organisation whose region cannot be read is refused, not treated as
global.
OmniStrat does not supply or resell market data. Every quote, chart, order
book, option chain, headline, fundamental and event market in the terminal is
fetched only with a credential the customer connects -- their own account or
subscription at Alpaca, Tradovate, Interactive Brokers, Finnhub, Marketaux or
Kalshi, the only sources that can be connected -- and the answer names whose
licence it came under and whether the account is the vendor's own paper or
demo sandbox. Without one the request is refused with
DATA_SOURCE_REQUIRED; OmniStrat holds no platform market-data
account to fall back to and shows no demo values of its own. Anything cached
is keyed by the customer's organisation and a fingerprint of that credential,
so one customer's data is never served to another.
An organisation's owner or admin may instead connect one credential per source for the organisation, only for a source whose vendor terms allow it, and only after attesting that their vendor licence permits display to a stated number of seats. Who attested, when, and the exact text they agreed to are kept; members beyond that number are refused; a member's own credential takes precedence; and every use is recorded so the customer can report it to the vendor. Revoking it stops it at once. Where OmniStrat could not verify a vendor's own terms (Finnhub, Marketaux), the attestation says so in those words, and the confirmation rests on the customer's own agreement.
Kalshi is never eligible. Its Developer Agreement limits API use to
"facilitating a members own trading on the Exchange", forbids sharing its data
"with third parties in any manner" without Kalshi's written authorization, and
forbids "Sublicensing the API for use by a third party". One Kalshi key serving
other members would be all three, so every Kalshi user connects their own key,
and a request to connect one for an organisation is refused with
ORG_CREDENTIAL_NOT_PERMITTED.
The Kalshi arb scanner is each member's own: off until they turn it on, it scans only with their own Kalshi key, keeps what it finds for them alone for at most seven days, and places no orders. Because it runs while the member is away, the server holds that key, encrypted; so it accepts only a key Kalshi's own key list shows as read-only, and the one copy we hold cannot trade, withdraw or transfer. A key that can trade, or whose permissions Kalshi does not list, is refused and not stored. An order against a live Kalshi account, from the scanner's ticket or anywhere else, is refused until the member confirms it as live, exactly as a live broker order is.
By default the router keeps no prompt or answer text: the audit index and the
receipts hold attributes and hashes only. An organisation's owner or admin can
switch on replay retention, choosing 7, 30 or 90 days. From that moment, and never
before it, the prompt and answer of each eligible one-shot call are kept,
encrypted with AES-256-GCM under a key derived for that organisation alone; they
are never written to logs, are deleted when the period ends (an hourly job, and
no read returns an expired call), and are all deleted at once when retention is
switched off. Streamed calls, agent turns, calls sent with no_store
or redact_pii, and calls of an organisation whose data region is not
global are never kept. A replay of a kept call on another model is an ordinary
call through the same admission, credit hold and receipt as any other, needs an
Idempotency-Key so a retry is never charged twice, and is open to the
organisation's owners and admins only.
Off by default. An organisation's owner or admin can opt in, choosing a sample rate between 0.1% and 5% and a monthly sample budget, which has no default; before confirming they see an estimate of the month's cost from their own last 30 days of calls. A sampled call is re-run on a second model from a different provider, chosen from the router's catalogue (a verified price, not deprecated), and a judge model from yet another provider compares the two answers. The organisation pays for both calls, which go through the same admission, credit hold and receipt as any call it makes: on OmniStrat's provider keys at the listed price plus the platform margin, from its prepaid credit; on its own provider key at the vendor's price, billed by the vendor. OmniStrat never pays for a sample: a model the router does not charge the organisation for is never used, a sample is never moved to another model, and a sample the organisation's credit does not cover is skipped. Each sample is its own line on the organisation's statement, labelled quality sample, with its receipt and the call it compared. A sample runs only if its bound fits in what is left of the month's budget; when the budget is reached sampling pauses. A judge answer that cannot be read records nothing. The comparisons improve routing for that organisation; they join the ranking used for all organisations only with a second, separate consent, and only as k-anonymous scores. The calls that are never kept for replay are never sampled.
orgs.ip_allowlistorgs.sso_only) disables password loginOmniStrat provides software and records. It is not a broker-dealer, investment adviser, CAT Reporter or law firm, does not file anything on your behalf, and using it does not by itself make you compliant with any law or regulation. This is general information, not legal advice.
Report vulnerabilities via /.well-known/security.txt
or email security@omnistrat.ai. We aim to acknowledge within 24 hours
and to fix or mitigate critical issues within 7 days.
Full public list at /legal/subprocessors.
Security team: security@omnistrat.ai. General trust queries:
trust@omnistrat.ai.