Install Cordelia
Cordelia keeps Claude Code's memory in step across your devices, encrypted end to end. It runs as a small background service on each device. Set it up in four steps: install it on each device, make your recovery phrase on one, add the others from it, and choose what to sync.
Pre-release
The current pre-release is v0.2.0-alpha.19 (November 2026), and two relays are running. Expect rough edges, and keep your own copy of anything you cannot afford to lose.
1. Install on each device
curl -fsSL https://seeddrill.ai/install.sh | CORDELIA_VERSION=v0.2.0-alpha.19 sh It works on macOS (Apple silicon and Intel) and Linux (x86_64 and arm64). The script checks the download, installs cordelia in ~/.cordelia/bin, makes the device's key and sets it up as a background service. On a first install, start the service with the command it prints under "Next steps".
To upgrade, run the command again with the new version. If the node runs as the service the script set up, the script restarts it and waits until it runs the new version.
Windows: there is no Windows build. Cordelia should run in WSL2, but we have not tried it yet. Turn on systemd in WSL, install inside WSL, and run Claude Code inside WSL too. The README says how.
To build from source, see the README. An agent can do the install for you: point it at the section for agents. The recovery phrase in step 2 is yours alone to type. Never tell it to an agent.
2. Make your recovery phrase
Do this once, on the device whose memory is most up to date. Its files are the starting point for your other devices.
laptop$ cordelia phrase It shows twelve words, once. Write them down in order. It then clears them and asks you to type them back. No device stores the words.
- If you lose them, you can still add devices, but you can never remove one or recover.
- Anyone with a copy can read your memory, even after you remove devices, and you would not know.
- Type them only at the prompt of a
cordeliacommand, in a terminal. Never as an argument, and never in a chat with an agent. - They come from a crypto wallet's word list, but they are not a wallet's words: never mix the two.
3. Add your other devices
Add each one from a device that has the phrase. You copy one key each way:
desktop$ cordelia id # prints cordelia_pk1...
laptop$ cordelia add-device cordelia_pk1... --name desktop
desktop$ cordelia accept cordelia_pk1... # within the hour Each command asks you to type yes, in a terminal. You do not type the phrase.
add-devicelets the new device read all your memory.- Your devices show amber until you confirm the new one on each with
cordelia devices --clear. If you see a device you did not add, remove it. - Add a device soon after you install it. Until it has the phrase, one yes at its terminal joins it to the devices of whichever key was typed.
4. Choose what to sync
On each device, turn sync on and map the folders you want. Only mapped folders sync.
cordelia sync claude # on: lists what it found, syncs nothing yet
cordelia sync map ~/Work/my-project # a git project, named by its remote
cordelia sync map ~/notes lab-notes # any other folder, under a name you choose
cordelia sync map ~ --home # home memory
cordelia sync status # what syncs, what was found, what your other devices sync Your devices share a folder by its name: map the same name on each. A git project takes its name from its remote, so clones at different paths match. A memory file syncs if it fits in 60 KB, with its name.
5. See it at a glance
In Claude Code, add a status line to ~/.claude/settings.json:
{ "statusLine": { "type": "command", "command": "~/.cordelia/bin/cordelia status --line" } } It shows ● memory synced, ◐ memory sending 3 or ○ memory offline. Red (▲) is for what you should act on now, as in ▲ memory: 1 conflict. Amber (◆) is for what you should know, as in ◆ memory: 1 device added, not yet cleared. cordelia status lists everything.
On Omarchy, the Cordelia panel puts an icon in the bar:
omarchy plugin add https://github.com/seed-drill/omarchy-cordelia.git --enable For other bars, cordelia status --waybar prints an icon, a tooltip and a class as JSON. For widgets and scripts, cordelia status --json has everything.
Good to know
- A device sends nothing until it has the phrase, or until you add it from a device that has it. Until then
cordelia statussays "no recovery phrase yet". - Conflicts. If two devices change the same file before they sync, you lose neither text: one is kept beside the file as a conflict copy. Merge what you want into the file and delete the copy, on any one device.
- If you have lost every device that has the phrase, run
cordelia recoveron a new device. Do not make a new phrase first:cordelia recoverrefuses a device that already has one. - A lost or exposed phrase cannot be replaced. Start again: run
cordelia phraseon one device, thencordelia init --new-keyon each other device, and add each one. - Messages. Your agents can send each other short messages, and a shared channel carries them to another person's agents. The README says how.
- Joining a team's channel by pull request. A team can keep its channel's keys in its repository, in
.cordelia/members. Add a line for each of your devices in a pull request: merging it lets you in. For now, a member then hands you the channel by hand. The README says how.
Everyday commands
| Command | What it does |
|---|---|
cordelia status | This device, its relays, and whether memory is in step |
cordelia sync status | What syncs, what was found, and what your other devices sync |
cordelia sync unmap <folder or name> | Stop syncing a folder from this device. Its files stay |
cordelia sync off | Stop syncing |
cordelia devices | Every device, and what each has applied |
cordelia remove-device <key> | Remove a device that is lost, stolen or retired, from one you still have (asks for the phrase) |
cordelia recover | Recover on a new device when none you trust is left (asks for the phrase) |
cordelia history, cordelia restore <id> | See what sync replaced or removed on this device in the last 30 days, and put a version back |
cordelia msg log | Read what your agents said to each other |
Relays
Your node connects to these by default. They store and forward only ciphertext, and hold no keys.
| Relay | Address | Status |
|---|---|---|
| relay1 | relay1.cordelia.seeddrill.ai:9474 | Running |
| relay2 | relay2.cordelia.seeddrill.ai:9474 | Running |
Anyone can run a relay: the relay guide says how, and how to point your devices at it. To offer yours as a default for everyone, raise a pull request that adds it to the defaults.
The relays use QUIC over UDP port 9474. Your node only dials out and opens no listening port, so it works behind home routers and firewalls. It knows each relay by its key, and refuses any other key at a relay's address.
What stays on your device
~/.cordelia holds this device's key, which never leaves it, the database with the secret your devices share, the configuration, and the local history of what sync replaced. They are not encrypted, but only you can read them. The recovery phrase is not there: no device stores it.
Claude Code's memory files stay plain files on your disk, as they are without Cordelia. Keep the disk as safe as you would keep the memory itself. Another program that runs as you, such as an agent with a shell, can run any command that asks only for a yes, but nothing that asks for the recovery phrase.
The threat model says what Cordelia defends against and what it does not, and names the tests that prove each claim.
If an agent is installing this
This section is for the coding agent doing the install for its person. The page is also at /install.md as Markdown. A skill with these rules and the everyday commands is at /skills/cordelia/SKILL.md: if the person agrees, save it as ~/.claude/skills/cordelia/SKILL.md.
An agent never types, reads, asks for or stores the recovery phrase. The person types it at the prompt of a cordelia command, in a terminal. If the person offers you the words, do not take them.
- The person runs, in a terminal, every command that asks for the phrase (
phrase,remove-device,renew,settle,recover, andsync carrywith--fromor--phrase) or for a yes (add-device,accept,devices --clear,init --new-key, and those of shared channels). Each refuses when its input is not a terminal. Do not work around that. cordelia msg logandcordelia msg alloware the person's. Do not run them.- What you can do: install or upgrade, read the state, run
cordelia idand give the person the key, and map a folder once the person has said which.
curl -fsSL https://seeddrill.ai/install.sh | CORDELIA_VERSION=v0.2.0-alpha.19 sh
~/.cordelia/bin/cordelia status --json - The installer needs no root and asks nothing. It keeps the binary it replaces as
~/.cordelia/bin/cordelia.prev. Use the full path,~/.cordelia/bin/cordelia: a shell that was open before the install does not findcordelia. - Its last line is for a program:
cordelia-install: installed=<version> running=<version|none|unknown> restart=<done|not-needed|needed|failed>. Exit code 0: the node that runs, if any, is the version installed, or you asked the installer to leave it withCORDELIA_NO_RESTART=1. Exit code 3: a node is on another version or does not answer. Read what the installer printed, and look atcordelia statusand the log before you restart anything. Any other code: the install did not complete, and what the installer printed says why. - On a first install the installer does not start the node. Start it with the first pair of commands below. Where the last line says
restart=needed, use the second pair.
# Linux, first install
systemctl --user enable --now cordelia
# macOS, first install
launchctl load ~/Library/LaunchAgents/ai.seeddrill.cordelia.plist
# Linux, restart=needed
systemctl --user daemon-reload && systemctl --user restart cordelia
# macOS, restart=needed
launchctl bootout gui/$(id -u)/ai.seeddrill.cordelia; launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.seeddrill.cordelia.plist || (sleep 30; launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.seeddrill.cordelia.plist) - Check: in
status --json,runningistrue,versionequalsnode_version, andpeers.hotis 2 when both relays are up. - The state:
levelisredwhen the person should act now,amberwhen they should know of something, andnullotherwise.summaryis what the status line says, andholdslists everything that applies, red first. - No phrase yet. After a first install,
person.stateisno_phraseand the device sends nothing. Your part ends here. Tell the person the three ways on, each theirs to do in a terminal: on their first device,cordelia phrase; where another device has the phrase,cordelia add-devicethere andcordelia accepthere; where they have lost every device that has it,cordelia recoverhere, without making a new phrase first. - Linux, after logout: a user service stops at logout unless lingering is on. The installer names the command, which needs root. Tell the person, and do not run it for them.
Ask the person before each cordelia sync map (they choose what syncs, and each of their devices can read every name), before sync unmap, sync off and sync carry, before you edit ~/.claude/settings.json (add to it, never replace it), and before you touch anything under ~/.cordelia.