ThinkWatchProject/ThinkWatch-Lite
Local gateway for Claude Code, Codex and other AI clients on macOS, Windows and Linux: switch upstreams without touching clients, keep API keys from relays, cut off malicious tool calls, trace every request.
What it is
ThinkWatch Lite is a local gateway that sits between AI coding tools (like Claude Code, Codex, or Aider) and the AI services they talk to. It runs on macOS, Windows, and Linux, and is built with Tauri 2 and React 19.
The core idea
You connect each AI client to ThinkWatch Lite once. After that, you can switch which AI provider ("upstream") or model you use — without touching the client's configuration again. Every request is logged with its cost and the route it took.
What it does
1. Privacy protection before requests leave
- Secrets & privacy — replaces sensitive values (API keys, private keys, JWTs, database passwords, Chinese ID numbers, bank card numbers) with placeholders before a request is sent to the AI provider, so the provider never sees the real values.
- Dangerous commands — if an AI answer contains a tool call that would download and run code, send out environment variables or credential files, read private keys, or install startup items, the gateway cuts the answer off before your client can execute it.
- Content filter — removes instructions hidden in invisible characters, can refuse prompt injection, and can delete or replace chosen words in both requests and answers.
All protections start in "Monitor" mode (which only records and notifies) and can be switched on one at a time.
2. Cross-checking upstreams
If multiple providers serve the same model, the gateway compares their answers: it flags when one names a different model, reports unusually high or low input usage, or has low prompt-cache reads — with evidence shown on hover.
3. Scanning client configs
It scans the MCP servers of thirteen AI clients side by side (marking third-party ones), plus client configuration, skills, hooks, and project instructions — looking for hidden characters, prompt injection, dangerous commands, and overly broad permissions.
4. Full traceability
Every request is traceable: which rule it matched, which upstreams it tried, any API-format conversions, and how its cost was calculated. You can replay a finished request against another upstream and compare side by side. The entire history is searchable, including request and answer text.
5. Routing and failover
- Route requests by model, tools, images, extended thinking, and more.
- If an upstream fails before the answer begins, the next one takes over.
- Each session stays on one upstream so its prompt cache keeps working.
- Simple auxiliary requests (like title generation) can be answered locally.
6. Flexible upstreams
Works with API keys, Amazon Bedrock, ChatGPT and Z.ai accounts, relays like OpenRouter, and local models — with automatic conversion between the Anthropic, OpenAI, and Gemini API formats.
7. Honest cost reporting
Estimated amounts are marked as estimates, and requests without a price are counted separately instead of being treated as zero.
8. Remote core
The gateway can run on a Linux server; the app connects to it over an encrypted control channel.
Installation
| Platform | Method |
|---|---|
| macOS 12+ (Apple silicon) | brew install --cask thinkwatchproject/tap/thinkwatch-lite or a .dmg file |
| Windows 10 21H2+ (x64 or ARM64) | Installer .exe or portable .zip |
| Linux (x86_64 or aarch64) | curl install script or AppImage |
The gateway itself (ThinkWatch Core) is bundled inside the app. The app is not signed by Apple or Microsoft, so first launch needs one extra step. The interface is in English and Simplified Chinese, and the app updates itself (Homebrew installs update via Homebrew).
Windows portable version
Unzip and run ThinkWatch Lite.exe — no installation, no admin rights. Configuration, keys, and history stay in a data\ folder next to the program. Only one copy (installed or portable) runs at a time. There's no system uninstaller — you uninstall from within the app's Settings.
Uninstalling
Use Settings › Full uninstall — it restores connected clients to their original configuration, turns off launch-at-login, and can delete the data directory. On Windows, the system uninstaller does the same, but note: if a standard (non-admin) account uninstalls using an admin password, it restores the admin's clients and deletes the admin's data — so uninstall from within the app first in that case.
Privacy
- No telemetry — ThinkWatch Lite sends nothing back to its developers.
- AI requests go only to the upstream services you configure.
- The Secrets & privacy feature can redact sensitive content locally before sending, when enabled.
- Fully open source under the MIT license.
Building from source
pnpm install
bash src-tauri/scripts/fetch-core.sh
pnpm tauri dev
The script downloads the pinned twcore release into src-tauri/resources/.
License
MIT.
Related
- Project
- Project
- Project
- Project
- Project