# Privacy and security

Everything runs locally on your machine: QuotaDesk never sends prompts, never calls AI models and never collects telemetry.

## What QuotaDesk reads

- **Codex:** account limits through `codex app-server` (`account/rateLimits/read`) and only event types/local metadata from session logs in `%USERPROFILE%\.codex\sessions`. Message content is never read.
- **Claude Code:** the `statusLine` cache saved to `claude-limits.json`, local Claude app history and local hooks. From hooks, it only uses the session id, tool name, notification type and folder name; nothing is sent out or stored permanently.
- **Antigravity:** local server on `127.0.0.1`, reading the session token via process or discovery files in `%USERPROFILE%\.gemini\antigravity\daemon\hub_*.json` / `ls_*.json`. The token stays in memory only and is never written to disk or logs.
- **Cursor, Kimi Code and OpenCode Go:** read-only local quota and reset readers.
- **Magnific and OpenRouter:** balance/key-reading tools only on their official MCPs (`mcp.magnific.com` and `mcp.openrouter.ai`), signed in by you via browser OAuth.
- **Anthropic API (optional):** sends only your Admin/Analytics key (entered manually) and requested date range directly to `https://api.anthropic.com` for 30-day usage aggregates. Never reads Claude Code credentials.
- **Figma:** public `status.figma.com` page only.

## Network

QuotaDesk initiates network requests exclusively to:

- `mcp.magnific.com` and `mcp.openrouter.ai` (official MCP balance when connected);
- `api.anthropic.com` (only when you configure an optional **Anthropic API** connection);
- `status.figma.com` (public service status);
- Optional weather: `geocoding-api.open-meteo.com` (receives only the city name you search; typed coordinates skip geocoding), `api.open-meteo.com` and fallback `api.met.no` (receive coordinates rounded to ~1 km every 30 min, CC BY 4.0).

The hook listener binds strictly to loopback (`127.0.0.1:32871`) and rejects requests originating from web pages.

## Stored data (v0.5.0)

All local data lives inside **`%LOCALAPPDATA%\com.quotadesk.opensource.dev`**:

| File | What it stores |
|---|---|
| `quotadesk.sqlite3` | Panel preferences, local usage history and configured connections; OAuth tokens and API keys are encrypted with **Windows DPAPI** (readable only by your Windows user on this machine) |
| `window-state.json` | Last panel coordinates and window state |
| `claude-statusline.ps1` / `claude-limits.json` | StatusLine script and latest percentage/reset snapshot written by Claude Code |

> **Upgrading from v0.4.0 (.NET WinForms):** the legacy edition wrote to `%LOCALAPPDATA%\AIUsageMonitor`. The Tauri app keeps its isolated storage in `%LOCALAPPDATA%\com.quotadesk.opensource.dev`.

## Disconnect everything

1. Open **Settings › Connections › Manage** and click **Remove** on connections you want to delete (removes DPAPI credentials from the local database).
2. To revoke access on the service side as well, remove authorization in your Magnific, OpenRouter or Anthropic dashboard.
3. To erase your entire local profile, quit QuotaDesk and delete `%LOCALAPPDATA%\com.quotadesk.opensource.dev`.

## When asking for help

Never attach `quotadesk.sqlite3`, `window-state.json`, legacy `*.dat` files, `settings.json` or screenshots showing tokens, emails or personal paths to issues and pull requests.

## Report a vulnerability

Do not open a public issue. Use **Security › Report a vulnerability** in the repository (GitHub private advisory) with details, reproduction steps and impact. Full repository rules live in [SECURITY.md](https://github.com/srbunnie/QuotaDesk/blob/main/SECURITY.md#english).
