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.
Highlights
Connect once, switch freely. Claude Code, Claude Desktop, Codex,
opencode, Pi, oh-my-pi, Grok Build, Qwen Code, Hermes Agent, Zed, Aider and
DeepSeek Harness are pointed at the gateway in one step, with the change
previewed, the original file backed up and a restore always available;
Cursor, Continue and Antigravity CLI come with instructions. Switching
upstreams then happens in the gateway alone.
Protection against relays. A relay sees every request in full and can
rewrite every answer. Outbound redaction swaps API keys, private keys, JWTs,
connection-string passwords, Chinese resident ID numbers and bank card numbers
for placeholders before a request leaves, so the relay never holds the real
values. When an answer carries a tool call
that downloads and runs code, sends out environment variables or credential
files, reads private keys or installs a startup item or scheduled job,
tool-call inspection cuts the answer off before the client can run it.
Hidden characters and prompt injection can be refused as well. The
protections start in Observe and switch to Enforce one by one.
Upstream check-up. Each upstream is compared with the others serving the
same model: answers naming a different model, reported input well above or
below theirs and low prompt-cache reads are marked, with sample sizes.
MCP servers, skills and hooks, scanned. The MCP servers of thirteen
clients side by side, with third-party servers marked, and a scan of client
configuration, skills, hooks and project instructions for hidden characters,
prompt injection, dangerous commands and overly broad permissions.
Every request traceable. The rule a request matched, each upstream it
tried, any conversion between API formats and how its cost was calculated;
a finished request can be replayed against another upstream and compared
side by side. The whole history can be searched, including the text of
requests and answers.
Routing and failover. Rules by model, tools, images, extended thinking
and more. When an upstream fails before the answer begins the next one takes
over, and each session stays on one upstream so its prompt cache keeps
hitting. Auxiliary requests such as title generation can be answered locally.
Any upstream, any API format. API keys, Amazon Bedrock, ChatGPT and Z.ai
accounts, relays such as OpenRouter and local models, with conversion between
the Anthropic, OpenAI and Gemini APIs.
Costs stated as they are. Estimated amounts are marked and requests
without a price are counted separately instead of as zero.
Remote core. The gateway can also run on a Linux server; the app
connects to it over an encrypted control channel.
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).
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.
What is this?ThinkWatch Lite is a local gateway that sits between AI coding clients (Claude Code, Codex, and others) and their upstream providers, letting you switch providers and models without reconfiguring each client, while tracking request cost and blocking malicious tool calls.
Is this a cloud service or does it run on my own machine?It's a desktop app with a system-tray icon; the gateway (ThinkWatch Core) ships bundled inside the app. The core can also be run remotely on a Linux server, with the app connecting to it over an encrypted control channel.
How do I install it and connect my AI clients to it?Install via Homebrew cask on macOS, a Windows .exe installer, or a curl script/.AppImage on Linux. Supported clients like Claude Code, Codex, Zed, and Aider are then pointed at the gateway in one step, with the config change previewed and the original file backed up for easy restore.
Do I still need my own provider API keys?Yes — you bring your own upstream accounts, whether API keys, Amazon Bedrock, ChatGPT, Z.ai, relays like OpenRouter, or local models, and the gateway converts between the Anthropic, OpenAI, and Gemini API formats as needed.
Is the installer ready to use right out of the box?Not entirely: the app isn't signed by Apple or Microsoft, so the first launch needs one extra manual step documented in the install guide; after that it updates itself (or via Homebrew if installed that way).
Does a relay ever see my real API keys?No — outbound redaction swaps API keys, private keys, JWTs, connection-string passwords, and other sensitive values for placeholders before a request leaves your machine, so the relay never holds the real credentials.
What does the 'upstream check-up' feature do?It compares each upstream serving the same model against the others, flagging answers that name a different model, report input tokens well above or below the norm, or show low prompt-cache reads, with sample sizes included for context.
Can it scan my MCP servers and skills for risks?Yes, it lists the MCP servers of thirteen clients side by side, marking third-party servers, and scans client configuration, skills, hooks, and project instructions for hidden characters, prompt injection, dangerous commands, and overly broad permissions.
Can I run the core on a remote server instead of locally?Yes, the gateway core can run on a Linux server while the desktop app on your laptop connects to it over an encrypted control channel.
Which AI clients are supported out of the box?Claude Code, Claude Desktop, Codex, opencode, Pi, oh-my-pi, Grok Build, Qwen Code, Hermes Agent, Zed, Aider, and DeepSeek Harness are configured automatically in one step; Cursor, Continue, and Antigravity CLI need manual setup following provided instructions.