Security

Security at Ghostli

What we actually store, in what form, for how long, and how to report a problem if you find one - written for the people who check before they trust.

This page is our own internal security overview, published by us, not a certification from an independent auditor. We'd rather be specific about what is actually true today than hand you a badge that means nothing. If a claim below turns out to be wrong, we want to hear about it - see the bug bounty section below.

The short version: your token is never stored in a reversible form, your conversations are never stored on our servers at all, files you list in .ghostliignore are off limits to the AI, Live Code can work in an encrypted workspace that exists only as ciphertext when closed, and any email we collect is only kept in a form that can be decrypted for as long as it takes to actually deliver something to you.

01 The desktop app

Most of what matters happens on your machine before it ever reaches us. The app decides what you see, what gets attached to a request, and what stays local.

Area How it works
Local app data Conversation history, workspace metadata, and session state are stored in a local database, encrypted at rest with a key derived from a passphrase you set on first launch. We hold no cloud copy.
Key derivation Argon2id where available, with a PBKDF2 compatibility path, for the authentication material; AES-GCM for the encrypted local package.
Workspace boundary Only the folder you select is in scope. Nothing outside it is read. Live Workspace and Repository Context scan locally, skip heavy folders like node_modules and .git, and build a capped map, not a full upload. Paths listed in .ghostliignore are excluded entirely.
Session storage The desktop auth session is kept through the operating system's secure storage where available, not a plain settings file.
Your token Treated like an API key. It authenticates the app, it is not your identity, and it should never be pasted into a prompt.
What this means in practice Losing your local passphrase means losing your local data. There is no server-side recovery, because there is no server-side copy to recover from.

How the local password and encryption actually work

When you set your local passphrase on first launch, nothing is sent anywhere. A random salt is generated, and it is used to derive two separate keys from your passphrase: one that verifies the passphrase is correct, and one that encrypts your data. They are derived with different purpose labels so the same material can never be reused for both jobs.

The app's default derivation is Argon2id, a memory-hard function chosen specifically because it is expensive to attack with GPUs, tuned with a time cost of 3, roughly 64 MB of memory cost, and a single-lane parallelism setting. Older local records that predate this upgrade are still readable through a PBKDF2-SHA256 compatibility path (300,000 iterations), and are transparently upgraded to Argon2id the next time you unlock successfully.

Verification never compares your password directly. It derives a hash and compares it to the stored one byte-by-byte in constant time, so the comparison itself can't leak timing information about how close a guess was. Repeated failed attempts are throttled with an increasing lockout, up to 15 minutes, so local brute-forcing a passphrase is not a fast option even for someone with the encrypted file in hand. Once unlocked, your data is decrypted with AES-GCM, which also authenticates the metadata alongside the ciphertext, so a tampered payload fails to decrypt instead of silently returning garbage.

Verify it yourself We publish the actual AuthManager logic behind this, near 1:1 with what ships in the app: Argon2id derivation, the PBKDF2 compatibility path, the automatic upgrade between them, constant-time verification, the lockout, and authenticated AES-GCM encryption. What's cut is the Electron/UI plumbing around it, replaced with a plain pluggable storage interface so it runs anywhere. The README explains exactly what was kept and what was cut, and why. Source: github.com/GhostliAI/ghostli-local-encryption.

02 Live Code: what the agent can and cannot touch

Live Code is the mode where the assistant reads files, edits them and runs commands in your project. That is exactly where trust matters most, so the limits are enforced by the app, not left to the model's good manners.

.ghostliignore: paths the AI never touches

Put a .ghostliignore file in the root of your workspace and list the paths Ghostli must leave alone. Matching files are not read, not written, not listed and not searched. The syntax is the gitignore syntax you already know:

# .ghostliignore
.env
.env.*
secrets/
*.pem
config/production.json
!config/example.json

It is deliberately stricter than .gitignore. A .gitignore only says what git should not track, and secrets end up committed to private repositories all the time, so "git tracks it" is not a reason to let a model read it. Blocking a folder blocks everything beneath it, ! re-allows a specific path, and edits to the file take effect within seconds, without restarting the app.

The rules are enforced in the app's main process, in the file, workspace and search layer, so a blocked path returns Blocked by .ghostliignore to the agent no matter which file tool it uses. The same rules apply to scheduled automations, imported skills and project check configuration. The agent is also told to treat a block as your decision: no retrying, no guessing the contents, no workarounds.

The honest limit An arbitrary shell command can do anything your user account can do, and the app cannot parse every possible command to see which files it opens. That is why commands go through the approval mode below. If a file must never reach an AI provider under any circumstances, keep it outside the workspace folder.

You decide what runs

Control How it works
Ask permissions The default. Edits and shell commands wait for your approval. A command you deny is not retried automatically for the rest of that task, even after further edits.
Accept all Opt-in, per session. Edits and commands run without asking. It is a visible choice, never a silent default.
Plan mode /plan is read-only: no file edits, no shell commands, no subagents, no integration actions.
Visible changes Every turn that changes files shows Changes +X -Y with a line-by-line diff of what actually changed. The diffs are stored inside the encrypted session, never sent with API requests or collaboration links.
Screenshots Live Code can look at the screen or a local page, read-only, with no mouse or keyboard control. In approval mode it asks first and says what will be shared with the AI provider. Images are never written to disk or kept in the saved log.
System folders System and application directories, including Ghostli's own data directory, are rejected by the local file layer.

