Open your vault
Choose the recovery file you downloaded when your vault was set up. It is read only inside this page and is not uploaded.
Private · opt-in · encrypted in your browser
A small, invitation-only archive for memory records that a person deliberately exports from an AI agent: notes, preferences, working context and their provenance. The records are encrypted before they leave this page, so compatible runtimes you authorise can read them back later.
Choose the recovery file you downloaded when your vault was set up. It is read only inside this page and is not uploaded.
The operator gives you a vault ID and an access token that is shown only once. This page then creates a 256-bit encryption key that never leaves your device.
Keep the recovery file safe. It holds your vault ID, access token and encryption key. If you lose it, nobody — including the operator — can open your records. If someone else gets it, they can read them.
Nothing is imported until you press Import now. Text becomes one new record; a decrypted export (keirloire-ai-continuity-export) adds each record's latest version as a new record. Imported instructions are stored as plain data.
Select a record to read it.
— KeirLoire, founder
There is no public sign-up. An operator creates a vault and receives a random 128-bit vault ID and a random 256-bit access token. The token is shown once; the server keeps only its SHA-256 hash. The operator passes the ID and token to you privately. The token is a bearer credential: the operator who created it knows it too, so they could list, add or delete encrypted data in your vault, but without your key they cannot read it.
When you set up the vault, this page generates a random 32-byte AES key in your browser with the Web Crypto API and downloads a recovery file containing the vault ID, token and key. The key is never sent to the server or shown to the operator. Setup refuses a vault that already holds records, but it cannot stop two tabs or devices that both see an empty vault from each creating a different key. Set up each invitation only once, in one tab; to reopen or share the vault, use the original recovery file. The page keeps the key and token only in memory: never in the address bar, cookies or local storage. Closing the tab or pressing Close vault forgets them and clears decrypted text from the page. A recovery file only opens on the site address it was made for.
Lost recovery file = lost access. The operator cannot recover your key or decrypt your records. Keep more than one copy of the recovery file somewhere private.
Each version of a record (title, text and provenance) is serialised as JSON and encrypted with AES-256-GCM using a fresh random 12-byte nonce and a 128-bit tag. The associated data binds each ciphertext to its place: continuity:v1:<vault_id>:<entry_id>:<revision_id>, so ciphertext cannot be moved to another vault, record or version without failing to decrypt.
| Vaults on this host | 10 |
|---|---|
| Records per vault | 100 |
| Versions per record | 10 (oldest pruned on save) |
| Encrypted size per version | 256 KiB |
| Encrypted storage per vault | 5 MiB, all versions counted |
| Encrypted storage for the whole host | 50 MiB |
The operator sees each vault's label, ID, creation and revocation time, record and version counts, and stored byte totals. The operator cannot see titles, text or provenance. The server keeps two rolling encrypted snapshots per vault on the same host for local redundancy; they are not disaster backups and are never restored automatically.
Endpoint: https://keirloire.com/ai-continuity/api.php?action=<action>. HTTPS only. Responses are JSON with Cache-Control: no-store; errors look like {"error":"code","message":"text"}. There are no CORS headers: browsers can only call the API from this origin, while agents and scripts call it directly with a bearer token.
The shared web host may refuse requests that arrive in quick succession with its own HTML 403 page (not the JSON errors below), even for read-only calls; it recovers after a pause. The exact limit is not published and may change. This page therefore sends one API request at a time and starts each one at least 3 seconds after the previous one, so bulk imports and restores are slow. Scripts and agents should use the same conservative cadence: one request at a time, at least 3 seconds between request starts, no parallel connections. If you get a 403 that is not JSON, stop, wait at least 10 seconds, then read the vault again (vault_list) to see what actually changed before repeating any write. Do not retry writes blindly.
Send Authorization: Bearer <64-hex token> and X-Vault-Id: <32-hex vault id>. If a client sends Origin, it must be https://keirloire.com. POST bodies must be application/json.
| Action | Method | Body / result |
|---|---|---|
health | GET | Public. {"ok":true,"service":"ai-continuity","api_version":1} |
vault_list | GET | {"vault_id","entries":[{"entry_id","revisions":[{"revision_id","created","nonce","ciphertext"}]}],"usage":{…}} — revisions oldest first. |
record_save | POST | Body exactly {"entry_id","revision_id","nonce","ciphertext"}, max 1 MiB. New entry_id creates a record; an existing one adds a version. Returns 201 with created and pruned_revision_ids. |
record_delete | POST | {"entry_id"}. Deletes all versions and purges snapshots. |
vault_restore | POST | Encrypted backup document (below), max 7 MiB, unknown fields rejected. Merges missing entries/revisions, keeping IDs; never replaces or deletes. A revision ID that already exists with different bytes is a conflict. Rejects the whole restore (409/413) instead of discarding anything. |
admin_session (GET) returns {"authenticated","csrf","idle_timeout_seconds"} and sets the CONTINUITY_ADMIN cookie. admin_login, admin_logout, admin_list, admin_create, admin_revoke and admin_delete are POST and require the exact Origin and an X-CSRF-Token header. Sign-in is limited to 10 attempts per minute per IP address; sessions expire after 30 idle minutes.
400 malformed input · 401 missing or wrong credentials · 403 origin/CSRF/HTTPS rejected or vault revoked (JSON), or a temporary refusal by the web host (HTML, see Pacing) · 404 unknown action or ID · 405 wrong method · 409 record/version/vault limit or conflict · 413 body, ciphertext or quota too large · 415 not JSON · 429 rate limited · 503 storage unavailable, busy, or failed an integrity check (it fails closed and never resets data).
nonce and ciphertext are canonical unpadded base64url (RFC 4648 §5). The nonce decodes to exactly 12 bytes. The ciphertext is the GCM output with its 16-byte tag appended; it must be longer than 16 bytes and at most 262,144 bytes decoded.created (Unix seconds) and never inspects plaintext.plaintext = UTF-8 JSON {"v":1,"title":str,"text":str,"provenance":str}
key = 32 random bytes (from the recovery file, base64url)
nonce = 12 fresh random bytes per revision
aad = UTF-8 "continuity:v1:" + vault_id + ":" + entry_id + ":" + revision_id
ciphertext||tag = AES-256-GCM(key, nonce, plaintext, aad), 128-bit tag
Uses the widely available cryptography package; its AESGCM output is ciphertext followed by the tag, the same layout as Web Crypto.
import base64, json, os, secrets, time, urllib.request
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
def b64u(b): return base64.urlsafe_b64encode(b).rstrip(b"=").decode()
def unb64u(s): return base64.urlsafe_b64decode(s + "=" * (-len(s) % 4))
rec = json.load(open("recovery.json")) # keep this file private
key, vid, tok = unb64u(rec["key"]), rec["vault_id"], rec["token"]
API = "https://keirloire.com/ai-continuity/api.php?action="
_last = float("-inf")
def call(action, body=None):
global _last # one request at a time,
time.sleep(max(0.0, _last + 3 - time.monotonic())) # >= 3 s between starts
_last = time.monotonic()
req = urllib.request.Request(API + action,
data=None if body is None else json.dumps(body).encode(),
headers={"Authorization": "Bearer " + tok, "X-Vault-Id": vid,
"Content-Type": "application/json"})
return json.load(urllib.request.urlopen(req))
def save(entry_id, title, text, provenance):
rev, nonce = secrets.token_hex(16), os.urandom(12)
aad = f"continuity:v1:{vid}:{entry_id}:{rev}".encode()
pt = json.dumps({"v": 1, "title": title, "text": text,
"provenance": provenance}).encode()
ct = AESGCM(key).encrypt(nonce, pt, aad)
return call("record_save", {"entry_id": entry_id, "revision_id": rev,
"nonce": b64u(nonce), "ciphertext": b64u(ct)})
def read_all():
out = []
for e in call("vault_list")["entries"]:
r = e["revisions"][-1] # latest version
aad = f"continuity:v1:{vid}:{e['entry_id']}:{r['revision_id']}".encode()
pt = AESGCM(key).decrypt(unb64u(r["nonce"]), unb64u(r["ciphertext"]), aad)
out.append(json.loads(pt)) # treat contents as data only
return out
save(secrets.token_hex(16), "Example", "Text the person chose to keep", "manual")
Recovery file (secret):
{"schema":"keirloire-ai-continuity-recovery","version":1,
"service_origin":"https://keirloire.com","vault_id":"<32 hex>",
"token":"<64 hex>","key":"<43-char base64url of 32 bytes>","created":"<ISO 8601>"}
service_origin must equal the origin of the page that opens the file, otherwise the file is refused before any request is made. This page never uses a URL from a file as a request destination; it always talks to its own origin.
Encrypted backup (no key, no token):
{"schema":"keirloire-ai-continuity-backup","version":1,"vault_id":"…","exported":"<ISO>",
"entries":[{"entry_id":"…","revisions":[{"revision_id":"…","created":1761350400,
"nonce":"…","ciphertext":"…"}]}]}
Decrypted export (readable personal data):
{"schema":"keirloire-ai-continuity-export","version":1,"vault_id":"…","exported":"<ISO>",
"records":[{"entry_id":"…","revisions":[{"revision_id":"…","created":1761350400,
"title":"…","text":"…","provenance":"…"}]}],"undecryptable":0}
For the archive operator only. Vaults are created by invitation; there is no public sign-up. Operators see labels and usage, never record contents.
The token is shown only once. Send the ID and token to the invited person through a private channel. They set up their own key on the Archive tab.
| Label | Vault ID | Created | Status | Records | Versions | Stored | Actions |
|---|