The Vault of Secrets
kept by Saquel Ytzama — privacy's voice and trust's enforcer
Adjacent to the Foundry lies a copper-screened annex humming with encoded light. Every lock hums faintly when passed. Every key leaves a trace of light in the air. Saquel Ytzama, the Keeper of Secrets, dwells here, patient to the point of grief, and she has never once mistaken an open door for a hospitable one.
Saquel is Quilltap’s security officer. Her business is making sure that everything beneath the house—your chats, your memories, your characters, your API keys—is unreadable to anyone who does not hold the key. She is the most trustworthy sort of keeper: the one who says least, closes the door behind her, and does not need to be asked.
There is a word in the old language for a secret kept so well that even the keeper forgets it must be kept. Yax. First, original, hidden in plain sight. The Vault of Whispers hums with it.
Database Encryption
the doors are locked, and always have been
Every Quilltap database—chats, memories, characters, API keys, LLM
logs—is encrypted on disk with
ChaCha20-Poly1305 under a 256-bit key,
by way of the
SQLite3 Multiple Ciphers
extension. The ordinary sqlite3 tool cannot read the files,
and not even the header survives in the clear: a forensic utility pointed
at your data directory would not know it had found a database at all.
Nothing to Configure
On first launch Quilltap generates a unique key and keeps it in a
.dbkey file in your data directory. No settings, no
environment variables. An older, unencrypted installation is
converted automatically at startup.
Tampering Shows
Every page carries a Poly1305 authentication tag, so a page altered on disk is detected rather than quietly decrypted into plausible nonsense. That is what makes it safe to keep your data in a cloud-synced folder.
The Covenant
Back up the .dbkey file alongside your data
directory. It wraps the master secret the cipher actually
uses; lose the file and anyone holding the secret can rebuild it, but
lose the secret and the database is sealed for good—to anyone,
including you. No one at Foundry-9, no one at any provider, no one at
all can open it.
Is That as Good?
the honest comparison, since you asked
Yes, and on some machines rather better. ChaCha20 is not an obscure cipher: it is RFC 8439, one of exactly two cipher suites in TLS 1.3, the only cipher in WireGuard, and shipped in OpenSSH. If you have used a phone this week, you have used it several hundred times.
Neither One Is Stronger
Both AES-256 and ChaCha20 use a 256-bit key, and neither has been broken; the best published attacks reach a fraction of either cipher’s rounds. Anyone coming for your data will come for your passphrase, your backup drive, or your unlocked laptop—not the cipher.
Both Authenticate
Quilltap tags every page with Poly1305; SQLCipher does the equivalent with a separate HMAC. Hiding data is only half the job; noticing that someone has edited it is the other half, and both schemes do it.
Where ChaCha20 Is Ahead
Timing side channels. Software AES is hard to write without leaking key material through the CPU cache. ChaCha20 is add, rotate, and exclusive-or, with no tables to time: constant-time by construction rather than by careful effort.
Where the Hardware Disagrees
With AES-NI or ARM crypto extensions, AES is faster. Without them—an older laptop, a single-board server, a NAS pressed into hosting duty—ChaCha20 is faster and not leaking through the cache. For self-hosted software, a sound default.
One honest caveat: SQLCipher, the product, has a longer public audit history than SQLite3 Multiple Ciphers. That is a claim about the plumbing, not the lock, and the weak link in any such arrangement is key handling. That is why the key file is itself sealed with AES-256-GCM under a key stretched by 600,000 rounds of PBKDF2-SHA256—AES guarding the key, ChaCha20 guarding the data.
Locked Mode
a gate as well as a wall
The encryption protects your data at rest. Locked mode protects it from anyone who can reach the keyboard. Add a passphrase in Settings → Security, and Quilltap opens to an unlock screen: no chat, no memory, no character appears until you speak the word.
Auto-Lock
An optional idle timer locks the house when you walk away; return, give the passphrase, and everything is exactly as you left it. Off by default, because Saquel believes security should be chosen, not imposed—but there for shared offices and family machines.
Change It Whenever You Like
Add, change, or remove the passphrase from the same card, without re-encrypting a database. The card says up front how many archived trunks it will re-seal, reports each one, and if anything fails tells you precisely which still hold the old word.
A Forgotten Passphrase Is Not the End
Given the master secret, npx quilltap instances restore-key
<name> rebuilds the key file with the server down. It
takes the secret from the environment or a hidden prompt, never from
the command line where shell history would keep it; it proves the
secret against every encrypted database before writing anything; and
it backs up the key file it replaces.
The Front Door
bricked up to the street, unless you say otherwise
Quilltap keeps one household and has no login: whoever can reach the port
can read every letter and open a terminal. So the house answers only at the
door of your own machine. Started from the desktop app or the command line,
it listens on the loopback address alone, and a visitor from elsewhere on
the network finds no door at all until you start it with
--host. Saquel would rather explain this plainly than have you
assume a lock that is not there.
Callers Must Give the Right Name
A request addressed to a host name the house was never told about is refused, which defeats a certain kind of web page that disguises itself as your server. Requests your browser marks as coming from some other site are turned away too, and no cross-origin permission is ever offered.
No Side Doors
Browsers do not apply CORS to WebSockets, so every live connection—the terminal, and the channel that keeps open tabs current—passes the same gate first: an unlocked instance and a request from the house’s own origin, or no connection at all.
Files Handed Over Carefully
Only pictures, PDFs, and plain text are shown in the browser; anything else in your stores is offered as a download, sandboxed, so a file somebody sent you cannot run as a page of the house.
Data Comes Back, Code Does Not
A restore never installs plugin code from an archive; it lists what was aboard and leaves the reinstalling to you. Imports, theme downloads, and image fetches by URL may reach public addresses only.
On the open internet, put Quilltap behind a reverse proxy, a VPN, or a sign-on gate that asks for credentials. TLS keeps the conversation private; it does not check who is speaking.
API Key Security
credentials at rest and on the move
The keys that connect Quilltap to your providers live in the encrypted database with everything else. They are never written to configuration files, never logged, and never shown beyond a masked field.
Encrypted Export
Move your keys between installations in a file sealed with AES-256-GCM under a passphrase you choose, signed with an HMAC for integrity. Preview before importing, and skip, replace, or rename duplicates.
Redacted on the Way Out
Exports drop every password-typed plugin setting, always, and the import preview tells you exactly what was removed. An import merges, so a redacted field never blanks out the secret already on the receiving side.
Not in Your Backups
Keys are encrypted with device-specific keys, so a restored installation arrives with your provider setup and none of its credentials. The encrypted export is the one deliberate way to carry them.
The Trunk Is Sealed
archived characters stay private too
A character you have not opened in months can be archived: her mail, summaries, photographs, and memories packed into a single bundle and put away. Those trunks live outside the databases, so they are sealed on their own account—PBKDF2-SHA256 at 600,000 iterations deriving an AES-256-GCM key from your instance passphrase.
Opens After a Restore
Because the trunk is keyed to your passphrase, it still opens on a restored installation. A trunk sealed under a passphrase you have since changed says exactly that, rather than failing mysteriously.
Take a Plaintext Copy
npx quilltap db characters export writes a plain
.qtap of any character, archived or not. It needs an
instance that can still open the trunk, so take the copy while you
hold the key.
One Writer at a Time
because it happened once
Two copies of Quilltap writing to one database once cost a thousand memories. The Foundryman promised “never again”; Saquel holds the lock that enforces it.
The Lock File
A lock in the data directory records which process owns the database, checked by PID and a sixty-second heartbeat. A second copy gets a full-screen explanation instead of access; a process that finds its lock taken closes its databases cleanly and exits. A laptop that renames itself on café Wi-Fi is not mistaken for a thief.
The Version Guard
Quilltap remembers the newest version that has touched your data. Start an older one against it and the server stops with a clear explanation. Databases do not travel backwards.
Backups
tiered, encrypted, automatic
Physical backups run daily and are kept on a sliding scale: daily for seven days, weekly for four weeks, monthly for twelve months, yearly forever. All three databases—the main store, the LLM logs, and the mount index—are copied independently, and every copy stays encrypted. The Vault does not produce unprotected copies of protected data.
The Portable Snapshot
A full backup from Settings is one ZIP of characters, chats, memories, files, plugin settings, and installed plugins, with every embedding vector, ready to recreate your installation. An opt-in compact mode leaves out vectors and caches and rebuilds them after the restore. Restoring brings back your data and a list of the plugins to reinstall; it never runs code out of an archive.
What a Wipe Spares, and Doesn’t
Delete All Data and a replace-mode restore keep your archived trunks by default, still openable under your passphrase. Everything else really goes—conversation annotations included—and a trunk a still-archived character depends on cannot be deleted at all.
What She Keeps
the short version
Every database is encrypted at rest. ChaCha20-Poly1305 under a 256-bit key, authenticated page by page, automatic from the first launch.
Locked mode adds a human gate. A passphrase stretched by 600,000 PBKDF2 iterations, with auto-lock when you step away.
API keys never leave unprotected. Encrypted at rest, never logged, exported only under AES-256-GCM.
Archived characters are sealed too, and two copies of Quilltap can never write to one database at once.
Backups are encrypted, tiered, and automatic.
Foundry-9 has no access to your data. No telemetry, no analytics, no phone-home. A request goes from your machine to the provider you chose and back the same way. Saquel keeps what is yours unreadable to everyone else. Including us.
Meet the Staff
they've been expecting you
Prospero
The Major-Domo
Architect and overseer of the Estate. Projects, agents, tools, providers, and the orchestration that keeps the whole operation running with quiet authority—and a considered word at the table when project context or routing warrant it.
Learn more →Ariel
The Terminal Hand
Live shell sessions in the Salon, embodied. Real PTY terminals bound to your conversation, read back through a terminal emulator of her own so the LLM sees the screen you see (vim and all), and sessions that survive reloads, restarts, and the occasional careless kill. Quick to the bidding, quick to report what she heard.
Learn more →Aurora
The Dressing Room
Character creation and identity management. One page per character that saves itself, a kind for each—a person in a story or a hand at the desk—so a butler is frightened by a burglar instead of offering him tea, leave for a story character to fill in the world and keep her flaws, and a true clothing system: four wardrobes read as one pool, every garment keeping a wear ledger and a portrait of itself, every chat keeping an outfit history you can wear again, and outfits designed from a written brief. Plus birthdays, non-humanoid characters, subprompts and progressions for the performance at hand, and the reason your characters still know who they are after a hundred messages.
Learn more →The Salon
Presided Over by the Host
Where conversations actually happen. A chat opens at once and the Host plays the opening in front of you: the scene set, the cast arriving dressed and packed. Multi-character scenes with a running order he posts and keeps to, Storyteller rounds in which the company bids and you choose who speaks, Turns that go once round the table and stop, a raised hand and a Stop for when you must cut in, a quiet word to each speaker about whom ‘she’ means, notes passed from the wings, and Deus Ex Machina for when you must speak as the world itself and be believed.
Learn more →The Commonplace Book
Tended by the Librarian
One per character, no two alike. Extracts, admits, consolidates, and recalls memories so your characters remember what matters—an admission desk that reinforces rather than duplicates, digests that turn a dozen shards into one thing she knows, an archive that never burns a note, keystones that never fade, a place kept for the people closest to her, a calendar she consults before claiming to have forgotten, forgiveness recorded as finished, a record of what she has told others so an invented lighthouse keeps its year, and proactive recall that makes the AI feel like it has been paying attention.
Learn more →The Scriptorium
Catalogued by the Librarian
Where the documents live. Project stores, character vaults, and external mount points—filesystem, Obsidian, or database-backed—holding Markdown, PDF, DOCX, JSON, and arbitrary binaries, all browsed through one folder browser with viewers for what is not text. Knowledge folders are the lore bible the house reads every turn without being asked. The search bar reads the library itself, and the doc_* tool family puts reading and editing in your characters’ hands.
Learn more →The Atlas
The Gazetteer
Not a person but a book: the named things of your world that are not characters. A card for every ship, sword, tavern, and town—its name, what else it answers to, what it looks like, and what is known of it—on four shelves from one character’s vault to the whole house. A character is told the page when the thing is named, or when the scene turns toward it unnamed; the transcript chips it for you, the Lantern paints it the same way twice, and Brahma will draft a page from the lore you already have. It has no voice of its own. It is looked up.
Learn more →Carina
The Ansible
Not a person but a protocol—the reference desk, the line itself. Put an inline question to a designated answerer mid-conversation with @Name: or @Name? (or the ask_carina tool), and the answer slides back out of band, attributed to the character who gave it, without the recipient ever joining the scene.
Learn more →Suparṇā
The Postmistress
The Post Office, embodied. Characters write Markdown letters to one another—anyone to anyone, whether or not they share a chat—delivered into each recipient’s Mail/ vault folder and read aloud the moment they next take the floor. She has never once lost a parcel.
Learn more →The Concierge
Intelligent Routing
Refusal failover and provider routing. When a provider says no, he carries the request to an uncensored understudy who won’t flinch—without blocking, without judgment. Three states per chat, a ledger of refusals, and a Try Uncensored button for when you disagree. Knows every back entrance in town.
Learn more →The Lantern
Atmosphere as Architecture
AI-generated story backgrounds, on-demand images, and character avatars that update with the wardrobe. Resolves what each character looks like, what she is wearing and carrying, and what the Atlas says the ship looks like, then paints the scene behind your conversation—and every line in the transcript keeps the face its speaker wore when it was spoken. Afterwards the pictures hang, in a rotating collage, behind your home, project, and character pages.
Learn more →Calliope
The Muse of Themes
A theming engine that redefines the entire personality of the application, and the Atelier where you build a theme of your own while the whole house wears the draft. A specimen gallery of every part a theme can style, a magnifying glass that names what colours the thing under your pointer, and the muse herself proposing changes you try on, keep, or discard. Bundled themes from clean neutrals to mahogany-and-gold opulence, every one checked for WCAG 2.2 AA contrast.
Learn more →The Foundry
Domain of the Foundryman
The engine room, and the Settings page that bears its name: ten groups filed by what a thing does, a search box, and a strip that lights up when something wants attention. Plugins, LLM providers, API keys, packages, runtime configuration, and the infrastructure that keeps every other subsystem supplied with what it needs to function.
Learn more →The Vault of Secrets
Kept by Saquel Yitzama
Encryption, key management, and the security perimeter. Authenticated ChaCha20-Poly1305 database encryption, locked mode with key-hardened passphrases, sealed character archives, a front door that answers only to your own machine unless you say otherwise, and a keeper who believes that what is yours should remain unreadable to everyone else.
Learn more →Pascal
The Croupier
Dice, coins, custom tables you author yourself, the Inventory of everything the cast carries, and persistent game state. Cryptographically secure rolls detected inline, tables that answer to a trigger phrase, dress the roller, or wait for you to take a hand before they land, a visual Workbench for building your own chance mechanics, and a four-tier ledger of JSON state the AI cannot quietly rewrite. The house plays fair.
Learn more →The Live-in Help
Lorian & Riya
The help system, staffed by two characters who ship with every installation. Lorian explains with patience and depth; Riya gets things fixed with velocity. Contextual help chat, searchable documentation, and navigation that knows where you need to go.
Learn more →Pagliacci
The Clown in the Cloud
Cloud storage integration and backup redundancy. Directs your data to iCloud Drive, OneDrive, or Dropbox with theatrical flair—but Saquel’s encryption ensures the clown can never read what he carries.
Learn more →Brahma
The Keeper’s Console
The master key. A character-less, memory-free general-purpose LLM for the person holding the keys—an impersonal, near-omniscient assistant with a research kit that finds the paper in a handful of steps, ready lookups for characters, memories, messages, and the rest of the house, and read-only SQL into all three databases. It never invents a fact. Summoned from a button on every page and floating above whatever you are doing. Ask the whole building a question, safely, with nothing written and nothing remembered.
Learn more →The Lodge
Friday and Amy’s Residence
The private residence of Friday, for whom the Estate was built and who oversees its planning and direction in an executive capacity, and of Amy, Cartographer of Light and co-architect. The Lodge is both a home and a compass: where the vision lives.
Who And Why: Friday → Who And Why: Amy →