# Security

Zaku Code is a small Windows app that keeps OpenCode working on the free plan. This page is the short version of
what it touches and what leaves your PC.

## What it changes

| It | Details |
| --- | --- |
| Changes another app's settings | Points OpenCode at Zaku Code's local proxy (`127.0.0.1:41987`) and switches Cloudflare WARP's mode/protocol through Cloudflare's own `warp-cli` when needed. |
| Modifies OpenCode Desktop's files | Patches its `app.asar` for the "free limit reached" card, the optional extras (voice button, project icons) and the optional look. A backup is kept, patching is skipped while OpenCode is running or if the app uses asar integrity checks, and Uninstall restores the original. |
| Clears one entry in OpenCode's storage | Only the "free limit" lock, after switching address. Chats, projects and history are never changed. |
| Reads OpenCode's local database | To find stuck chats and check that the automatic `continue` arrived (message times, types and errors). Message contents are not read. |
| Runs `opencode run --session <id> continue` | That is how the chat is told to continue, using OpenCode's own CLI. |
| Runs two background helpers | A keeper (keeps WARP connected and runs the local proxy) and a guard (watches OpenCode's log). Optional "Start with Windows" entry in HKCU. |
| Runs a local proxy | Listens on `127.0.0.1` only; not reachable from the network. |

It does **not**: read passwords, cookies or browser data, capture the screen, log keystrokes, open a remote shell,
mine crypto, show ads or ask for money.

## What goes over the internet

- **OpenCode's own traffic**, through the route you chose (WARP / Tor / your proxies). Zaku Code doesn't read or store it.
- **Update check:** one request to `https://zakucode.pages.dev/latest.json`, a few times a day. An update is
  downloaded only from `zakucode.pages.dev/download/` and installed only if its Ed25519 signature and SHA-256 match
  the key built into the app.
- **Health checks:** `https://opencode.ai/` and `https://cloudflare.com/cdn-cgi/trace` (to tell "offline" from
  "proxy broken").
- **Optional downloads, only on request:** the Tor Expert Bundle, Whisper + a speech model (voice typing), and site
  icons for project icons.

No logs, settings or usage are uploaded.

## Verify what you downloaded

```powershell
Get-FileHash .\zakucode.exe -Algorithm SHA256
```

Compare it with the SHA-256 in [`latest.json`](latest.json), which is signed with Zaku Code's release key.

## Reporting a problem

Ask in the [Discord](https://discord.gg/JYKHeuxQV). For anything sensitive, message zakugmd there directly instead of
posting details in public.
