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.
Что это такое?ThinkWatch Lite — это локальный шлюз, который стоит между ИИ-клиентами для кодинга (Claude Code, Codex и другими) и их вышестоящими провайдерами, позволяя переключать провайдеров и модели без перенастройки каждого клиента, а также отслеживает стоимость запросов и блокирует вредоносные вызовы инструментов.
Это облачный сервис или он работает на моей машине?Это настольное приложение со значком в системном трее; шлюз (ThinkWatch Core) поставляется в комплекте с приложением. Ядро также можно запустить удалённо на Linux-сервере, а приложение будет подключаться к нему по зашифрованному управляющему каналу.
Как его установить и подключить к нему свои ИИ-клиенты?Установите через Homebrew cask на macOS, через .exe-установщик на Windows или через curl-скрипт/.AppImage на Linux. Затем поддерживаемые клиенты вроде Claude Code, Codex, Zed и Aider в один шаг направляются на шлюз, при этом изменение конфига показывается заранее, а исходный файл резервируется для лёгкого восстановления.
Мне по-прежнему нужны собственные API-ключи провайдеров?Да — вы используете свои вышестоящие аккаунты: API-ключи, Amazon Bedrock, ChatGPT, Z.ai, релеи вроде OpenRouter или локальные модели, а шлюз при необходимости преобразует между форматами API Anthropic, OpenAI и Gemini.
Можно ли пользоваться установщиком сразу из коробки?Не полностью: приложение не подписано Apple или Microsoft, поэтому при первом запуске нужен один дополнительный ручной шаг, описанный в руководстве по установке; после этого оно обновляется само (или через Homebrew, если установлено так).
Видит ли релей мои настоящие API-ключи?Нет — исходящая редактура заменяет API-ключи, приватные ключи, JWT, пароли в строках подключения и другие чувствительные значения на плейсхолдеры до того, как запрос покинет вашу машину, поэтому релей никогда не получает настоящие учётные данные.
Что делает функция «upstream check-up» (проверка провайдеров)?Он сравнивает каждый провайдер, обслуживающий одну и ту же модель, с остальными и помечает ответы, где называется другая модель, сообщается об объёме входных токенов заметно выше или ниже нормы или видны низкие показания промпт-кэша; для контекста указываются размеры выборок.
Может ли он просканировать мои MCP-серверы и скиллы на предмет рисков?Да, он выводит в одном списке MCP-серверы тринадцати клиентов, помечая сторонние серверы, и проверяет конфигурацию клиентов, скиллы, хуки и инструкции проектов на скрытые символы, промпт-инъекции, опасные команды и чрезмерно широкие разрешения.
Можно запустить ядро на удалённом сервере вместо локального запуска?Да, ядро шлюза может работать на Linux-сервере, а настольное приложение на вашем ноутбуке подключается к нему по зашифрованному управляющему каналу.
Какие ИИ-клиенты поддерживаются из коробки?Claude Code, Claude Desktop, Codex, opencode, Pi, oh-my-pi, Grok Build, Qwen Code, Hermes Agent, Zed, Aider и DeepSeek Harness настраиваются автоматически в один шаг; Cursor, Continue и Antigravity CLI требуют ручной настройки по приложённым инструкциям.