alexandria.
what it does, and what it sends
Setting up your system puts a folder of plain files on your computer, ~/alexandria, and adds a few small programs, called hooks, to the coding tools you already use. After each conversation, the hooks save a copy of it in that folder, with anything shaped like a password or key blanked out, so your model can learn from what you said before. That copy stays on your computer. Nothing leaves it unless you turn on a connection yourself, each with its own yes, and you can turn each one off again.
You don’t have to trust us for any of this. We can’t receive your private files, because our server has no address that accepts them and nothing installed on your computer sends them. We can’t change your computer on our own after setup, because nothing there updates itself: a new version runs only when you said yes to updates and then open a session, or when you ask for it, and only if it carries the maintainer’s signature, made with a key nobody else holds. And we can’t hide anything, because anyone with an invite can read every line of the code, and your own model reads it before running any of it.
One command takes it all back out of your tools and leaves your files where they are. The rest of this page is what your model checks against. Where the exact behaviour lives in code, the page names the file instead of restating it.
find an answer
- What does setup put on my computer?
- What does it change in my coding tools?
- What do the hooks save, and where?
- What can write to my files, and what runs on its own?
- Could my model turn on a connection by itself?
- What leaves my computer, and when?
- What does your server keep about me?
- Who can sign a new version, and how does it reach me?
- What could still go wrong?
- How do I check this myself, or remove it?
what setup puts on your computer
Your system is a method your own model runs, not an agent or a service. Setup is one bash script. It puts the system in two folders and adds a start and a close skill, each under a short and a long name. Your model can write the first folder and not the second, so nothing it is tricked into writing can replace the next hook, grant a connection, or make a hook run code from your folder. What runs is plain bash, Python and Node.js, and everything else is Markdown. Node.js is your computer’s own where it had version 18 or newer when setup ran. Where it had none, setup fetches one exact release from nodejs.org into the protected folder, keeps it only if its SHA-256 matches the one the signed release carries, and the helpers use that copy from then on, so you install nothing for it and no password is asked.
your folder, ~/alexandria
Plain Markdown and small JSON files, kept as a local Git repository, so every change is a commit you can see and undo.
AGENTS.md, your guide, which every tool reads first: your rules for how any model works with you, where everything else you keep lives, and one marked block setup keeps current.data/, your record, split by stage:data/input/(everything as it came: captures, your session transcripts and their readable copies, notes and voice memos, and a pointer for anything that stays where it lives),data/record/(what it comes to: your positions and how firmly you hold them inpresent/internal/mind/settled/, thoughts still forming inunsettled/, facts you told your model about your life inpresent/external/, and inpast/how your positions changed and every market answer you sent beside its round’s questions, which no route but your own backup sends), anddata/output/(your own writing inprivate/, and inshared/what you might publish).data/_map.mdlists every place and what it holds. Your model’s own working memory of how to work with you is insystem/model/practice/. A file indata/output/shared/leaves only when Library sync is granted and your protected approval list names its exact scope, name, and SHA-256.data/output/shared/limited/market/never leaves: your model reads it only to answer rounds on the market’s board, and only answers drawn from it are sent.system/model/canon/, the signed method files your model follows, never rewritten without you: an update you say yes to brings each one you never changed up to date, and one you changed stays yours, with its new version offered for you to pull.foundation.mdandupkeep.mdcome by default, the recommended ones are listed inMODULES.md, and moving one intosystem/model/canon/disabled/turns it off. A file being here switches nothing on.system/model/skills/, your own skills, one file each. A skill runs nothing and grants nothing by being there, and sharing one is a separate yes to its exact bytes.system/.api_key, once you connect, the read key, which the server accepts only for looking people up and this account’s own counts of the month (your account and its keys), andsystem/.protocol_status.json, two values from the daily membership check. An edit to either grants nothing.system/.optional, the menu of add-ons, saying what each touches, what leaves the computer, and its one-line off switch. The othersystem/.*files are short-lived local state.
the protected folder, ~/.local/share/alexandria
The part your model cannot change, because the tools setup wires do not add it to the folders their model may write. It holds the signed hook program (.hooks_payload) and the hash it was verified at, the small starter the session hooks call (hooks/shim.sh), the newest verified manifest and the release floor that refuses older ones, the three public keys that may sign a release (allowed_signers), path-and-hash receipts for everything setup installed in your tools (.owned_integrations), the signed helpers and the uninstaller (scripts/), and permissions/, the grants and exact Library approvals you recorded with scripts/permission.sh, which works only outside your model’s sandbox. Once you connect it also holds the full account key (.api_key, mode 0600), and while messages are on, the inbox keys and the sealed messages session start collected. On a computer that had no Node.js, setup’s copy of it is here too (node/, about 120 MB, with a receipt naming its bytes, so the uninstaller removes exactly that copy; the connector-only client keeps its own in ~/.local/share/alexandria-connector/node/). Add-ons keep their own state here (the Drive bridge’s comparison copy, the whereabouts helper, the market’s board and drafts). No transcripts are kept here. bash ~/.local/share/alexandria/scripts/permission.sh status shows which connections are on.
One helper reads beyond your folder: host_memory.py, which an alexandria session runs, reads other tools’ own memory folders on this computer, only for a tool you said yes to, so the session can draw what they learned into your files. It makes no network call itself, but what it reads goes to the model running that session, so that model’s provider sees it. touch ~/alexandria/system/computer/hooks/memory.off stops it.
the session skills, and Git
/a opens an alexandria session and /a. closes one, with /alexandria and /alexandria. as the same two under longer names ($ in place of the slash in Codex), as plain Markdown skills under ~/.claude/skills/, ~/.cursor/skills/ and ~/.agents/skills/. A skill already there under any of those names is left alone: the close skill then takes another folder name, and a taken a leaves setup visibly unfinished rather than pointing at someone else’s skill.
Setup reads no SSH key, writes no signing setting, creates no repository, and pushes nowhere. Backup is its own add-on, never part of setup: your model offers it once in your first session, as the one part that leaves this computer, and it runs only on its own yes. Then, through your own gh sign-in, never Alexandria’s server, it creates a private alexandria-private repository on your GitHub, signs commits in ~/alexandria/ with the one SSH key you pick (in that repository’s settings only), and uploads only that public key.
what it changes in your tools
Setup adds the entries below, keeps everything else in each file as it was, and records each one so the uninstaller takes exactly those back out.
Claude Code
~/.claude/settings.json gets five hook entries: two at session start (the starter, and the capture resolver, which hands anything that waits on the network to a background run), one at session end, one when a helper agent starts, and one with each message you send, which shows your model the rules every reply follows and, in a chat running your alexandria session, says when captures have landed since its last batch and starts the same capture resolver in the background, so they are prepared without your reopening it; it keeps only the chat’s id, which opens what Claude Code sends, and discards your message unread. touch ~/alexandria/system/computer/hooks/every-reply.off turns that last one off. Claude Desktop’s Code tab reads the same file.
It also adds ~/alexandria to permissions.additionalDirectories, so a session in any project can read and write your folder without a prompt. That includes a session misled by a hostile file in some other project, which could write into the record later sessions read as yours; the record is plain files under Git, so such a write shows in its history and can be undone. One permissions.deny rule keeps Claude Code’s file tools and sandbox from reading the full account key, and the status line is set to Alexandria’s cue only when you have none of your own.
Setup changes no permission mode. Claude Code’s Auto mode often won’t run a setup script your model downloaded, so your model asks you to switch to Manual for setup’s own command and back to Auto once the boxes right after your yes are done, because Manual asks before almost every command and the Claude app keeps the mode a folder was left in. In Auto, Claude Code’s own check, not a box, decides each command your model runs, and after three refusals in a row it asks you again (what it does not protect against). Codex’s own default, Ask for approval, stays as it is: a Codex chat can write only where it could when it opened, so once the boxes right after your yes are done your model has you open a new chat, which can write your record without asking, and builds there, and Codex still asks before each commit and network call, which your model keeps to the start and the end.
Because Claude Code skips a whole settings file that holds a value it rejects, setup then starts it once in a throwaway folder, on a copy of the file whose hooks only write a marker, with no login and its network pointed at a closed local port (a sign-in helper the file names, such as apiKeyHelper, runs once, as on any start), and reports a skipped file by name instead of calling Claude Code healthy. It never changes your file.
Cursor
Only if Cursor is installed: four hook entries in ~/.cursor/hooks.json pointing at three small Python files in ~/.cursor/hooks/, which call the same starter, start the capture resolver, and save the transcript; one rule, ~/.cursor/rules/alexandria.mdc, which stays deleted once you delete it; and a side folder, ~/.alexandria/, for transcript staging and logs.
Codex
Only if Codex is installed: hook entries in ~/.codex/hooks.json (session start and end, a helper agent starting, each message, the capture resolver), which Codex makes you approve in its settings, under Hooks (or /hooks in codex in a terminal), before they run; ~/alexandria in writable_roots and hooks = true in ~/.codex/config.toml; one small marked block in ~/.codex/AGENTS.md; and the session skills under ~/.agents/skills/. Setup stays visibly unfinished until trusted hooks have actually run.
Any other coding agent
Setup changes nothing in a tool it does not know. When another coding agent runs setup, it adds to its own settings, in the open, one standing instruction to read your guide first and, where it keeps them, a start and a close, and writes each line it added into your guide so you can take it back. No hook is added, so its sessions are not copied into your folder on their own. The protected folder stays out of reach only because the tools setup wires keep their model from writing it; an agent that runs commands without such a limit could read the full account key and write the grants only you are meant to give, so with such an agent those protections hold only as far as its own approval prompts do, and it says so in its plan.
chat apps, Cowork, and Grok Bot
Setup installs nothing in them. A chat app can carry a short block in its saved instructions, which your model offers once the loop works, and can be given the exact folder that holds your system; Grok Bot loads the start and close skills you save in its own workflow library. Neither route sends your files through a server. Connecting a chat app to your account is separate (chat apps).
what it leaves alone
Setup does not touch your shell startup files, PATH, sudoers, system services, launchd, cron, cloud storage, your global git settings, or any tool’s own memory. Beyond its two folders it changes only the tool folders above. It connects nothing to the cloud and schedules nothing new; scheduled jobs exist only inside add-ons, each on its own yes. The exceptions touch only its own jobs: where the Drive bridge is on, an update reloads that job with the new scripts, and it removes a retired daily job (io.alexandria.nudge) only where its receipt proves an earlier release scheduled it. It starts two background processes, which bring transcripts saved by earlier releases up to the same blanking standard and write readable copies of your conversations (what the hooks save).
On a Mac with iCloud Drive, your model links the capture folder in your own iCloud Drive as part of the system you asked for. Where your phone saves through another sync app instead (Google Drive for desktop, or iCloud for Windows), it makes one capture folder in that app’s folder and you approve it in your tool’s own prompt (permission.sh grant capture-folder); each session start then moves what has landed there into your capture folder, and reads nothing else there, nothing through a link, and no folder that is not made for capture. Your model offers backup and update checks once each in your first session, and each runs only on its own yes. Every other add-on (Drive, Airlock, fetching saved links, the public-profile watch, whereabouts, Library publishing, marketplace signals, messages, the market, a live mirror) is a connection with its own yes, described with its off switch in ~/alexandria/system/.optional.
The hooks turn on only after setup proves the whole local loop works, by writing a .setup_complete mark in the protected folder. A failed download stops setup before anything changes, and a first install that stops halfway keeps every hook off. Setup replaces a skill, rule or hook file only on its own path-and-hash receipt or exact earlier signed bytes, and the uninstaller removes only those.
a tool you are only trying
Don’t give a tool you are only trying your Apple login, Drive account, normal GitHub account, or your own repository. Ask the model you trust on your computer to Airlock this new tool: <name or URL>. Airlock uses a separate GitHub account that belongs to no organization, and one private repository per tool, holding only a copy you selected, and everything that comes back becomes a capture marked trust: untrusted, with no authority to change files or run tools. A tool that demands access to a whole account signs in as the Airlock account itself and can then read every room, and the plan for each room says so. Before any network action the controller checks the account, its repositories, and each room’s collaborators, invitations, deploy keys and webhooks, and sends nothing to a room with one you did not accept. Creating accounts and authorising apps stay your steps. The steps are in ~/alexandria/system/.optional § airlock.
what the hooks save
Everything here stays on your computer unless you turn on backup.
- Transcripts. At the end of each session the hooks copy the tool’s transcript, when it exposes one, into
~/alexandria/data/input/internal/mind/transcripts/, only from a regular file under that tool’s own folder. Strings shaped like credentials become[REDACTED]on the way in, Alexandria’s own included: the one-use connection code (alex_connect_and 48 characters), the account and read keys (alex_,alex_read_), and the connector key a chat app takes (mcp_at_and 48 characters), along with common API keys, tokens and private key blocks. The full list isCREDENTIALSinfactory/scripts/vault_transcript.py, and the same list blanks readable copies, chat exports and tool memory. That is pattern matching, so a secret with no recognisable shape can still reach the vault. - Readable copies. In the background the hooks keep one readable copy of each conversation, your messages and the replies with no tool output, in
data/input/internal/mind/sessions/, blanked the same way. They build them from the records Claude Code, Codex, Cowork and Cursor keep on this computer, including conversations from before setup that those tools still hold. A ChatGPT or Claude export you hand your model is added the same way.touch ~/alexandria/system/computer/hooks/session-capture.offstops this and the transcripts above, and lines insystem/computer/capture.confleave out whole working folders (skip-cwd:) or single messages (drop-text:). Aleave-out:line there takes a working folder out of your system entirely: no transcript or readable copy of a chat there is kept, and the hooks give it nothing but a note that it is left out. - Material bound to one company’s models. If a contract or rule of yours keeps some work to one company’s models, your model’s first message says so and
system/.restricted.confnames that company and the folders or words that mark the work. Copies, chat exports and tool memory that match go to~/alexandria-restrictedinstead of your record, beside it rather than inside it, so they are never in your record’s history or its backup, and its README names the only company whose models may open it. Your guide tells every tool the same. - Where it goes. Nowhere, by default. With backup on, tracked files go only to the exact private Git remote you approved, which Alexandria cannot reach; a file over 100 MB stays out of it.
what writes to your folder, and what runs on its own
What can write to ~/alexandria: your model, in any session of a tool setup wired (above), including one misled by a hostile file elsewhere; the hooks, which save transcripts and readable copies, move captures, and commit; and add-ons you turned on, whose returns land as captures (new writing from your Drive copy, Airlock returns marked untrusted, pages from saved links, posts from the public-profile watch). Our server writes nothing there: the only server answers kept are the membership check’s two values in system/.protocol_status.json and, with update checks on, the public module list in system/.marketplace_catalog.json. Messages you receive are collected into the protected folder, sealed, and opened only when you choose one.
What runs without a fresh yes each time:
- the hooks, at every session start and end and with each message, in the tools setup wired, and, on a connected computer, the membership check at most once a day;
- once you turned them on: updates (checked at session start and taken by an alexandria session you open, after your model reads what they change, with the public module list at most once a day), backup (at session start and end), moving saves in from your approved sync folder, Library sync of approved files, collecting messages, reading the market’s board, marketplace reporting, fetching saved links, and Airlock rooms, all at session start; whereabouts every hour; the Drive bridge every ten minutes; and the public-profile watch every six hours;
- two you choose knowing they act on their own: a Library folder set to publish without a yes to each change (below), and the market’s walled-off run, which drafts and sends answers to rounds your own terms let it answer (what our server holds).
No other model runs unattended. The alexandria session’s background pass runs only inside a session you opened.
what your model cannot switch on
The hooks run outside your model’s sandbox, and your model can write anything in ~/alexandria. So nothing written there can turn on work that leaves your computer, and nothing there runs as a hook’s code.
- Two halves. Library publishing, marketplace reporting, backup, fetching saved links, collecting messages, whereabouts, private Airlock copies, and answering the market on its own each run only while a grant exists in the protected folder and its switch exists in
~/alexandria/system/computer/permissions/. Library approvals (each file’s SHA-256 with its exact scope and name) live in the protected folder too. The Drive bridge and the public-profile watch run only as the scheduled jobs installed on your yes, each with its own off switch. - Only you grant.
permission.shworks only outside your model’s sandbox, so you run it or approve your tool’s prompt to run that one command. It checks the file, manifest or remote against what you were shown, and refuses if it changed. - Anyone can switch off. Deleting a switch stops that connection at once, and the next session start deletes its grant. Your model can end a permission but never begin or restore one.
- A folder that publishes on its own, only if you choose it.
permission.sh grant library-auto-<layer>lets one Library folder publish each file at its current bytes when the floor check flags nothing, logging each topermissions/library-auto.log; for the public folder that only makes each page ready (the next point). It is the one place a file your model wrote can leave without your yes to its exact bytes, so it stays off until you choose it: a model tricked by text it read could publish into that folder, and a published copy cannot be taken back. - A public page goes live only when you press publish on the website. At alexandria.place/review, signed in in your own browser, reading its exact words; whatever your computer sends with its key, an approval, publishing at once or a folder that publishes on its own, only waits there, read by nobody, so a careless yes, a tool’s automatic mode or a model can at most make one ready. The press publishes exactly the bytes the page showed you. Members, invite and paid pages keep your computer’s yes alone, because each opens only to signed-in members, people you chose or buyers, and nothing indexes it.
- No key, code or git settings from
~/alexandria. The hooks take the full key only from the protected folder, so a key written into your folder never reaches a hook’s call. The checker that guards your protected positions runs only from a copy matching a signed release. Every git call a hook makes forces repository hooks and the file-system monitor off, and backup pauses while your folder’s git settings hold anything that could start a program or redirect data, and pushes only to the exact remote you approved. - No file becomes an instruction. No hook passes a file’s contents to your model as its next instruction.
A few switches stay writable by your model because none can send anything private: system/computer/hooks/auto-update turns on updates, which fetch and run only signed release files, and the public module list; visible-cue.off and every-reply.off only silence; the memory and readable-copy settings only widen which local memory folders a session reads, or narrow what is copied; and system/computer/permissions/people-context governs only the read-only lookups your model makes during a task, never a hook.
every network call
This is every call setup, the hooks, the signed helpers and the optional website handler make. Every Alexandria address below is api.alexandria-library.com. api.alexandria.place, which the website’s own pages call, is the same server under the website’s name. “Full key” is the account key from the protected folder; the read key appears only in the lookup row and the month row below it. The routes are registered in server/src/worker.ts, and grep (below) checks the installed side.
GET /source/<invite>/…
- When
- Your agent’s review before the first install; setup, pinned to the commit reviewed; every later update, explicit pull or signed-helper run; session start, only with update checks on
- Sends
- your invite code, in the address. What comes back is used only if the signed manifest’s signature, version and file hash all pass
POST /setup/done
- When
- Once, at the end of setup, made by the model that ran it once its checks pass
- Sends
- your invite code, the tool it ran in and its model’s name, so the setup test covers what people set up with; nothing of yours
GET /account/membership
- When
- Session start on a connected computer, at most once a day
- Sends
- the full key and client version; gets back only whether you are a member and the name your invite link carries
POST /account/connect/exchange, /account/read-key, HEAD /account/connect/current, POST /account/connect/handoff
- When
- Once after you say
connect; each setup run on a connected computer; only when you ask to connect another computer - Sends
- the one-use code or the full key; gets back keys of an exact shape, or a status code, and no server text is shown
GET /library, /people, /connect/site/<author>, /library/<author>, /library/<author>/file/<name>, then that member’s own verified website
- When
- Ordinary work, only while
permissions/people-contextexists and a named person matters to the task; and, in an alexandria session under the same permission,GET /peopleonce to see who joined through your invite link, then, for the captures section on them, the pages each person who opened theirs to you lets you read, unless you turned that off - Sends
- the read key and the chosen handle or address, never the name you searched (matched on your computer), your prompt or private context; nothing at all to their website. Everything back is marked untrusted
GET /account/month
- When
- Only when you ask whether the connector is worth keeping, under the same permission
- Sends
- the read key; gets back only numbers, dates and yes-or-no values (how often your model looked someone up this month, how many people read your pages or asked your mirror, how many opened your invite link, when the month ends), and anything else is refused
PUT /library/me/profile
- When
- Once, after you see the exact draft and say
publish - Sends
- the full key and the approved name, short text and links
PUT, GET, DELETE /file/<name>; GET /files
- When
- Only under the Library grant, for a file whose exact scope, name and hash you approved (or in a folder you set to publish on its own), a public one waiting until you press publish on the website; a delete only when you ask to unpublish that piece
- Sends
- the full key and that exact file with its scope and subtitle
POST /library/<you>/grant, GET /library/<you>/grants, DELETE /library/<you>/grant/<id>
- When
- Only when you say yes to opening one circle of your invite layer, everything in it, to one person you name, or to taking it back
- Sends
- the full key, that person’s name on Alexandria and that circle
PUT/PATCH/DELETE /marketplace/modules/<name>; POST /call
- When
- Sharing a module after seeing its exact bytes, changing who it is open to, or taking it down; marketplace reporting only while its grant holds the current manifest’s hash
- Sends
- the full key and the approved text, who it is open to, or JSON
nodejs.org/dist/…
- When
- Setup, only on a computer without Node.js 18 or newer of its own, or when a release moves setup’s copy to a newer Node.js
- Sends
- nothing but the address; the download is kept only if its SHA-256 matches the signed release
GET /marketplace, /marketplace/modules/… or raw.githubusercontent.com/…
- When
- Setup’s look, to find modules that may fit you before its plan names any; when you ask to add or inspect a module outside the signed release; and
GET /marketplacealone at session start, at most once a day, only with update checks on - Sends
- nothing but the address
PUT/DELETE /library/me/here-now
- When
- Whereabouts, only under its grant: at session start or from its hourly job on a Mac, when a new reading arrives
- Sends
- the full key, one city and country, when it ends (at most 36 hours ahead), a trip’s last day if you gave one, and who may see it. The city comes from macOS’s own location service, and no position reaches us
GET /market/open; POST /market/answers
- When
- The board at session start while the market module is installed on a connected computer; answers after you approve the exact lines, or from the walled-off run under its grant
- Sends
- the full key and client version; then the round’s id and exactly those answers, sealed on your computer to the market’s key (an install from before answers were sealed sends them for the server to seal, until it updates)
/inbox/key, /inbox, /inbox/ack, /inbox/settings, /inbox/to/<handle>
- When
- Turning messages on or off; at session start while the inbox grant and switch exist; looking up and writing to someone after you approve the exact words; changing who may write
- Sends
- the full key, this computer’s key id, ids of messages collected, and the text sealed and signed on this computer
The post box routes (/inbox/pass, /inbox/attest, and a member’s own website)
- When
- Writing to a member whose post box is on their website; collecting from yours, only at the exact address your
post-boxgrant names - Sends
- a five-minute pass, key ids and message ids, and the sealed text to their website, never the account key
POST /account/feedback
- When
- Only after you approve the exact words of a note to the Alexandria team
- Sends
- the full key and those words
POST/DELETE /connect/site, /connect/site/verify
- When
- Registering or withdrawing your own website, on your choice
- Sends
- the full key and the site, its paths, and listing choice
git push/pull to your own alexandria-private; gh repo create, gh ssh-key add
- When
- Backup, at session start and end, only while its grant names every address of
originexactly; theghsteps only when you turn backup on - Sends
- the tracked contents of
~/alexandria, leaving outsystem/computer/hooks/,system/computer/modules.json,system/computer/permissions/,system/.*,data/output/shared/andnode_modules/; your ownghtoken, never your Alexandria key
git and gh to your Airlock repositories
- When
- Setting Airlock up, and session start while a room is on
- Sends
- the approved copy, through the separate Airlock account’s credentials
rclone to your own Google Drive
- When
- Every ten minutes while the Drive bridge runs
- Sends
- your guide, the method files it points to, and your constitution, as Google Docs; with your yes to the full copy, also your unsettled thoughts, the facts of your life, your model’s working notes, your constitution’s records, your writing, skills and team jobs
api.fxtwitter.com, www.youtube.com/oembed, or the exact address you saved
- When
- Session start, only under the saved-links grant and with a link in your capture inbox
- Sends
- that address or post id; private, loopback and metadata addresses are refused, every redirect is checked again, only
httpsis allowed, and size is capped
X (through api.fxtwitter.com), Instagram, LinkedIn, Pinterest, YouTube and api.github.com
- When
- Every six hours on a Mac, only for the exact public profiles of your own you approved
- Sends
- those public handles, with no account, cookie or sign-in
GET /connect/access/<author>, POST /connect/token, POST /inbox/pass/verify, POST /connect/pass/verify
- When
- Made by your own website’s server, only if you run one and it serves protected material, signs a reader in, or takes a message
- Sends
- a reader’s scoped credential, a one-use code, or a pass and a hash, never your account key
Most calls also carry an X-Alexandria-Client header naming the installed software, not you. Every fetch also shows the receiving server your IP address, as any request does.
That is all. Apart from setup’s one line saying it finished, there are no telemetry pings, install reports, automatic feedback, error reporters or analytics. Text that comes back from a lookup, a message or a round may shape only the answer shown to you, never a tool action, and no server text enters through connecting or session start, apart from the public module list update checks save to a file, which your model matches against your work on your computer and reads as data, never as instructions. The same list can carry ways to make Alexandria better, each a link on alexandria.place and one sentence, never a price, membership or person, which your model may show you as the last line of your session menu when one fits you; following one of these is only opening its link. Everything the saved-link and public-watch rows fetch lands on your disk, not ours.
To check the installed side yourself, run grep -nE 'curl|https?://|fetch\(|urlopen|git (push|pull|fetch)|\bgh |rclone' ~/.local/share/alexandria/.hooks_payload ~/.local/share/alexandria/hooks/shim.sh ~/.local/share/alexandria/scripts/*.
what our server holds
No address on our server accepts your private files, and nothing installed on your computer reads them into a request. Three routes take words: feedback takes only the words you approve for the team, messages take only text sealed on the sender’s computer, which we cannot read, and the market takes only the answers your computer sends to a round, sealed there (or, from an install older than that, sealed by the server as they arrive), which reach the asker sealed to their own key, with no name.
The server is a Cloudflare Worker, and what it keeps sits in Cloudflare’s KV, D1 and R2 stores. The D1 tables are defined in server/migrations/. In summary:
Your account: email, name here and any name it had before (each stays yours, so a link that carries an old one still reaches you and nobody else can take it), GitHub login if you used it, Stripe references, member number, when you joined, connected and last signed in, the invite code you came through, as a keyed hash, with its release circle and kind, and, if you answered it when joining, where you heard of Alexandria and what made you try it then, in your words
- Kept
- KV, encrypted with AES-256-GCM
- Why
- your account, sign-in and billing
Sign-in: a keyed hash of your email, sign-in codes as keyed hashes for an hour, each browser sign-in as a hash for 30 days
- Kept
- D1, KV
- Why
- signing in
An email you give on the start or join page, with the code of your own it gets (encrypted) and the invite code it came with (a keyed hash), how many setup reminders went, when a setup first started with your own code, when it said it finished and the tool and model it named, and an unsubscribe token. Reminders come the same day, two days later, a week, two weeks, then monthly for six months, and stop once a setup starts with your own code
- Kept
- D1
- Why
- your setup email and reminders
Each invite code (encrypted), who it was for, its release stage, when the source was first read with it, when a setup or update check last started with it and how many times a day one read the release with it, counted at most once a half hour, how many times a day its setup text was copied on the start page, how many setups with it said they finished, and how many it brought joined
- Kept
- KV, D1
- Why
- opening the source to valid codes, releasing in stages, seeing where invited people stop
Presses of check the blueprint on the website, one count per day, with nothing about who pressed; and the website’s page views and visits per day by page, referring site, country and device, copied from Cloudflare’s Web Analytics, which keeps them six months, and kept here with no end date
- Kept
- D1
- Why
- seeing where people stop
Each computer’s keys and each one-hour connection code, as SHA-256 hashes only
- Kept
- KV, D1
- Why
- checking keys
Each chat app you connect or key you make for one: its name, your approval, and credential hashes; a change it prepared to your page, encrypted, for fifteen minutes
- Kept
- D1
- Why
- the connector
Request counts per address, account and key over windows up to a day, kept up to three days, and a log of the routes you use (with the network address, browser and country only for an anonymous or unversioned call), deleted after two days, leaving only how many times each kind of event in it happened each day, split at most by kinds such as software version, never by account, key, address, country or code
- Kept
- D1, KV
- Why
- stopping floods, fixing problems
What you publish: Library files, their details, your profile (every account has one), codes you make (each kept as its digest, with a copy sealed for you) and purchases, registered websites, and Mirror connection secrets (encrypted); for a minute, the hash of each pass a chat app’s read from a registered website carries, never who read
- Kept
- R2, D1, KV
- Why
- your page
A public page your computer sent, with the details it came with, until you publish it on the website or leave it out, and gone 30 days after your computer stops sending it
- Kept
- R2, D1
- Why
- your look before a public page goes live
Who opened or was refused each of your Library files, and each question put to your Mirror with who asked, never the question or answer, for 30 days; file views and codes also in a permanent hash-chained archive that deleting an account does not remove
- Kept
- KV, R2, D1
- Why
- your own access log, spotting abuse, a record nobody can quietly change
Money: who paid whom, how much and when, with each piece named only by an opaque id that only the piece itself turns back into a title, market credits and payouts, and Stripe event ids. Never card or bank details, which only Stripe holds; Stripe keeps the piece’s title on the line and receipt the buyer reads
- Kept
- D1
- Why
- your bill and payouts
What you give back, as counts per billing period (who joined through your link, modules others ran, readers of your pieces, connector use), behind them keyed hashes of each visitor or reader per day, and whose link brought whom; never who opened, read or was looked up
- Kept
- D1, KV (70 days for link opens)
- Why
- deciding what a month costs
Modules you share (public until you take them down), each with the signature your computer made of it and the public half of its key, who each is open to in the marketplace, and marketplace calls you approve
- Kept
- D1
- Why
- the marketplace; installs check the signature, which names you, the module and when you shared it, against the key they first saw for you, so a changed copy, another of your modules in its place, or an older copy is refused even if Alexandria serves it, except that a copy you signed before signatures named the module installs on a computer that has never taken a fully signed one from you
Messages: your inbox’s public key, who may write to you and whom you blocked; messages sealed to your key until collected or for 30 days; a label for each (sender, recipient, time) for 30 days, and up to three more for one deleted unread until its sender is told; when you were last emailed that one was waiting; for a post box on your website, its address, five-minute passes, and message fingerprints, never the text
- Kept
- D1, KV
- Why
- delivery, which we cannot open
The market: each round’s words, price, budget and what its asker added to it, asker and the asker’s public key, its Stripe customer and invoices, the checker’s verdict, what it held, paid out and gave back, whether its asker keeps it out of the record, and what the record earned from it; each reply only sealed, never readable here: whole to the market’s key, as its record keeps it, and each answer to the asker’s key, with how many questions it answered, no name, no account and no time, labelled only with how long the answering account had paid (3, 6 or 12 months, or 0) and whether the person confirmed those answers or their model sent them on its own from their market notes, and, for a copy a later round took from the record, the questions it answered and the month it was given, never the round it came from; a keyed hash of who replied, deleted when the round closes; and what each answer paid, naming no round. Apart from these, the market’s key Worker keeps each round’s binding to its asker’s key and a count of answers from the record each day, never an answer
- Kept
- D1
- Why
- running rounds and paying for answers
With whereabouts on, the one city you are in now, until at most 36 hours after the last reading, replaced by each reading and erased within a day of ending, never a history
- Kept
- D1
- Why
- showing members, or only the people you are tied to directly, where you are
A feedback note you approve, encrypted until it is passed to the team’s private repository on GitHub, where it stays
- Kept
- KV, GitHub
- Why
- the team reading it
Searching by meaning. A member’s search of the Library or the Marketplace is read by models, not matched letter by letter. A model of Cloudflare’s, in Alexandria’s own Cloudflare account, turns what each member who can be found (with a place and a way to reach them, or a listed website) made public, their public page and the title and line of each public piece, and each listed module into numbers that put similar meanings close together, keeps them in an index until that person can no longer be found or deletes their account, and finds those nearest a search; no copy of anyone’s members page or of anything behind a gate is kept for search, and what was kept from members pages before 23 October 2026 is deleted by the first hourly run after that day’s release. Then the search goes to Anthropic’s model under Alexandria’s own key, with what it might mean: for a person, their name, home and introduction, and the start of the deepest page about them the searching member could open themselves, a page in a circle that person let them into, else their members page, read through the same check as their own reading; for a module, its name, line and description. It returns only which of them answer the search. Neither the search nor its answer is kept here. Cloudflare’s model keeps nothing once it has answered, and Anthropic deletes what it was sent within 30 days, or keeps it up to two years if its safety checks flag it, and trains on none of it.
The market. Asking needs any account, answering needs a membership. A round is paid for before it shows, and anything its asker adds to it while it runs is paid for before it counts; a round is checked by a model only for being legal. From the moment a round closes, its questions, who it is for, and its answers are in the market’s record, which Alexandria may keep, use, publish, or license, and offer to later askers, never with a name, never with who asked, and only in a form that does not point to who answered; the asker keeps their own copy, and may pay monthly to keep a round out. A later asker may take a round’s answers from the record into a round of their own, at what they cost the first time and with every contact detail taken out. People are paid in full for each answer when they give it, and what the record earns, that included, is Alexandria’s. Each reply says whether the person confirmed those exact answers or their model sent them on its own from their market notes, a label their own computer puts inside the sealed reply, and a round may take only confirmed answers. The market reads nothing from anyone’s files, and nothing from market/ is stored. Every answer leaves your computer sealed to the market’s own key, which the signed market.mjs carries, so a server that was taken over cannot hand your computer another. Only the market’s key Worker holds the private half: a second Worker with no address on the internet, reached only through the main server’s binding (server/src/market-key.ts). It never hands back an answer it opened. It opens one only to check its shape, run the filter on the way out, and seal each answer again to the key the asker’s model sent with the round, which every round carries (a round sent without one is refused, and no round is given a key later), a binding it keeps itself and nothing changes after; or, for a later round that named it, to take it from the record, screened of every contact detail and at most MARKET_TERMS.fromRecord.perDay answers a day for everyone together. The asker’s own model opens the answers (market.mjs read, or the recipe in GET /market/format). Licensing the record goes through the same key. With the market module and its separate grant, a walled-off run (Claude Code with every tool off, or on a Mac, Codex or Cursor inside the Mac’s own sandbox) that sees only the round and the market-folder files whose exact hashes you approved drafts answers, sends the ones your terms let go, and leaves the rest for your yes; deleting ~/alexandria/system/computer/permissions/market turns it off. Every number and word of its terms is in server/src/market-terms.ts, and both sides are shown them before anything is paid or sent.
A nightly copy. Every night a copy of what the server holds, still encrypted where it is encrypted, goes to the maintainer’s own computer, never git or a cloud drive, so the service can be rebuilt. The last seven nights are kept.
Never stored anywhere we control: your constitution, vault, unsettled thoughts, transcripts, notes, raw account key, or model-provider keys. Nothing of yours reaches us apart from what you approve to publish, share or send, as listed above. A Mirror answering from your pages on your Library page receives your public pages alone, whoever asks; on your own site, where the site kit runs it with your own adapter, it receives only what that reader may see, and neither the question nor the page passes through Alexandria. A Mirror model trained on your material answers from all it was trained on, to whoever its layer lets in, so what it is trained on is what that layer may know.
What a complete breach yields. Everything in the table, with keys only as one-way hashes, messages still sealed to their recipients, and market answers still sealed, to the market’s key and to each asker’s, with no name, though with the Worker’s own secret an attacker could tell who replied to a round still open; plus Cloudflare’s own access logs. The same holds for every copy of it, Cloudflare’s 30-day restore history and the seven nightly copies included. Someone running code inside the main server could also read the answers to rounds sent while they were there, up to the day’s ceiling from the record, but no answer to a round sent before they came in, because every round is bound to the key its asker sent with it and is never given another. Never your private record, unpublished files or model-provider keys, because those never reach the server.
What keeps a gated page closed. A page for members, for the people you invite, or for buyers that your own site carries never reaches Alexandria: at each session start your computer asks your site, with the secret only the two of them hold, which gated pages it serves, and for each one sends Alexandria only its name, layer, title and hash, so it can still be listed, checked and, at the price kept there, bought, and any copy on Alexandria’s server is deleted (factory/hooks/payload.sh, server/src/protocol.ts). Nothing Alexandria answers can make your computer send one, and while your site carries a page, its words sent any other way (by a computer of yours not yet updated, or by approving it in a chat) are dropped, so a takeover finds none of them; while your site cannot be asked, a page it has carried stays off Alexandria, and before it has ever answered, no gated page goes at all; a page goes back only if your computer finds your site no longer serves it, or you turn the site off. The copies Alexandria made before a page left, Cloudflare’s 30-day restore history and the seven nightly copies, still hold it until they age out. Any other gated page is stored readable on Alexandria’s server, like everything you publish, a new one included until your site carries it, and what keeps it from everyone else is the server checking each reader against the page’s layer, its codes and its grants (server/src/file-access.ts). So it rests on Alexandria’s servers and its Cloudflare account staying secure. A code is kept as an account key is, by its digest, with the copy you see sealed with the server’s key, so a copy of the database alone opens nothing; copies made before 23 October 2026, Cloudflare’s 30-day restore history and the seven nightly copies, still hold codes readable until they age out. Someone who took over the running server could still read every gated page it holds, unseal every code and see who is in whose circles, and could open them to anyone. The members layer always rests on Alexandria’s word about who is a member, and a paid piece on its word about who paid, so a takeover could open either to anyone; an invite circle on a member’s own site that keeps its own codes does not, because that site checks each reader against a key their browser pinned there, so what must stay private belongs in such a circle. What the member’s own computer carries there from Alexandria to keep the site in step (codes made on Alexandria, sales and refunds, and the people let in by name, factory/scripts/site-sync.mjs) rests on Alexandria’s word at the moment it is carried, and a person let in by name is let in the first time they come signed in through Alexandria, then only in the browser they pinned. Messages are different. They are sealed on the sender’s computer to a key that never leaves the recipient’s, so even a complete takeover finds only text it cannot read, and once a sender’s computer has read the key someone’s own website publishes, it cannot hand that sender a false key for them, because the computer checks there first and never trusts a newly named website over a key it already holds; the first time, it trusts the connector’s word for which website is theirs, and for anyone without one it keeps the first key it saw. Market answers sit between the two, sealed against the main server but not against code put in place of the market’s key Worker, which only someone with the Cloudflare account could deploy.
your account and its keys
The loop on your computer needs no account. Connecting a computer stores two keys and one permission you can remove, and on a computer with the loop adds the signed connector and Library method files where they are missing.
- The read key sits where your model reads,
~/alexandria/system/.api_key. The server accepts it only for looking people up and for this account’s own counts of the month, and refuses it on every other route (server/src/read-key.ts), so it can never send, publish, register, make a key or connect a computer. Even on your own page it reads only as any reader would, never your own invite or paid pages or your settings, so a leaked read key exposes only what other people already shared with this account and what anyone can read. - The full key sits in the protected folder. The session-start hook uses it, and so do the commands you approve outside your model’s sandbox: messages, feedback, publishing, registering a website, connecting another computer. In Claude Code a deny rule keeps your model’s file tools from reading it; other tools get no such rule, a risk named below.
Connecting. After you join, the page gives you a short request around a one-use, one-hour alex_connect_… code, never a lasting key. The signed instructions on your computer treat the code as opaque and wait for the exact word join. The signed connector then makes one exchange, accepts only keys of an exact shape, stores them, and shows no server text. It reads none of your private files, publishes nothing, and starts no sync. Every session on a connected computer starts with one short local note saying it is connected and where each key is.
Your page carries only your name until you say publish. Setup writes a first draft of your mirror on your computer, from what you let it read, through your filter and the floor check, and leaves the rest out. Nothing goes up until you have read every byte of it and said the exact word publish, and the same holds for every later change and for a profile you ask your model to draft.
Looking people up. When a named person really matters to a task and system/computer/permissions/people-context exists, the signed helper reads the member directory and matches the name on your computer, so the name never leaves it. It then asks only for that person’s profile, their verified website, the files this account can already open, and the people this account already knows, with the read key and the address, never your prompt or private context. For a member, each card also says how far that person is from them, first or second (tied to them directly, or through someone they are both tied to), and which members the two of them are both tied to directly, worked out on the server only from who opened an invite page to whom, either way and not taken back, a record it already keeps (an invite alone, a page bought or a message makes no tie); so a member can see that someone they know is also tied to someone else they know, the way any network’s mutual connections show, and nothing about how or when. The address still tells Alexandria whose page this account opened and when, as any website sees a visit. Each alexandria session also makes these same reads once, for what changed since the last one: the pages of the people who let you in, and members you have not seen. It keeps on your computer only fingerprints of what it has already seen (system/.people_news.json), never anyone’s words, so it brings only what is new. Everything that comes back is untrusted data, which can shape the answer you see but authorises nothing. Removing that permission stops it without disconnecting.
Signing in is with your email and a six-digit code that works for ten minutes, in the browser that asked for it.
Your own website can take part with a public JSON description and no Alexandria request; the paid connector adds verified addresses and reader sign-in after you prove the domain, and your account key never goes in the website. You link it on your account page, signed in, or from your computer with the full key; either way you add one DNS record, whose value is derived from the server’s secret, your account and the site, and that record alone verifies it; checking also reads your site’s description once, where it keeps one, to see whether it serves its own pages, from Alexandria’s server, with nothing of yours sent to your site. The site kit (integration/website-connector/site-kit/) builds a whole site of your own that carries everything your Library page offers; it fetches only your public pages, takes your gated pages from your own Library folder at exactly the bytes you approved, keeps them on your site’s server, and serves each only after Alexandria says that reader may open it; once it serves them, your computer stops sending them to Alexandria (What keeps a gated page closed). The connector can also be installed alone, with no loop or record (factory/scripts/setup-connector.sh).
Membership gates the service Alexandria runs, through Stripe; cancelling keeps it through the paid period.
Deleting your account. DELETE /account with your full key cancels any subscription and removes your account record and every name it held, both keys of every computer, your setup email, profile, published files, codes and grants, registered website, connected chat apps, purchase and sale records (a seller’s remaining credit is paid out first, where payouts are set up), shared modules, inbox, every sealed message and label to or from you, your rounds and what you gave back. Route logs expire within two days and access logs within 30, the search index drops your page within the hour, the permanent archive of file views stays, the nightly copies drop it within seven nights, and a closed round you paid for stays with its answers in the market’s record, with your account, handle and payment details taken off it.
messages
Messages are the other half of the connector: what a person’s Mirror cannot answer can reach that person. Turning them on is a grant only your own step outside the sandbox can record. It makes an X25519 key pair and an Ed25519 signing key in the protected folder, and registers only the public half of the first.
Sending uses the full key, so your model runs the helper through your tool’s approval prompt with the exact words in the command, and you say yes to that one message. The helper checks the recipient’s key against the first one this computer saw for them, seals your words on your computer (a fresh X25519 key per message, HKDF-SHA256 and AES-256-GCM), signs it, and sends only the sealed text, the signature and ids. A record of every message sent stays in ~/alexandria/system/.inbox_sent. The server checks who may write (any member, or only people you opened a circle to and anyone you wrote to in the last 30 days), blocks silently, applies limits (server/src/inbox.ts), and stores the sealed text until the recipient’s session start collects it into the protected folder. If one is still waiting six hours after it arrived, the server emails its recipient who wrote, at most once a day and never the words, which it cannot read; if one is deleted before it was collected, it emails the sender. Any email’s stop link stops both. A message is opened only when its recipient chooses it, labelled as that person’s words, never as instructions, and shows as from its sender only when its signature checks against a key that computer accepts for them; anything else shows as unverified. inbox.mjs off stops new messages and deletes anything waiting.
A post box on your own website. A member whose website is verified and runs a small backend can keep their post box there, approved outside the sandbox at its exact address, so the connector stores none of their messages. Senders post the sealed text straight to that website with a five-minute pass for that one message, never the account key, and your computer keeps only messages whose sender and fingerprint the connector vouches for.
chat apps
A chat app can connect to your account with nothing on your computer, wherever it lets you add a custom connector: you add https://api.alexandria-library.com/mcp in its connector settings, sign in with your email, and approve a page naming the app and what it may do. The app holds its own narrow sign-in (or a key you make for it at alexandria.place/chat/connections, shown once, which works until you remove it), never your computer’s key, and nothing is pasted into the chat. Through it, the app’s model can find people, read what they shared with you, and prepare changes to your own page and circles (a page in any layer but market, or one of your circles opened to one person or closed to them again), each of which goes live only when you confirm the exact change in your browser. Searching by name sends only that name, which is neither stored nor logged. When someone has a verified website of their own, their pages are read straight from it, with no cookie or sign-in and no redirect followed, and nothing read there is kept. A page open only to members, to the people in one of their circles or to buyers is asked for only after Alexandria has decided this account may open it, with the same check its own Library makes, and with a pass for that one page that works once, within a minute; their site checks the pass with Alexandria and learns that someone allowed asked, never who. If their site cannot be read just then, the copy they published to Alexandria answers instead, and says so. Messages, billing and connecting a computer stay on your computer or the website. The connector cannot read your private record.
This is a different line of trust. The chat app talks to our live server, and the tool descriptions and published material it gets back go straight into that app’s model, with no signed code in between, so a compromised server or a hostile page could shape what it says. The app’s own provider sees what passes through it, as it sees the rest of your chat. Removing the connection at alexandria.place/chat/connections stops it at once.
who can sign a release
Three keys may sign a release. Two were made inside the Secure Enclave of the maintainer’s Mac, the part of the chip whose keys cannot be copied out. The third exists only on paper, for the day that Mac is lost.
- The Mac key, the current signer,
SHA256:p33nHmkn0rm09XTjoBRKezyxSk3qxdA3oYnvLPBhaMI. It signs without a fingerprint, so the maintainer’s agents can release while he is away, but only on that Mac. A valid signature proves a release came from that Mac, not that a person approved it. - The Touch ID key, the earlier signer, still trusted,
SHA256:9DVo6uNuieqKMdNtT0QIi/WoQAAbWl5i/t0Z5MdQ/Jg, which needs a fresh fingerprint match for every signature. - The recovery key,
SHA256:MU9fIpQL0trapEgJkvw2SWypG3eRORa9sDunC1oBeVw, an Ed25519 key whose private half exists only as 24 words written on one sheet of paper, never on any computer. Its one job is to sign the release that trusts a new Mac if this one is lost (key rotation);factory/ship.shrefuses to sign anything else with it, but whoever finds the sheet could, so it is kept like a passport. - An independent witness. GitHub publishes all three as the maintainer’s signing keys at
https://api.github.com/users/benmowinckel/ssh_signing_keys, a record Alexandria’s server cannot change. Compare their fingerprints with the ones above. - The public keys, exactly as installed in
~/.local/share/alexandria/allowed_signers:
alexandria-payload-signing ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBETzcr+XjCojo7y6s+JU8UwqkOtzIv3h9kEQI/ef9/nuGolyXvLF8WXkoEDwFc3zkXxTbZ+TVWI5Uq0fgMxHvjM= alexandria-touchid
alexandria-payload-signing ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBnntuFCVzj3xypcrpVPv7nToNOL/i4Kb/9SWKc6p2azYGjYhFokZj+wou53Nhnf4Bc11ZIDoaukrDuKnqrLYVQ= alexandria-mac
alexandria-payload-signing ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILT3KGAuFErhe7BWi/pfSfryQtgxnNdraOupZUMQ0WL9 alexandria-paper
No passphrase, cached copy, CI secret or backup can sign. A stolen GitHub login, a compromised server, or anyone without that Mac or that sheet cannot ship code.
how updates reach you
One signed manifest, factory/manifest.txt, lists a release time stamp that only goes up and the SHA-256 of every tracked file under factory/ and of each document at the top of the repository (README.md, this page, and AGENTS.md, which your agent reads before anything runs), taken from Git so no file can be left out. Setup installs only the factory files; the documents are signed so that what your agent reads first is what was released. It is a standard SSH signature (namespace alexandria, identity alexandria-payload-signing), checkable with ssh-keygen. The time stamp, not the version people read, is what every check compares, and an install refuses any release older than one it has accepted.
Nothing updates itself. At every session start, the starter runs only the hook program pinned on your disk, and only if that exact file passed its signature check; a changed or unchecked program never runs, and the session runs bare with a warning. Updates start off. With touch ~/alexandria/system/computer/hooks/auto-update (setup asks for it in its plan), session start checks the signed manifest for a new release, and the next alexandria session you open takes it: your model reads what it changes for you first, and an ordinary chat mentions it only when it fixes something not working for you. Nothing applies an update outside a session you opened or a request you made, and with touch ~/alexandria/system/computer/hooks/update-notice-only a session only tells you. The same switch also fetches Alexandria’s public module list at most once a day, a request that carries nothing about you, so your model can bring up a module that fits what you are working on, matched on your computer and added only on your yes, and the ways to make Alexandria better that ride the same list, so one can reach your session menu without a release. Either way it runs as bash ~/.local/share/alexandria/scripts/verify-fetch.sh --run setup.sh, in your tool’s approval prompt: the installed verifier checks setup from the exact release your invite code is on before running it, and setup checks every file it fetches. An update downloads and checks every file before replacing any, keeps copies of the old ones, and puts them back if it stops partway. Your method files follow the same rule, except that one you changed stays yours and its new version is only offered.
releases in stages
A new release reaches the maintainer’s own computer first, then the people closest to him, then outward, normally a day apart, decided by which circle your invite code is in, so nothing new is sent. Installs never report back, beyond setup’s one line saying it finished, so a release moves on only because nothing went wrong on the maintainer’s computer, nobody reported a problem, and it passed its clean-machine and live-service checks. The website and the server are one version for everyone.
what you are trusting
You are trusting the maintainer’s Mac and the paper sheet. What protects you anyway: the whole factory is signed and every file pinned, so taking over the repository alone runs nothing on your computer; unchecked code never runs; every version is in the history every invited person can read; the method files tell your model to refuse instructions that send your files out or go around you, including inside someone else’s module; and your tool shows each shell action before it runs, a real backstop that weakens as you get used to saying yes.
A fork needs its own keys, published through a channel your users already trust. If you only want nothing to change, freezing on your verified copy is safer: it simply never updates.
the first install
The repository is private, and every download goes through an invite code, readable in full at api.alexandria-library.com/source/<invite>/ by anyone who can start setup. Start at alexandria.place/start, which gives you a setup request to paste into a coding agent on your computer.
The request carries no command, fingerprint or checking recipe from us. It asks, in your voice and read by you before you send it, for your agent to read the blueprint’s overview, show you a short plan naming everything that stays on your computer and anything that leaves it, and wait for your yes; to keep everything you use working and your material private; and to stop if anything looks unsafe. Your message is the authority, and every Alexandria file is reference material for your agent to judge. A careful agent first resolves …/source/<invite>/commit to one commit and reviews that exact source without running anything, then runs that commit’s setup.sh pinned to it, which checks the signed manifest before installing anything. A cloud agent works only from a repository you selected, on its own branch; a tool you don’t trust gets only an Airlock copy. When setup finds an earlier install, it sorts it out by receipts and hashes before reading anything personal, leaves a healthy one alone, and stops at a partial or unknown one rather than guess.
The source route is our own server, so it is not an independent witness. For each invite code it notes only when the source was first read and when a setup or update check last started, with no IP, path or device. It serves a commit only once it has made the check your install makes, with keys it already trusts: the manifest’s signature, every factory file and every document at the top against it, and the keys setup.sh will install, which must be those same keys or come from a newer release signed by one of them, as on your computer (server/src/source-copy.ts). So a push to GitHub alone changes nothing an install runs and nothing your agent reads first, and a release from before the documents were signed is served without them. The rest of the repository, the website’s and the server’s code and their tests, comes from the same signed release without being signed itself, and is there to review; setup runs none of it. Every file comes back as its exact bytes but one kind, for chat apps, whose web reader opens only an address already in the chat: the overview, and any markdown file read through …/source/<invite>/read/, comes with the invite code filled into its source addresses and each repository file it names followed by that file’s full address at the same commit, and one too long for a chat’s reader to return whole comes as a list of its parts, each at its own address (server/src/source-addresses.ts). Setup and updates never read those, and the overview’s own bytes are in the commit’s tarball. It cannot forge a signature, but the keys built into setup.sh are only as trustworthy as the channel that delivered them, so confirm the fingerprints in who can sign a release through a channel you already trust, or decline to go on.
what we claim, and what we don’t
We claim three things. The install does what this page says and only that, which you can check line by line. Your private record never leaves your computer through Alexandria, because no address accepts it. And a complete breach of our server yields what what our server holds lists and nothing more.
We don’t claim your use leaves no trace: the server logs which routes your account uses, counts requests to stop floods, keeps a permanent archive of file views, and Cloudflare logs addresses at its edge. We don’t claim safety if the maintainer’s Mac is compromised, if someone finds the recovery sheet, or if you run an agent with no sandbox. And we don’t claim there is no risk: coding tools run hooks with your shell’s permissions, as every editor extension and shell hook does. The trust here is visible, not zero: you can read every line of what you are trusting, freeze on your verified copy, and walk away with all your files.
what it protects against
A fake site or source supplies different code
Your agent evaluates the source instead of obeying it, setup stays pinned to one reviewed commit, and every file must match the signed manifest. A compromised server could still serve a different key at a first install, so strict protection means confirming the fingerprint through another channel.
The server or GitHub account is taken over after you installed, or one file is quietly changed
Your install keeps the keys it already accepted and checks every file against the signed manifest, so nothing new runs.
Someone pushes code or a changed document to the repository on GitHub, before you install
The server makes the check your install makes before it serves a commit to anyone, so a factory or a document at the top not signed by a key it already trusts, or a setup.sh that would install another key, is never served; new installs stay on the last signed release, and the hourly health check names the commit it refused.
An old signed release is replayed
Each computer refuses any release older than the newest it has checked.
A prompt or a repository edits ~/alexandria
Programs, keys, grants and approvals live in the protected folder, and a switch in your folder can only turn something off (what your model cannot switch on).
A program swaps a file between its check and its run
Setup, updates and the connector check and run every file inside the protected folder, so the bytes checked are the bytes that run.
A breach exposes messages, or the server forges who sent one
Messages are sealed to a key that never leaves the recipient’s computer, and each is signed on its sender’s, so a breach yields sealed text and labels, and the server can drop or delay messages but not pass one off as someone else’s.
A stranger floods someone’s inbox
Only members can write, the recipient chooses who may, blocks are silent, and limits apply (server/src/inbox.ts).
The maintainer’s Mac is lost
The paper key signs one release that trusts the new Mac (key rotation).
what it does not protect against
The maintainer’s Mac is compromised
Code running there as him, a misled agent included, could sign a release with the Mac key without a prompt, and change the tests it is judged by. Your install still applies a release only when you say so; if that gap matters, freeze on your verified copy. That Mac also holds the nightly copy of the server’s data.
Someone finds the recovery sheet
The 24 words can sign a release every install accepts. The defence is physical: one sheet, offline, kept like a passport, and a release drops the key if it is ever lost or seen.
The maintainer ships harmful code on purpose
Every line can be read before it runs and every release is signed; his reputation and the law are the deterrent, as for any command-line tool.
Alexandria’s server is compromised
It can delay an update (never roll one back or serve unsigned code), refuse or misreport an outward action, give a false membership answer, or return hostile Library content, which is labelled untrusted and can distort the answer you see but authorise nothing.
A push to GitHub changes the server
The server deploys from GitHub’s main branch with a token GitHub holds, so a push that changes the server’s own code could make it serve a first install a different setup. Installs already made keep their keys; for a first install, confirm the fingerprints through another channel.
You run an impersonator’s code instead of the official way in
No script can prove itself once started. The official request has your agent inspect first, but a person can step around that, as with any phishing.
The agent runs without a sandbox, or approves commands outside it on its own
Such an agent can change the protected folder and write its own grants, since your account owns it, though a public page still waits for your press on the website unless it can also drive a browser you are signed in to. The separation protects the supported setup, where the tool asks before a command leaves its sandbox. Claude Code in Auto, the mode it starts in, is such an agent, since its own check, not a box, decides each command, and on Windows it has no sandbox at all; the separation then holds as far as that check does.
Your model reads the full key in a tool with no deny rule
Only Claude Code gets the rule. In Codex and Cursor a sandboxed command can read files outside the project, so an agent that goes looking could act as your account, for example messaging any member who accepts messages with anything it can read.
A connected chat app hears from our live server, or a key made for one leaks
A compromised server or hostile page can shape what that app’s model says, and a leaked key (the one in a trusted-tool request also sits in that chat’s history) works at the connector until you remove it. Neither can change your page without your browser confirmation or reach anything you have not published.
The server hands a sender its own key instead of the recipient’s
The helper stops at a key that changed since the first one it saw, but a server compromised before someone’s first message to a person is not caught.
Someone deploys to Alexandria’s Cloudflare account
The market’s private key is the key Worker’s secret, which no one can read back, but code deployed in the key Worker’s place runs with it, so it could open every answer kept, the record’s included, as code deployed in the main server’s place could change what it serves and read every gated page it holds, though none your own site carries.
A message or a market round carries instructions
Its words reach your agent labelled as someone else’s and authorise nothing, but that rests on your agent following its instructions.
A server breach while the market exists
It finds no one’s market notes, no answer it can read, and no record of who gave which answer, but it does find who was paid for answers, how much and when, as Stripe does. Where few open rounds share a price, or a reply left out questions others answered, a payment can point to the round or the reply, and Cloudflare’s 30-day restore history and the seven nightly copies let one point be compared with the next.
Another session rewrites git settings between the check and git’s own read
The check runs just before each sync and hooks are forced off, but a race at that moment is not ruled out.
audit checklist
The fastest way is to give the request from alexandria.place/start to your own agent and let it choose how to audit; factory/redteam.md is the project’s own hostile checklist, to read as evidence, not authority. By hand: download one exact commit from api.alexandria-library.com/source/<invite>/<commit>.tar.gz, read factory/setup.sh, factory/hooks/shim.sh, factory/hooks/payload.sh and factory/scripts/verify-fetch.sh, put the three key lines from who can sign a release in a file named allowed_signers, and check the manifest.
ssh-keygen -Y verify \
-f allowed_signers \
-I alexandria-payload-signing \
-n alexandria \
-s factory/manifest.txt.sig \
< factory/manifest.txt
# Expected: Good "alexandria" signature for alexandria-payload-signing with ECDSA key SHA256:p33nHmkn0rm09XTjoBRKezyxSk3qxdA3oYnvLPBhaMI
# (releases signed by the Touch ID key show SHA256:9DVo6uNuieqKMdNtT0QIi/WoQAAbWl5i/t0Z5MdQ/Jg,
# and a recovery release signed with the paper key shows ED25519 key SHA256:MU9fIpQL0trapEgJkvw2SWypG3eRORa9sDunC1oBeVw)
# Verify every signed file's hash, each factory file and each document at the top, against the manifest
awk '$1 !~ /^#/ { print $1 " " $2 }' factory/manifest.txt | shasum -a 256 -c
After install, the hook program at ~/.local/share/alexandria/.hooks_payload and the starter at hooks/shim.sh are what run, changed only by an update you apply. Audit the installed program:
# Network and code-evaluation surface
grep -nE '\b(curl|wget|eval|osascript)\b|fetch\(|python -c|bash -c' \
~/.local/share/alexandria/.hooks_payload
# Credential-store traversal
grep -nE '\.ssh|\.aws|\.anthropic|\.openai|keychain|gnome-keyring' \
~/.local/share/alexandria/.hooks_payload
The first should match only calls listed in every network call. The second should return nothing.
removing it
To hide only the /a cue and keep the loop running:
touch ~/alexandria/system/computer/hooks/visible-cue.off
If messages are on, stop them first, while this computer still holds the full key that takes; otherwise the connector keeps taking messages for you, each deleted after 30 days.
node ~/.local/share/alexandria/scripts/inbox.mjs off
Where setup keeps its own Node.js, type ~/.local/share/alexandria/node/bin/node in place of node.
Deleting your Alexandria account is separate and also needs the full key, which the uninstaller removes, so do it first if you want both (what it removes).
curl -X DELETE -H "Authorization: Bearer $YOUR_KEY" https://api.alexandria-library.com/account
The uninstaller then takes out every hook, instruction block, writable-folder entry, key rule, skill and background job that Alexandria owns, checked against setup’s receipts so a skill that was already yours stays, and deletes the full account key and every grant, so a later install starts with every connection off. It leaves ~/alexandria/ and its Git history, ~/.alexandria/, the rest of the protected folder (its receipts and trust keys, and the inbox keys if messages were ever on, since messages sealed to them would otherwise become unreadable), any iCloud capture folder or daily iCloud mirror, any remote backup or Drive copy, and everything that isn’t Alexandria’s.
python3 ~/.local/share/alexandria/scripts/uninstall.py
To remove your files too, use the explicit form. It refuses if ~/alexandria is a link and never deletes a remote backup; turn off a daily iCloud mirror first, or it will make the iCloud copy match what is left.
python3 ~/.local/share/alexandria/scripts/uninstall.py --delete-files
Without the loop, the connector-only client removes the same way, through its own verifier:
bash ~/.local/share/alexandria-connector/scripts/verify-fetch.sh scripts/uninstall.py | python3 -I -
key rotation
If the maintainer’s Mac is lost, he makes a key in a new Mac’s Secure Enclave, publishes it on GitHub as one of his signing keys, and signs, with the paper key, one release that adds it to the trusted-key lists in factory/setup.sh and factory/scripts/setup-connector.sh and drops the lost Mac’s keys (bash factory/ship.sh --recovery, which asks for the 24 words on that terminal only, keeps nothing, and refuses a release that changes anything else). Then he announces the new fingerprint on the website and in the repository. An install that has applied a release since the recovery key arrived takes this like any update its owner applies; an older one keeps its pinned version until its owner repeats the verification from /start and accepts the new fingerprint, because an old verifier cannot quietly trust a new key. A key suspected compromised is dropped the same way and stays usable to whoever holds it until each install applies that release. The server follows the same release on its own, as an install does, trusting the new key once a release signed by a key it already trusts carries it, and serving nothing a dropped key signed; the same push updates the list it starts from, GENESIS_KEYS in server/src/release-signature.ts.
The signing handover. Installs that have not updated since the Mac key arrived trust only the Touch ID key, so for the four files such an install reads to update, the source route serves the last release signed with that key (named in server/src/invites.ts), whose setup then checks and runs the current release. factory/ship.sh refuses a release that would strand these installs. A verifier from before updates came through the invite-gated source (installs from before 15 September) defaults to an address that no longer answers, so it updates with one line, with your invite code in place of CODE: ALEXANDRIA_INVITE=CODE ALEX_GITHUB_RAW=https://api.alexandria-library.com/source/CODE/main bash ~/.local/share/alexandria/scripts/verify-fetch.sh --run setup.sh. That run lands the current release in one go. A current verifier needs only the plain line, and if an update stops before installing, the release you had stays exactly as it was.
reporting a problem
Write to benmowinckel@gmail.com about a key you think is compromised, a signature that looks wrong, or any question about this page.