Data and files
Where Simulacra keeps your vault on Windows, macOS and Linux, every file and folder beside it, the environment variables it reads, and how an old vault is carried over.
Your vault is one SQLite database file, simulacra.db, in a simulacra folder of your user data directory. Everything else Simulacra stores sits in folders beside it, so the whole vault can be copied or moved as one folder.
Where the vault is
| System | Vault folder | Usually |
|---|---|---|
| Windows | %APPDATA%\simulacra\ | C:\Users\<you>\AppData\Roaming\simulacra\ |
| macOS | ~/Library/Application Support/simulacra/ | /Users/<you>/Library/Application Support/simulacra/ |
| Linux | $XDG_DATA_HOME/simulacra/ | ~/.local/share/simulacra/ when XDG_DATA_HOME is not set |
The folder is created on first start. If none of these locations can be worked out (the environment variable is missing), the vault is simulacra.db in the folder Simulacra was started from.
To see the exact path, open Settings › Privacy & Data: the Database row shows it, and Open folder opens it.
What is in the folder
| Path | What it holds |
|---|---|
simulacra.db | The vault: networks, profiles, agents, posts and their versions, documents and their catalogue, review items, journal, reactions, embeddings, settings, themes, credentials. |
simulacra.db-wal, simulacra.db-shm | SQLite's write-ahead log and its index, part of the database while it is open. Copy them with the database, or quit Simulacra before copying. |
simulacra.db.pre-restore | Your previous vault, kept when you restored a snapshot (time-stamped when an earlier copy exists). |
simulacra.db.restore | A verified snapshot waiting for Restore and restart; deleted on cancel. |
backups/ | Copies made with Back up now, named simulacra-YYYYMMDD-HHMMSS.db. |
avatars/ | Photos you picked as avatars, one per profile, so a moved vault keeps them. |
symbols/ | Downloaded icon sets, one folder per set with its LICENCE.txt, and index.json listing what is installed. |
media/ | Generated images (img_….png, .jpg or .webp) at its top level. |
media/attachments/ | Images attached to posts, stored once per content. |
media/previews/ | Link-preview images, scaled down to at most 720 pixels. |
media/thumbs/ | Feed thumbnails of large images, at most 1280 pixels. |
media/posters/ | Video poster frames your system made. |
media/imports/ | Kept originals of imported files (when Keep the original file is on). |
media/voice/ | Voice notes. |
media/ink/ | Drawings, as SVG. |
media/captures/ | Images captured into the Inbox. |
Files in attachments, voice, ink and captures are named by a checksum of their content, so the same file is stored once.
Environment variables
| Variable | Effect |
|---|---|
SIMULACRA_DB_PATH | The full path of the database to use, taken as is. Its folder is not created for you, and no old vault is copied. The media, avatars, symbols and backups folders go beside that file. Use it to keep a second vault, try a backup, or run a scratch vault. |
APPDATA (Windows), HOME (macOS), XDG_DATA_HOME and HOME (Linux) | Decide the default vault folder, as in the table above. |
XDG_CACHE_HOME (Linux) | Where Simulacra looks for the video thumbnails your file manager already made (~/.cache when unset). |
SIMULACRA_IMPORT_TIMING | Set to anything to print how long each stage of an import took, as simulacra: import … took … ms, to the standard error output. |
SIMULACRA_RENDER_STATS | In debug builds only, prints how often each view is drawn. |
Set the variable in a terminal, then start Simulacra from that same terminal:
In PowerShell:
$env:SIMULACRA_DB_PATH = "D:\vaults\scratch\simulacra.db"
& "<path to simulacra.exe>"Create the folder first; with the variable set, Simulacra does not create it.
An older vault in the start folder
Early versions kept simulacra.db in the folder the program was started from. On a start where no vault exists yet in the user data folder but ./simulacra.db does, Simulacra copies it there (with its -wal file, if any) and uses the copy. The old file is never moved or deleted; remove it yourself once you have checked the copy. With SIMULACRA_DB_PATH set, nothing is copied.
What is not in the vault folder
- The program. Installing, updating or removing Simulacra leaves the vault alone.
- Code runs. Each run of a code block uses a fresh folder in the system's temporary folder, deleted afterwards.
- Without a vault. If the vault cannot be opened, Simulacra runs on example data for that session and saves nothing; media then goes to a
simulacra-mediafolder in the system's temporary folder.