ThinkWatch-Lite README

The project's README from github.com/ThinkWatchProject/ThinkWatch-Lite. As one markdown file: README.md.

ThinkWatch Lite

Tauri 2 React 19 License: MIT macOS Windows 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 and requests against the seven days before, with the estimated part of the cost and the unpriced requests stated; a trend chart stacked by model with the periods that had failures marked; and the models ranked by tokens and cost

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 Install
macOS 12 or later, Apple silicon brew install --cask thinkwatchproject/tap/thinkwatch-lite, or ThinkWatch-Lite-<version>-arm64.dmg
Windows 10 21H2 or later, x64 ThinkWatch-Lite-<version>-x64-setup.exe
Windows 10 21H2 or later, ARM64 ThinkWatch-Lite-<version>-arm64-setup.exe
Linux, x86_64 or aarch64 curl -fsSL https://github.com/ThinkWatchProject/ThinkWatch-Lite/releases/latest/download/install.sh | sh, or ThinkWatch-Lite-<version>-<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).

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)

Searching Database…

这是什么?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 需要按提供的说明手动设置。
Size
36.7 MB
Stars
824
Age
1mo
Commits · 90 Days