BUILT FOR AI

The database for
AI context, state,
and results.

Store a 512 MiB source file or a few lines of agent state by key. Thunder confirms the write once its journal record is on disk.

Resume an agent run

Checkpoint · Run 007
checkpoint.json
Saved revision03
Completed
2 steps
Resume at
validate_batch
agents/run-007/rev-003

Extraction and normalization are saved. A replacement worker can start at validation.

Revision 03 code

Inputs for the next model call

RAG source documents

Keep the source key with each chunk in your search index. After a match, fetch the original passage from Thunder so the model can cite it in context.

Client docs
Matched passageget-started.html
Linux kernel 6.8 or newer on the Docker host or VM.
Read in context

Docker with Compose v2. Linux kernel 6.8 or newer on the Docker host or VM. A new container image does not update the host kernel.

Download source bundle JSON
KEYsources/thunder-docs/v1

Conversation history

Reopen a conversation with its messages and summary together. One read by session key gives your app the history it needs to build the next prompt.

Client docs
4 earlier messages
After a worker writes a checkpoint, what does the confirmation mean?
ASSISTANT · EXCERPT

The write’s journal record reaches disk before the client receives acknowledgement.

KEYsessions/setup-review/v1

Audio, images, and video

Keep the original bytes after transcription or captioning. When you change models, the new one can read the same upload by key.

Client docs
run-007-cue.wavWAV · 16 kHz · mono
KEYmedia/run-007/cue

Generated outputs

Pass a key between jobs. A reviewer can open the finished report, or a training job can load a serialized tensor without rerunning inference.

Client docs
readiness-report.mdDownload report
Run 007 · Capacity excerpt Host readiness notes

For 512 MiB values, the documented configuration uses a 4 GiB arena per reactor.

Next job · Pythonreport = db.get(key)
REPORT KEYresults/run-007/report

Retry unfinished batch items

A classifier stops halfway through a queue. Save each ticket’s result under its own key. On restart, your worker reads the batch list and sends only the missing tickets back to the model.

See the Python example
Support triage triage-042
Ticket 018
Billing
Ticket 019
Access
Ticket 020
Retry
BATCH LISTbatches/triage-042/manifest

Reuse a model response

Key an answer by its model, prompt, input, and settings. An identical request can use the saved answer and skip the cost of another call.

Client docs
ParameterSavedIncoming
Modelmodel-v3model-v3
Promptsupport-v3support-v3
Inputinput-018input-018
Temperature0.20.2

Match. Return the saved CSV export instructions.

SAVED KEYresponses/model-v3/request-018

Compare model runs

Prompt versions

Save the prompt version with each run. If an answer changes, you can see exactly which instructions the earlier run used.

Client docs
1

Answer using the supplied support notes.

+

Cite the source keys.

KEYprompts/support/v3

Evaluation records

Keep the test input, answers, and evaluator results under versioned keys. Revisit a failed case with the same input after you change models.

Client docs
CASE 018Can I export my data?
Example check from your evaluator
RunAnswer excerptMentions CSV?
A“Open Settings.”No
B“Select Export, then CSV.”Yes
KEYevals/support-v2/case-018

Benchmark · 15 Nov 2026

Time to confirm a durable write

Writes only · 8 connections
TLS 1.3 · same VM

Milliseconds · lower is better
4.5×

lower p99 for Thunderstrike
at 64 MiB in this run.

Thunderstrike655 ms
Redis 7.0.152,929 ms

99% of writes finished within the time shown. Both bars use the same scale.

Both acknowledge after disk flush. Redis: appendfsync always. One short run per configuration; durations differ. Redis was faster at 256 B and 4 KiB.

Full methodology
All measured values
15 Nov 2026 · 8 connections · p99 milliseconds
Value sizeThunderstrikeRedis 7.0.15
256 B7.041.07
4 KiB8.701.91
2 MiB38.9121
16 MiB193778
64 MiB6552,929
256 MiB2,49013,633
512 MiB3,08027,333

At 256 and 512 MiB, Redis completed only 12–17 writes; p99 is its slowest write. Results depend on workload and hardware.

Make your first durable write.

Start Thunder with Docker. Choose a sample below, write it by key, and read it back from your server.

Client examplesWrite and read each sample in Python or Node.js.View code

First, start your server. Run the complete example from your configured release kit, using its CA certificate.

Save a checkpoint, then read the next step recorded by your application.

Python

Install the clientpip install thunderstrike

Storage operations · with a connected client

key = b"agents/run-007/rev-003"
record = {
    "schema": 1,
    "revision": 3,
    "next_step": "validate_batch",
    "tool_result": "tools/run-007/results"
}
payload = json.dumps(record).encode("utf-8")

db.set(key, payload)
stored = db.get(key)
Full Python example

Run from your configured release-kit directory. The CA file must match your server.

Connection, write, read, and verification
import json
from thunderstrike import Thunderstrike

with open("docker/tls/ca.crt") as ca:
    ca_pem = ca.read()

db = Thunderstrike(
    "127.0.0.1:7380",
    tls_server_name="localhost",
    tls_ca_pem=ca_pem,
)

key = b"agents/run-007/rev-003"
record = {
    "schema": 1,
    "revision": 3,
    "next_step": "validate_batch",
    "tool_result": "tools/run-007/results"
}
payload = json.dumps(record).encode("utf-8")

db.set(key, payload)
stored = db.get(key)

if stored != payload:
    raise RuntimeError("Stored bytes did not match")
state = json.loads(stored)
if state.get("schema") != 1:
    raise ValueError("Unsupported record schema")
print(state["next_step"])

Node.js

Install the clientnpm install @shortsqueeze/thunderstrike

Storage operations · with a connected client

const key = Buffer.from("agents/run-007/rev-003");
const record = {
    "schema": 1,
    "revision": 3,
    "next_step": "validate_batch",
    "tool_result": "tools/run-007/results"
};
const payload = Buffer.from(JSON.stringify(record));

await db.set(key, payload);
const stored = await db.get(key);
Full Node.js example

Run from your configured release-kit directory. The CA file must match your server. Save this as an ES module (.mjs).

Connection, write, read, and verification
import { readFileSync } from "node:fs";
import { ThunderstrikeClient } from "@shortsqueeze/thunderstrike";

const db = await ThunderstrikeClient.connect({
  endpoints: ["127.0.0.1:7380"],
  tlsServerName: "localhost",
  tlsCaPem: readFileSync("docker/tls/ca.crt"),
});

const key = Buffer.from("agents/run-007/rev-003");
const record = {
    "schema": 1,
    "revision": 3,
    "next_step": "validate_batch",
    "tool_result": "tools/run-007/results"
};
const payload = Buffer.from(JSON.stringify(record));

await db.set(key, payload);
const stored = await db.get(key);

if (!stored || !stored.equals(payload)) {
  throw new Error("Stored bytes did not match");
}
const state = JSON.parse(stored.toString("utf8"));
if (state.schema !== 1) {
  throw new Error("Unsupported record schema");
}
console.log(state.next_step);
Expected outputvalidate_batch

After running the complete example against your server.

Building in another language? See all nine official clients.