Docs/Reference/File layout
Reference

File layout

Everything Flowly stores lives under ~/.flowly. This is the map β€” config, workspace, memory, skills, credentials, and the SQLite databases β€” useful for backups, debugging, and self-hosting.

Flowly keeps all of its state in one directory: ~/.flowly/ (override with FLOWLY_HOME; named profiles live under ~/.flowly/profiles/<name>/). Nothing is written outside it without your involvement.

Top level

PathWhat it is
config.jsonMain configuration (camelCase keys). The one file you edit by hand.
.envSecrets / environment overrides loaded at startup.
workspace/Context files, memory, skills, personas β€” see below.
credentials/OAuth tokens (e.g. gmail.json, mode 0600).
plugins/User-installed plugins.
cron/Scheduled-job data.
audit/Command + decision audit log.
sessions/Session routing index and transcripts.
assistants/Saved assistant / multi-agent definitions.

Workspace (~/.flowly/workspace/)

PathWhat it is
AGENTS.md, SOUL.md, USER.md, TOOLS.md, IDENTITY.mdContext files injected every turn.
memory/MEMORY.mdHuman-readable curated memory.
memory/YYYY-MM-DD.mdDaily notes.
skills/Built-in + installed + agent-created skills.
personas/Persona definitions.

Databases

Flowly uses local SQLite files (WAL mode, so you'll also see -wal / -shm sidecars):

FileHolds
memory_governance.sqlite3Memory lifecycle + audit trail (governance).
knowledge_graph.sqlite3Temporal knowledge graph (triples).
memory_index.sqliteHybrid search index (embeddings + FTS).
board.dbThe cross-channel task board.
artifacts.sqliteVersion-tracked artifacts.
session storeSession history + full-text search.

Runtime / IPC files

FileWhat it is
gateway-api.jsonLocal gateway token (loopback auth).
electron-api.jsonShared-secret handshake with Flowly Desktop (screenshots, perms).
imessage-state.jsoniMessage channel watermark/state.
desktop-client-idStable id for the paired desktop client.

The install itself (not your data)

The install script installs Flowly's code separately from your data, under ~/.local/share/flowly/:

PathWhat it is
repo/The git checkout flowly update fast-forwards (git pull).
venv/The uv-managed virtualenv Flowly runs from (editable install of repo/).

The flowly launcher is a symlink into this venv, placed on your PATH. None of this is your data β€” you don't back it up; re-running the install script (or flowly update) reproduces it from git. A packaged uv tool / pip install lives wherever that tool keeps it instead, and has no repo/.

Backing up

A backup is just a copy of ~/.flowly/ while the gateway is stopped β€” that's your data. (Flowly's code lives elsewhere; see above.) To move to a new machine: stop the gateway, copy the directory, and start it there. Keep config.json, .env, and credentials/ private β€” they hold your keys and tokens.

Use

FLOWLY_HOME=/path/to/dir (or -p <profile>) to run an isolated instance without touching your real ~/.flowly β€” handy for testing, a second bot, or a headless server.