ThinkWatch-Lite README

项目的 README,来自 github.com/ThinkWatchProject/ThinkWatch-Lite。合并为一个 markdown 文件:README.md。

ThinkWatch Lite

Tauri 2 React 19 License: MIT Platforms: macOS, Windows and Linux

ThinkWatch Lite

English | 中文

A local gateway for Claude Code, Codex and other AI clients, on macOS, Windows and Linux. Each client is connected once; after that, upstreams and models change without touching its configuration. Every request is recorded with its cost and route; the API keys in it can be replaced before it leaves the machine, and dangerous tool calls a relay slips into an answer can be cut off before the client runs them.

The overview for the last seven days: tokens, cost, requests, cache hits, first token and traffic, each with the change against the seven days before, over a chart of the selected one; below, where the tokens went by model and the quotas and balances the upstreams report

Sponsors

Thanks to the sponsors below for supporting the development of ThinkWatch Lite. Become a sponsor
VoyageAge One API. More models. Lower costs.
VoyageAge brings leading AI models together through one OpenAI-compatible API. Built for developers, teams, and AI startups, it offers competitive pricing and pay-as-you-go billing, making it easier to integrate AI into your projects. Sign up for free trial credits and start building. voyageage.com ↗

Sponsors are independent third parties, not endorsed by ThinkWatch. Disclaimer

Highlights

The security log: credentials replaced before a request left, one of them matched by a custom rule; a download-and-run tool call cut off; and hidden characters, a delete command and an injected instruction recorded. Each entry names the key, client, model and upstream of its request

Install

Platform Architecture Install
macOS 12 or later ARM64 (Apple silicon) brew install --cask thinkwatchproject/tap/thinkwatch-lite, or ThinkWatch-Lite-<version>-darwin-arm64.dmg
Windows 10 21H2 or later x64 Installer ThinkWatch-Lite-<version>-windows-x64-setup.exe, or portable ThinkWatch-Lite-<version>-windows-x64-portable.zip
Windows 10 21H2 or later ARM64 Installer ThinkWatch-Lite-<version>-windows-arm64-setup.exe, or portable ThinkWatch-Lite-<version>-windows-arm64-portable.zip
Linux x86_64 / aarch64 curl -fsSL https://github.com/ThinkWatchProject/ThinkWatch-Lite/releases/latest/download/install.sh | sh, or ThinkWatch-Lite-<version>-linux-<arch>.AppImage

The gateway, ThinkWatch Core, ships inside the app. The app is not signed by Apple or Microsoft, so the first launch needs one extra step; Install and update covers it, along with how updates arrive. The interface is in English and Simplified Chinese, and the app updates itself (a Homebrew installation updates through Homebrew).

Windows portable

Unzip and run ThinkWatch Lite.exe: no installation and no administrator rights. Configuration, keys and request history stay in the data\ folder next to the program, apart from the installed copy's data, so the two keep separate settings. The folder has to be writable.

Only one of the installed and portable copies runs at a time; opening the other one offers to stop the running one and start it instead. thinkwatch:// links and launch at login always point to the copy that is running.

The portable copy has no system uninstaller. Uninstall it in Settings › Full uninstall first, which restores connected clients and removes its launch at login and other registry entries, then delete the whole folder.

Uninstall

Uninstalling in Settings › Full uninstall restores connected clients, turns off launch at login and can delete the data directory as well. Afterwards, move the app to the Trash on macOS, or delete the AppImage file on Linux.

The installed copy on Windows can also be uninstalled through the system: the uninstaller closes ThinkWatch Lite and does the same restoring and cleanup first. With "Also delete data (configuration, API keys, request history)" ticked it deletes %APPDATA%\ThinkWatch too, except when a client could not be restored, in which case the data directory, with that client's backup, is kept. The uninstaller runs as an administrator: when a standard account uninstalls with an administrator's password, it restores the administrator's clients and deletes the administrator's data instead, so uninstall in the app first in that case.

Privacy

ThinkWatch Lite sends no telemetry. AI requests go to the upstream services you configure; Secrets & privacy can redact matching sensitive content locally before it is sent, when enabled. The app and its bundled gateway are fully open source under MIT. See the Privacy Policy for data storage, network connections, redaction defaults, and deletion controls.

Documentation

Build from source

pnpm install
bash src-tauri/scripts/fetch-core.sh
pnpm tauri dev

fetch-core.sh downloads the twcore release that Cargo.lock pins into src-tauri/resources/. See CONTRIBUTING.md for the layout of the repository and the checks to run before opening a pull request.

License

MIT. See LICENSE.

ThinkWatch-Lite (ThinkWatchProject/ThinkWatch-Lite)

正在搜索数据库…

这是什么?ThinkWatch Lite 是一个本地网关,位于 AI 编程客户端(Claude Code、Codex 等)与其上游服务商之间,让你无需逐个重新配置客户端就能切换服务商和模型,同时跟踪请求成本并拦截恶意工具调用。
这是云服务,还是运行在我自己的机器上?它是一个带系统托盘图标的桌面应用;网关(ThinkWatch Core)随应用捆绑内置。核心也可以远程运行在 Linux 服务器上,由应用通过加密控制通道连接它。
我该怎么安装它并把 AI 客户端接到上面?在 macOS 上通过 Homebrew cask 安装,Windows 用 .exe 安装程序,Linux 用 curl 脚本/.AppImage。之后可一步把 Claude Code、Codex、Zed、Aider 等受支持的客户端指向网关,配置更改会先预览,原始文件会备份以便轻松还原。
我还需要自己的服务商 API 密钥吗?需要——你要自带上游账号,无论是 API 密钥、Amazon Bedrock、ChatGPT、Z.ai、OpenRouter 之类的中转,还是本地模型,网关会按需在 Anthropic、OpenAI 和 Gemini 的 API 格式之间转换。
安装包开箱即用吗?不完全:应用未经 Apple 或微软签名,首次启动需要按安装指南多做一步手动操作;之后它会自行更新(如果通过 Homebrew 安装则由 Homebrew 更新)。
中转会看到我真实的 API 密钥吗?不会——在请求离开你的机器之前,出站脱敏会把 API 密钥、私钥、JWT、连接字符串密码和其他敏感值替换为占位符,因此中转永远不会持有真实凭据。
“上游体检”功能是做什么的?它把服务同一模型的各个上游相互比较,标记出那些自称是另一个模型、报告的输入 token 数远高于或低于常态、或提示缓存读取率偏低的回答,并附上样本量供参考。
它能扫描我的 MCP 服务器和技能的风险吗?可以。它并排列出十三个客户端的 MCP 服务器并标记第三方服务器,还会扫描客户端配置、技能、钩子和项目指令,检查隐藏字符、提示注入、危险命令和过宽的权限。
我能把核心跑在远程服务器而不是本地吗?可以。网关核心可以运行在 Linux 服务器上,你笔记本电脑上的桌面应用通过加密控制通道连接它。
哪些 AI 客户端开箱即受支持?Claude Code、Claude Desktop、Codex、opencode、Pi、oh-my-pi、Grok Build、Qwen Code、Hermes Agent、Zed、Aider 和 DeepSeek Harness 可一步自动完成配置;Cursor、Continue 和 Antigravity CLI 需要按提供的说明手动设置。
大小
39.6 MB
星标
1.1K
时长
2个月
提交 · 90 天