Skip to content

Privacy and security

OCEANOFANYTHING edited this page Nov 24, 2026 · 1 revision

Privacy and security

CHERNOBYL is local-only. There is no CHERNOBYL cloud, account, relay, hosted database, analytics, crash reporting or telemetry. Data moves only between your PC and your paired phone, over a connection that is end-to-end encrypted after pairing. Nothing is sent to N&D Co., because there is no server to send it to.

The agents you connect still send your prompts to their own providers under those providers' terms, as they do when you use them at the desk: Anthropic for Claude Code, OpenAI for Codex, Google for Antigravity. Each agent keeps its own data under its own policy.

The full list of what is stored, where and for how long is in the repository's privacy document.

How the connection is protected

  • Pairing. The QR code carries a 256-bit key made for one phone. It works once and expires after 5 minutes. On the PC the key is stored protected by Windows (DPAPI), never in plain text.
  • Handshake. Phone and PC prove to each other that they hold the key, using fresh random values each time, so a recorded handshake cannot be replayed.
  • Key rotation. The first connection replaces the QR's key with a new one, so the QR code cannot be used again after your phone has paired.
  • Every message sealed. After the handshake every message is encrypted with ChaCha20-Poly1305 and numbered. A replayed, altered or out-of-order message closes the connection.
  • Token. Beyond loopback the companion needs an access token of at least 32 characters, and a token alone cannot run commands or read state without the paired session.
  • No browsers. Connections from a web page are refused.

The companion's own socket is plain ws://; the security is in the encrypted session, not in TLS. Someone in the middle sees encrypted messages only.

There is no forward secrecy yet: the session uses the shared key and fresh random values, not a key exchange.

What the PC stores

Everything lives in %APPDATA%\CHERNOBYL (or CHERNOBYL_HOME).

Data Kept
Settings (companion.json) Until you change or delete it
Control key (control.key), used by --pair and --revoke to talk to the running companion, in plain text Until you delete it; recreated at the next start
Commands from the phone, including the prompts you send and deny reasons Newest 5,000
Events sent to the phone, and approvals Newest 5,000, and no older than 7 days
Pairing offers 5 minutes
Paired phones and their keys (protected by Windows) Until revoked and removed
Audit log (start, stop, pairing, problems) Newest 1,000 entries

What the PC does not store: the access token (it is an environment variable), your agents' conversation history (that stays in each agent's own files), or file contents.

Live conversations are held in memory only, cleaned of known secret formats such as API keys, cut to a size limit, and dropped an hour after a session ends. They are never written to the journal.

Photos you attach to a prompt go through the encrypted connection to the agent on your PC, which sends them to its provider like any image you paste in. The companion keeps only how many images a prompt had.

If you set an OpenCode password in companion.json it is stored in plain text. The setup script avoids this: it writes the name of an environment variable instead.

What the phone stores

Data Where Kept
The pairing (host id, addresses, device id, key) and the optional token Android Keystore Until you unpair
App settings App database Until you uninstall or clear data
Your approval decisions (command, decision, risk, time) App database Newest 1,000
Live sessions, conversations, files and diffs Memory Not saved
Your last 20 terminal command lines per workspace App storage Until you clear data

Notifications are created by the app on the phone. There is no push service, so notification content never leaves the device.

Files and git

Folder listings, file content, git status and diffs are read only when the phone opens them, sent only to that phone and never written to the journal. File content and diffs are cleaned of known secret formats, and every value in a .env file is masked.

The git commands you run (stage, unstage, commit with its message, push, pull) are recorded like any command, and commits, pushes and pulls add an audit entry.

The terminal

The terminal is off unless you turn it on. When it is on, the command line you run is recorded (cleaned of known secret formats) and its output goes only to the phone that started it, up to 1 MiB, and is never stored on the PC.

Delete your data

  • Revoke a phone from the PC: chernobyl-companion --revoke <device-id> (list devices with --devices). See Pairing.
  • Unpair on the phone: Profile, Security & device, Unpair this host. This deletes the pairing key and token from the phone.
  • Erase everything on the PC: stop the companion, run --uninstall-autostart, and delete the CHERNOBYL folder.
  • Erase everything on the phone: uninstall the app or clear its storage.

Known limits

  • The app has been tested on emulators, not yet on a physical phone. Camera scanning and phone makers' battery settings are not yet confirmed.
  • No independent security assessment has been done. Automated tests and our own review are not a substitute for one.
  • The Windows companion is not code-signed. Check its checksum before you run it.
  • The Android app includes Google's ML Kit barcode scanner, which the camera library uses to read the QR code, and Google Play services libraries that the notifications library brings in.

Clone this wiki locally