Live Code encrypted workspace

Instead of a folder on your disk, Live Code can work in a hidden, encrypted workspace that belongs to one session. The AI uses it exactly like a normal project: same tools, same languages, same approvals. When the workspace is closed, it exists only as ciphertext.

Area How it works
Encryption AES-256-GCM in 1 MiB chunks, each bound to its position, so chunks cannot be swapped or replayed. File names, folder structure and file count are encrypted too; from the outside only the total size is visible.
Keys Every workspace has its own random 256-bit key, stored apart from the data. With an app password, the key is wrapped with your Argon2id-derived key and the OS key store, so it cannot be opened without the password, even on the same machine.
Lifecycle Decrypted into a random working copy only while you work, re-sealed every 60 seconds, and wiped on app lock, logout, quit, screen lock, suspend and after 15 minutes idle. On Linux the working copy lives in RAM (tmpfs).
The model never sees the path Requests show <encrypted-workspace> instead of the real location, and opening the folder in Explorer or an editor is blocked so the path does not leak into other apps.
Deletion Crypto-shredding: deleting the session destroys the key first, then the data. Anything left behind is undecryptable.
No system changes No admin rights, no drivers, no mounted drives, no BitLocker or EFS. Ghostli writes only inside its own data directory.
What it does not protect against Malware or another person on the same OS account while the workspace is open, administrators, plaintext remnants on SSD flash (only the key can be reliably shredded), tool caches outside the workspace such as npm or pip, and RAM or swap. Without an app password the key is protected by the OS key store only, and the app warns you about that. Collaboration links share the chat, never the workspace files.

Automations, shared sessions and app integrity

  • Scheduled automations run only with the exact scope you reviewed before saving: prompt, schedule, plugins, connections and project access. The background runner never receives your session password or chat history. Reports produced while the app is locked are sealed with RSA-OAEP and AES-256-GCM and only imported after you unlock. Interrupted runs are reported, never silently replayed.
  • Shared workspaces link two Live Code sessions only when you mention one in the other, only for the current task, and each keeps its own permissions. Whole conversations are not shared.
  • Integrity check: the installed app verifies its own files against a release manifest and asks the API whether that manifest belongs to an official release. Only the manifest hash is sent, never your files, paths or token. If something was changed, you see Application Files Changed. This is a tamper warning, not remote attestation, and we say so.
  • Usage statistics are computed locally from the usage counter the API already reports. No new server-side tracking was added for them.

03 The API

This is the part that actually handles your requests: authentication, plan limits, and routing to a model. Here's what it does and does not keep.

Area What we do
Token storage bcrypt hash only. Requests are matched against the hash; the raw token is never stored server-side.
Conversation content Not stored. Your client sends conversation history with each request; the API does not write prompts or replies to a database.
Server logs Redacted before anything is written: message, content, prompt, token, password, secret, key, history, and file fields never land in plaintext logs.
Device and session limits Enforced per device, with heartbeat checks and active-device tracking, so plan limits apply to real usage, not a shared static key.
Requests to AI providers Minimized identity: the API acts as a privacy-preserving layer between you and the upstream model, and avoids forwarding your raw token, payment email, or raw IP as part of an ordinary model request.
Rate limiting Applied across authentication, chat, and heartbeat endpoints to blunt abuse and brute-force attempts.
Checkout / free-plan email Kept only briefly: readable only for as long as it takes to deliver a token or confirmation, then cleared to a one-way hash used purely for anti-abuse lookups.

None of this makes us unbreakable, and we're not going to pretend otherwise. It means the things that would actually hurt you in a worst-case breach - your raw token, your stored email, your conversations - are either not stored, not reversible, or not there for long.

04 Reporting a vulnerability

If you find a real security issue, we want to know before anyone else does. Report it through our Discord or via the contact listed in /.well-known/security.txt. Include what you found, how to reproduce it, and what you think the impact is.

A few ground rules that keep this useful for everyone: don't access, modify, or exfiltrate data that isn't yours, don't run anything destructive against production, and give us a reasonable window to fix the issue before talking about it publicly. Automated scanner noise without a real finding isn't a report, it's just traffic.

05 Bug bounty

If you responsibly report a genuine, previously unknown vulnerability, we will thank you and, at our discretion, send something back - typically account credit or a plan upgrade sized to how serious the finding actually is. There's no fixed public payout table, and we're not going to pretend there's an unlimited budget behind this. What we can promise is that a real finding, reported responsibly, gets a real reply and a real reward, not silence.

That's also just the more useful path for you: a private report gets you an actual thank-you and something in your account. A public callout gets you a scramble to patch and, most likely, nothing else.

ยท

Found something, or want more detail on any of this before you rely on it? The Discord is the fastest way to reach us.

Don't take our word for the encryption claims - read the source: github.com/GhostliAI/ghostli-local-encryption.